.legal-page {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 4%, rgba(118, 59, 255, 0.11), transparent 25rem),
    radial-gradient(circle at 12% 19%, rgba(0, 191, 231, 0.08), transparent 23rem),
    var(--canvas);
}

.legal-page a {
  color: inherit;
}

.legal-header,
.legal-footer,
.legal-main {
  width: min(1040px, calc(100% - 48px));
  margin-inline: auto;
}

.legal-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgba(18, 21, 27, 0.1);
}

.legal-header .brand {
  position: static;
  text-decoration: none;
}

.legal-header nav,
.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.legal-header nav a,
.legal-footer nav a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  text-decoration: none;
}

.legal-header nav a:hover,
.legal-footer nav a:hover,
.legal-document a:hover,
.support-grid a:hover {
  color: var(--primary);
}

.legal-main {
  padding-block: clamp(70px, 10vw, 124px) clamp(72px, 9vw, 112px);
}

.legal-hero {
  max-width: 800px;
}

.legal-hero h1 {
  max-width: 760px;
  margin: 12px 0 24px;
  font-size: clamp(3.6rem, 8.5vw, 7.2rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.legal-hero h1 span,
.legal-document a,
.support-grid a {
  color: var(--primary);
}

.legal-hero__intro {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.27rem);
  line-height: 1.6;
}

.legal-updated {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-summary {
  margin: clamp(52px, 8vw, 84px) 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.legal-summary div {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 28px;
  border-right: 1px solid var(--border);
}

.legal-summary div:last-child {
  border-right: 0;
}

.legal-summary strong {
  font-size: 0.9rem;
}

.legal-summary span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.legal-document {
  border-top: 1px solid var(--border);
}

.legal-document > section {
  display: grid;
  grid-template-columns: 64px minmax(0, 720px);
  gap: clamp(20px, 4vw, 44px);
  padding: clamp(44px, 7vw, 72px) 0;
  border-bottom: 1px solid var(--border);
}

.legal-section-number {
  padding-top: 5px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.legal-document h2,
.support-report h2 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.legal-document h3 {
  margin: 30px 0 8px;
  font-size: 1rem;
}

.legal-document p,
.legal-document li {
  color: #4f5865;
  font-size: 0.98rem;
  line-height: 1.75;
}

.legal-document p {
  margin: 0 0 16px;
}

.legal-document p:last-child {
  margin-bottom: 0;
}

.legal-document ul {
  margin: 14px 0 20px;
  padding-left: 1.2rem;
}

.legal-document li + li {
  margin-top: 8px;
}

.legal-document a,
.support-grid a {
  font-weight: 760;
  text-underline-offset: 3px;
}

.legal-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding-block: 28px 38px;
  border-top: 1px solid var(--border);
}

.legal-footer .footer-brand {
  text-decoration: none;
}

.legal-footer > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.support-hero {
  position: relative;
}

.support-contact-button {
  width: fit-content;
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: #fff !important;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 14px 34px rgba(87, 32, 214, 0.22);
  font-size: 0.82rem;
  font-weight: 820;
  text-decoration: none;
}

.support-contact-button:hover {
  background: var(--primary-deep);
}

.support-contact-pending {
  width: fit-content;
  margin: 28px 0 0;
  padding: 11px 14px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
}

.support-grid {
  margin-top: clamp(56px, 9vw, 94px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.support-grid article {
  min-height: 280px;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 44px rgba(18, 21, 27, 0.045);
  backdrop-filter: blur(16px);
}

.support-grid article > span {
  color: var(--primary);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.support-grid h2 {
  margin: 30px 0 14px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.support-grid p,
.support-grid li {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.support-grid p {
  margin: 0 0 12px;
}

.support-grid ol {
  margin: 0 0 14px;
  padding-left: 1.2rem;
}

.support-grid li + li {
  margin-top: 7px;
}

.support-report {
  margin-top: clamp(54px, 8vw, 86px);
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 70px);
  padding: clamp(34px, 5vw, 56px);
  color: #fff;
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 191, 231, 0.34), transparent 20rem),
    linear-gradient(145deg, #171028, #422099 62%, #5720d6);
  box-shadow: 0 22px 64px rgba(87, 32, 214, 0.2);
}

.support-report .eyebrow {
  color: #bdefff;
}

.support-report ul {
  margin: 0;
  padding-left: 1.2rem;
}

.support-report li {
  line-height: 1.7;
}

.support-report > p {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.78rem;
  line-height: 1.6;
}

.support-links {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
}

.support-links > a {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  border-right: 1px solid var(--border);
  text-decoration: none;
}

.support-links > a:last-child {
  border-right: 0;
}

.support-links strong {
  font-size: 0.86rem;
}

.support-links span {
  color: var(--muted);
  font-size: 0.72rem;
}

@media (max-width: 720px) {
  .legal-header,
  .legal-footer,
  .legal-main {
    width: min(100% - 28px, 1040px);
  }

  .legal-header {
    min-height: 72px;
  }

  .legal-header .brand img {
    width: 38px;
    height: 38px;
  }

  .legal-header nav {
    gap: 12px;
  }

  .legal-header nav a:first-child {
    display: none;
  }

  .legal-main {
    padding-top: 58px;
  }

  .legal-hero h1 {
    font-size: clamp(3.25rem, 17vw, 5rem);
  }

  .legal-summary,
  .support-grid,
  .support-links {
    grid-template-columns: 1fr;
  }

  .legal-summary div,
  .support-links > a {
    min-height: 104px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .legal-summary div:last-child,
  .support-links > a:last-child {
    border-bottom: 0;
  }

  .legal-document > section {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .support-grid article {
    min-height: 0;
  }

  .support-report {
    grid-template-columns: 1fr;
  }

  .support-report > p {
    grid-column: auto;
  }

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

  .legal-footer nav {
    justify-content: flex-start;
  }

  .legal-footer > p {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-page *,
  .legal-page *::before,
  .legal-page *::after {
    scroll-behavior: auto !important;
  }
}
