:root {
  --ink: #07081d;
  --paper: #f4f1ec;
  --orange: #f0542f;
  --coral: #ff7e60;
  --muted: #666878;
  --line: rgba(7, 8, 29, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.legal-header { min-height: 78px; display: flex; align-items: center; position: sticky; z-index: 20; top: 0; padding: 0 max(24px, calc((100vw - 1184px) / 2)); border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(7,8,29,.94); color: white; backdrop-filter: blur(18px); }
.legal-brand { width: 122px; margin-right: auto; }
.legal-brand img { width: 100%; filter: grayscale(1) brightness(8); }
.legal-header-nav { display: flex; align-items: center; gap: 26px; color: rgba(255,255,255,.72); font-size: 13px; }
.legal-header-nav a { transition: color .2s ease; }
.legal-header-nav a:hover { color: white; }
.legal-app-link { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border-radius: 999px; background: var(--orange); color: white !important; }
.legal-hero { position: relative; overflow: hidden; padding: 104px 24px 92px; color: white; background-color: var(--ink); background-image: radial-gradient(circle, rgba(240,84,47,.58) 1px, transparent 1.25px); background-size: 54px 54px; }
.legal-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 35%, rgba(240,84,47,.13), transparent 38%), linear-gradient(90deg, rgba(7,8,29,.42), rgba(7,8,29,.88)); }
.legal-hero-inner { width: min(1184px, 100%); position: relative; z-index: 1; margin: auto; }
.legal-kicker { margin: 0 0 20px; color: var(--coral); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.legal-hero h1 { max-width: 950px; margin: 0; font-size: clamp(58px, 8vw, 110px); font-weight: 400; line-height: .9; letter-spacing: -.07em; }
.legal-hero p:last-child { max-width: 650px; margin: 30px 0 0; color: rgba(255,255,255,.6); font-size: 16px; line-height: 1.65; }
.legal-layout { width: min(1184px, calc(100% - 48px)); display: grid; grid-template-columns: 220px minmax(0, 780px); justify-content: space-between; gap: 80px; margin: 0 auto; padding: 88px 0 120px; }
.legal-sidebar { align-self: start; position: sticky; top: 112px; }
.legal-sidebar-label { margin: 0 0 16px; color: var(--orange); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.legal-sidebar a { min-height: 48px; display: flex; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.legal-sidebar a:last-child { border-bottom: 1px solid var(--line); }
.legal-sidebar a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.legal-sidebar a[aria-current="page"]::before { content: ""; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--orange); }
.legal-document { min-width: 0; }
.legal-document h2 { margin: 76px 0 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: clamp(29px, 4vw, 42px); font-weight: 400; line-height: 1.06; letter-spacing: -.045em; }
.legal-document h2:first-child { margin-top: 0; }
.legal-document h3 { margin: 42px 0 14px; font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.025em; }
.legal-document p { margin: 0 0 17px; color: #333544; font-size: 15px; line-height: 1.78; }
.legal-document p.legal-notice { padding: 22px 24px; border-left: 3px solid var(--orange); background: rgba(240,84,47,.08); color: var(--ink); font-size: 13px; font-weight: 600; }
.legal-toc { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 10px 0 42px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.legal-toc a { min-height: 52px; display: flex; align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.35; }
.legal-loading { color: var(--muted); }
.legal-footer { padding: 48px 24px 28px; color: white; background: #040515; }
.legal-footer-inner { width: min(1184px, 100%); display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 44px; margin: auto; }
.legal-footer .legal-brand { width: 108px; }
.legal-footer p { max-width: 680px; margin: 0; color: rgba(255,255,255,.4); font-size: 10px; line-height: 1.65; }
.legal-footer-links { display: flex; gap: 18px; color: rgba(255,255,255,.7); font-size: 11px; }

@media (max-width: 800px) {
  .legal-header { min-height: 68px; padding: 0 16px; }
  .legal-brand { width: 110px; }
  .legal-header-nav > a:not(.legal-app-link) { display: none; }
  .legal-app-link { min-height: 40px; padding: 0 16px; font-size: 12px; }
  .legal-hero { padding: 84px 16px 72px; }
  .legal-hero h1 { font-size: clamp(52px, 17vw, 78px); }
  .legal-layout { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 48px; padding: 54px 0 84px; }
  .legal-sidebar { position: static; }
  .legal-sidebar nav { display: grid; grid-template-columns: 1fr 1fr; }
  .legal-sidebar a { padding: 0 10px; border-bottom: 1px solid var(--line); }
  .legal-toc { grid-template-columns: 1fr; }
  .legal-document h2 { margin-top: 58px; }
  .legal-footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .legal-footer-links { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .legal-header-nav .legal-app-link { width: 42px; padding: 0; font-size: 0; }
  .legal-header-nav .legal-app-link span { font-size: 14px; }
  .legal-hero h1 { overflow-wrap: anywhere; font-size: 50px; }
  .legal-hero p:last-child { font-size: 14px; }
  .legal-document p { font-size: 14px; line-height: 1.72; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
