.legal-main {
  width: min(calc(100% - 24px), 1180px);
  margin: 34px auto 48px;
}

.legal-header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.legal-nav-link span:first-child {
  color: var(--neon-orange-hot);
  font-weight: 950;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  min-height: 370px;
  padding: clamp(34px, 7vw, 82px);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.86) 0%, rgba(5, 5, 6, 0.50) 58%, rgba(5, 5, 6, 0.16) 100%),
    radial-gradient(circle at 83% 38%, rgba(255, 90, 0, 0.38), transparent 24%);
}

.legal-hero::after {
  content: "LEGAL // RXG";
  position: absolute;
  right: clamp(20px, 5vw, 65px);
  top: 38px;
  color: rgba(255, 255, 255, 0.07);
  font-size: clamp(2.2rem, 8vw, 7rem);
  font-weight: 1000;
  letter-spacing: -0.08em;
  line-height: 0.85;
  writing-mode: vertical-rl;
}

.legal-hero > * {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.legal-hero h1 {
  margin: 8px 0 18px;
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: 0.84;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.legal-hero h1 span {
  color: var(--neon-orange-hot);
  text-shadow: 0 0 28px rgba(255, 90, 0, 0.44);
}

.legal-lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.legal-card {
  min-width: 0;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 24px;
}

.legal-card--accent {
  border-color: rgba(255, 90, 0, 0.58);
  box-shadow: var(--shadow), 0 0 34px rgba(255, 90, 0, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.legal-card h2,
.legal-section h2 {
  margin: 7px 0 14px;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.legal-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.legal-card p,
.legal-section p {
  color: var(--muted);
}

.legal-card p:last-child,
.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-mail {
  display: inline-flex;
  margin-top: 8px;
  color: var(--neon-orange-hot);
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 950;
  border-bottom: 1px solid rgba(255, 90, 0, 0.55);
}

.legal-mail:hover,
.legal-mail:focus-visible {
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 90, 0, 0.82);
  outline: none;
}

.legal-section {
  position: relative;
  overflow: hidden;
  margin: 18px 0;
  padding: clamp(26px, 5vw, 54px);
  border-radius: 26px;
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: clamp(18px, 5vw, 54px);
}

.legal-section::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -140px;
  top: -150px;
  border-radius: 50%;
  background: rgba(255, 90, 0, 0.10);
  filter: blur(3px);
  pointer-events: none;
}

.legal-section__number {
  align-self: start;
  color: rgba(255, 90, 0, 0.55);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 1000;
  line-height: 0.9;
  letter-spacing: -0.08em;
  text-shadow: 0 0 24px rgba(255, 90, 0, 0.23);
}

.legal-section__content {
  position: relative;
  z-index: 1;
  max-width: 870px;
}

.legal-section h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3.35rem);
}

.legal-section strong {
  color: var(--text);
}

.legal-note {
  margin: 24px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--neon-orange);
  border-radius: 0 18px 18px 0;
  background: rgba(255, 90, 0, 0.10);
}

.legal-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--neon-orange-hot);
  font-size: 1.05rem;
}

.legal-note p {
  margin: 0;
}

.legal-note code {
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.34);
  color: #fff;
  font-size: 0.92em;
}

.legal-final {
  margin: 18px 0 0;
  padding: 22px 24px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-final p {
  margin: 0 0 3px;
}

.legal-final strong {
  font-size: 1.15rem;
}

@media (max-width: 760px) {
  .legal-main {
    margin-top: 18px;
  }

  .legal-header-actions .legal-nav-link span:last-child {
    display: none;
  }

  .legal-hero {
    min-height: 310px;
    padding: 30px 24px;
  }

  .legal-hero::after {
    opacity: 0.6;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-section {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 22px;
  }

  .legal-section__number {
    font-size: 3rem;
  }

  .legal-final {
    align-items: stretch;
    flex-direction: column;
  }

  .legal-final .neon-button {
    text-align: center;
  }
}
