.legal-page {
  background:
    radial-gradient(circle at 86% 4%, rgba(199, 22, 29, 0.1), transparent 28rem),
    var(--color-bg);
}

.legal-page .site-header {
  background: rgba(247, 247, 245, 0.88);
  border-color: rgba(222, 223, 218, 0.8);
  backdrop-filter: blur(18px);
}

.legal-page .main-nav a[aria-current="page"] {
  color: var(--color-brand);
}

.legal-page .main-nav .nav-cta[aria-current="page"] {
  color: var(--color-surface);
  background: var(--color-brand);
}

.legal-hero {
  padding: calc(var(--header-height) + 76px) 0 64px;
  overflow: hidden;
}

.legal-hero-grid {
  min-height: 350px;
  padding: 54px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 48px;
  position: relative;
  overflow: hidden;
  color: var(--color-surface);
  background: var(--color-night);
  border-radius: var(--radius-lg);
}

.legal-hero-grid::before,
.legal-hero-grid::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.legal-hero-grid::before {
  width: 360px;
  height: 360px;
  top: -210px;
  right: -70px;
  border: 70px solid rgba(255, 255, 255, 0.05);
}

.legal-hero-grid::after {
  width: 260px;
  height: 260px;
  right: 160px;
  bottom: -220px;
  background: var(--color-brand);
  opacity: 0.22;
  filter: blur(10px);
}

.legal-hero-copy,
.legal-hero-meta {
  position: relative;
  z-index: 1;
}

.legal-hero h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  line-height: 0.98;
}

.legal-hero h1 em {
  display: block;
}

.legal-hero-meta {
  min-width: 225px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(14px);
}

.legal-hero-meta span,
.legal-hero-meta strong {
  display: block;
}

.legal-hero-meta span {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.legal-layout {
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

.legal-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 26px);
}

.legal-sidebar-card {
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.legal-sidebar-label {
  display: block;
  margin: 4px 7px 13px;
  color: var(--color-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-switcher {
  display: grid;
  gap: 6px;
}

.legal-switcher a {
  padding: 12px 13px;
  color: var(--color-muted);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  transition: color var(--transition), background var(--transition);
}

.legal-switcher a:hover,
.legal-switcher a[aria-current="page"] {
  color: var(--color-surface);
  background: var(--color-brand);
}

.legal-home-link {
  margin-top: 15px;
  padding: 13px 7px 2px;
  display: block;
  color: var(--color-muted);
  border-top: 1px solid var(--color-line);
  font-size: 0.73rem;
  font-weight: 600;
}

.legal-home-link:hover {
  color: var(--color-brand);
}

.legal-document {
  min-width: 0;
  padding: clamp(28px, 6vw, 68px);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.legal-document > strong,
.legal-document > div > strong {
  margin: 52px 0 14px;
  display: block;
  color: var(--color-ink);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.legal-document > strong:first-child {
  margin-top: 0;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--color-line);
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-document > div > strong:first-child {
  margin-top: 52px;
}

.legal-document p {
  margin: 0 0 18px;
  color: var(--color-muted);
  font-size: 0.94rem;
  line-height: 1.85;
}

.legal-document > br,
.legal-document > div > br {
  display: none;
}

.legal-document ul {
  margin: 4px 0 24px;
  padding: 0;
  list-style: none;
}

.legal-document li {
  padding: 11px 0 11px 25px;
  position: relative;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-line);
  font-size: 0.9rem;
  line-height: 1.7;
}

.legal-document li::before {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  left: 2px;
  top: 20px;
  background: var(--color-brand);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(199, 22, 29, 0.08);
}

.legal-document a {
  color: var(--color-brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(199, 22, 29, 0.3);
  text-underline-offset: 3px;
}

.legal-document a:hover {
  color: var(--color-brand-dark);
}

.legal-document hr {
  margin: 54px 0 24px;
  border: 0;
  border-top: 1px solid var(--color-line);
}

.legal-document hr + p {
  margin-bottom: 0;
  font-size: 0.76rem;
}

.support-page {
  background:
    radial-gradient(circle at 10% 12%, rgba(199, 160, 75, 0.12), transparent 24rem),
    radial-gradient(circle at 88% 4%, rgba(199, 22, 29, 0.1), transparent 28rem),
    var(--color-bg);
}

.support-hero {
  padding: calc(var(--header-height) + 82px) 0 70px;
  overflow: hidden;
}

.support-hero-grid {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 70px;
}

.support-hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3.8rem, 8vw, 6.8rem);
  line-height: 0.98;
}

.support-hero h1 em {
  color: var(--color-brand);
  font-style: normal;
}

.support-hero-copy p {
  max-width: 610px;
  margin-bottom: 30px;
  color: var(--color-muted);
  font-size: 1rem;
}

.support-app-card {
  min-height: 430px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  color: var(--color-surface);
  background: var(--color-night);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.support-app-card::before,
.support-app-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.support-app-card::before {
  width: 280px;
  height: 280px;
  top: -145px;
  right: -72px;
  border: 54px solid rgba(255, 255, 255, 0.06);
}

.support-app-card::after {
  width: 190px;
  height: 190px;
  right: 36px;
  bottom: 112px;
  background: rgba(199, 22, 29, 0.26);
  filter: blur(16px);
}

.support-app-card img,
.support-app-card span,
.support-app-card strong,
.support-app-card p {
  position: relative;
  z-index: 1;
}

.support-app-card img {
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.28);
}

.support-app-card span {
  margin-bottom: 8px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0;
}

.support-app-card strong {
  max-width: 260px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.55;
}

.support-app-card p {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
}

.support-app-card a {
  color: var(--color-surface);
  font-weight: 700;
}

.support-strip {
  border-block: 1px solid var(--color-line);
  background: var(--color-surface);
}

.support-content {
  padding-top: 88px;
}

.support-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

.support-switcher a[aria-current="page"] {
  color: var(--color-surface);
  background: var(--color-brand);
}

.support-main {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.support-panel {
  padding: clamp(28px, 5vw, 46px);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
}

.support-contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 34px;
}

.support-contact-panel h2,
.support-faq h2 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 1.08;
}

.support-contact-panel p {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--color-muted);
}

.support-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.support-card {
  min-height: 265px;
  padding: 30px;
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.support-card .feature-number {
  margin-bottom: 48px;
}

.support-card h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  line-height: 1.25;
}

.support-card p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.support-card a {
  margin-top: 18px;
  display: inline-flex;
  color: var(--color-brand);
  font-size: 0.82rem;
  font-weight: 700;
}

.support-faq .section-heading {
  margin-bottom: 28px;
}

.support-faq details {
  border-top: 1px solid var(--color-line);
}

.support-faq details:last-child {
  border-bottom: 1px solid var(--color-line);
}

.support-faq summary {
  padding: 20px 34px 20px 0;
  position: relative;
  cursor: pointer;
  color: var(--color-ink);
  font-weight: 700;
  list-style: none;
}

.support-faq summary::-webkit-details-marker {
  display: none;
}

.support-faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 19px;
  color: var(--color-brand);
  font-size: 1.35rem;
  line-height: 1;
}

.support-faq details[open] summary::after {
  content: "-";
}

.support-faq details p {
  margin: -6px 0 20px;
  max-width: 780px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.support-faq a {
  color: var(--color-brand);
  font-weight: 700;
}

@media (max-width: 860px) {
  .legal-hero {
    padding-top: calc(var(--header-height) + 38px);
  }

  .legal-hero-grid,
  .legal-layout,
  .support-hero-grid,
  .support-layout,
  .support-contact-panel {
    grid-template-columns: 1fr;
  }

  .support-hero {
    padding-top: calc(var(--header-height) + 58px);
  }

  .support-hero-grid {
    min-height: auto;
    gap: 42px;
  }

  .support-app-card {
    min-height: 360px;
  }

  .legal-hero-grid {
    min-height: 330px;
    padding: 36px;
  }

  .legal-hero-meta {
    width: min(100%, 320px);
  }

  .legal-layout {
    gap: 18px;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-sidebar-card {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius-sm);
  }

  .legal-sidebar-label,
  .legal-home-link {
    display: none;
  }

  .legal-switcher {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .support-switcher {
    grid-template-columns: repeat(3, 1fr);
  }

  .legal-switcher a {
    text-align: center;
  }
}

@media (max-width: 620px) {
  .legal-hero {
    padding-bottom: 28px;
  }

  .support-hero {
    padding-bottom: 42px;
  }

  .support-hero h1 {
    font-size: clamp(3.2rem, 16vw, 4.7rem);
  }

  .support-hero-copy .eyebrow,
  .support-hero-copy,
  .support-hero-copy .hero-actions {
    justify-content: center;
    text-align: center;
  }

  .support-app-card,
  .support-panel,
  .support-card {
    border-radius: var(--radius-md);
  }

  .support-app-card {
    min-height: 330px;
    padding: 28px 24px;
  }

  .support-app-card img {
    width: 94px;
    height: 94px;
    border-radius: var(--radius-sm);
  }

  .support-content {
    padding-top: 55px;
  }

  .support-switcher a {
    min-width: 0;
    padding-inline: 4px;
    font-size: 0.68rem;
  }

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

  .support-contact-panel .button {
    width: 100%;
  }

  .legal-hero-grid {
    min-height: 300px;
    padding: 28px 24px;
    gap: 30px;
    border-radius: var(--radius-md);
  }

  .legal-hero h1 {
    font-size: clamp(3rem, 16vw, 4.3rem);
  }

  .legal-layout {
    padding-bottom: 55px;
  }

  .legal-sidebar-card {
    padding: 8px;
  }

  .legal-switcher a {
    padding: 11px 6px;
    font-size: 0.7rem;
  }

  .legal-document {
    padding: 28px 22px;
    border-radius: var(--radius-md);
  }

  .legal-document > strong,
  .legal-document > div > strong,
  .legal-document > div > strong:first-child {
    margin-top: 38px;
  }

  .legal-document > strong:first-child {
    margin-top: 0;
  }

  .legal-document p,
  .legal-document li {
    font-size: 0.84rem;
  }
}
