/* ══════════════════════════════════════════════════════════════════════
   Shared styling for the legal pages. Same tokens as index.html so the
   policies read as part of the product rather than a bolted-on PDF.
   ══════════════════════════════════════════════════════════════════════ */
:root{
  --bg:#F5F5F7; --surface:rgba(255,255,255,.72); --surface-solid:#FFFFFF;
  --line:rgba(0,0,0,.08); --line-soft:rgba(0,0,0,.05); --line-strong:rgba(0,0,0,.14);
  --ink:#1D1D1F; --ink-2:#48484A; --ink-3:#6E6E73; --ink-4:#8E8E93;
  --brand-1:#3309CE; --brand-2:#4D23F6; --brand-soft:rgba(57,10,230,.10);
  --logo-1:#3309CE; --logo-2:#4D23F6;
  --font:'Outfit',-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
  --mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --r-sm:10px; --r-md:16px; --r-lg:22px;
  --ease:cubic-bezier(.16,1,.3,1);
  --shadow-brand:0 8px 24px rgba(51,9,206,.34);
  --maxw:1160px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  font-family:var(--font);background:var(--bg);color:var(--ink);
  font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;
}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}

/* ── nav ─────────────────────────────────────────────────────────────── */
.nav{
  position:sticky;top:0;z-index:50;height:66px;display:flex;align-items:center;
  background:rgba(245,245,247,.82);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line-soft);
}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;width:100%}
.brand{
  display:flex;align-items:center;gap:9px;text-decoration:none;
  font-size:19px;font-weight:700;letter-spacing:-.02em;color:var(--ink);
}
.brand svg{width:26px;height:26px;flex-shrink:0}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:38px;padding:0 18px;border-radius:11px;text-decoration:none;
  font-size:14.5px;font-weight:600;letter-spacing:-.01em;border:none;cursor:pointer;
  background:linear-gradient(135deg,var(--brand-1),var(--brand-2));color:#fff;
  box-shadow:var(--shadow-brand);transition:transform .18s var(--ease);
}
.btn:hover{transform:translateY(-2px)}

/* ── document ────────────────────────────────────────────────────────── */
.doc{padding:60px 0 80px}
.doc .wrap{max-width:760px}
.eyebrow{
  display:inline-flex;align-items:center;gap:7px;margin-bottom:14px;
  font-size:12px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;
  color:var(--brand-1);background:var(--brand-soft);
  padding:6px 12px;border-radius:999px;
}
h1{font-size:clamp(32px,5vw,44px);line-height:1.12;letter-spacing:-.035em;font-weight:800}
.updated{
  margin-top:14px;font-family:var(--mono);font-size:12.5px;
  color:var(--ink-4);font-weight:500;
}
.intro{margin-top:22px;font-size:17.5px;line-height:1.62;color:var(--ink-2)}

.notice{
  margin-top:28px;padding:18px 20px;border-radius:var(--r-md);
  background:var(--surface-solid);border:1px solid var(--line);
  border-left:3px solid var(--brand-1);
  font-size:15px;line-height:1.6;color:var(--ink-2);
}
.notice b{color:var(--ink);font-weight:650}

/* table of contents */
.toc{
  margin-top:34px;padding:20px 22px;border-radius:var(--r-md);
  background:var(--surface-solid);border:1px solid var(--line-soft);
}
.toc h2{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-4);margin-bottom:12px}
.toc ol{list-style:none;counter-reset:t;columns:2;column-gap:28px}
.toc li{counter-increment:t;font-size:14.5px;break-inside:avoid;margin-bottom:6px}
.toc li::before{content:counter(t) ". ";font-family:var(--mono);font-size:12px;color:var(--ink-4)}
.toc a{color:var(--ink-2);text-decoration:none}
.toc a:hover{color:var(--brand-1)}

section.s{margin-top:44px;scroll-margin-top:84px}
section.s h2{
  font-size:21px;font-weight:700;letter-spacing:-.02em;line-height:1.3;
  padding-bottom:10px;border-bottom:1px solid var(--line-soft);margin-bottom:16px;
}
section.s h2 .n{font-family:var(--mono);font-size:14px;color:var(--brand-1);margin-right:9px;font-weight:600}
section.s h3{font-size:16.5px;font-weight:650;letter-spacing:-.01em;margin:22px 0 8px}
section.s p{color:var(--ink-2);margin-bottom:13px}
section.s p:last-child{margin-bottom:0}
section.s ul{margin:0 0 14px 0;padding-left:20px;color:var(--ink-2)}
section.s li{margin-bottom:7px}
section.s b,section.s strong{color:var(--ink);font-weight:650}
section.s a{color:var(--brand-1);text-decoration:none;border-bottom:1px solid rgba(51,9,206,.30)}
section.s a:hover{border-bottom-color:var(--brand-1)}
.fill{background:rgba(255,159,10,.14);color:#8A4E00;padding:1px 6px;border-radius:5px;font-family:var(--mono);font-size:13px;font-weight:600}

/* ── footer ──────────────────────────────────────────────────────────── */
footer{border-top:1px solid var(--line-soft);padding:40px 0 48px;background:var(--surface)}
.foot-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px}
.foot-links{display:flex;flex-wrap:wrap;gap:6px 20px}
.foot-links a{font-size:14px;color:var(--ink-3);text-decoration:none}
.foot-links a:hover{color:var(--brand-1)}
.disclaimer{
  margin-top:26px;padding-top:22px;border-top:1px solid var(--line-soft);
  font-size:12.5px;line-height:1.62;color:var(--ink-4);
}
.disclaimer b{color:var(--ink-3);font-weight:650}
.copy{margin-top:18px;font-size:12.5px;color:var(--ink-4)}

@media(max-width:640px){
  .toc ol{columns:1}
  .nav-cta-text{display:none}
  .doc{padding:40px 0 60px}
}

/* ══════════════════════════════════════════════════════════════════════
   DARK PALETTE
   Same tokens and the same storage key as the landing page, so switching
   the theme anywhere carries across to the policies and back. Values are
   copied from index.html's [data-theme="dark"] block rather than picked
   again, so the two cannot drift apart by eye.
   ══════════════════════════════════════════════════════════════════════ */
[data-theme="dark"]{
  --bg:#07070B; --surface:rgba(255,255,255,.045); --surface-solid:#101018;
  --line:rgba(255,255,255,.10); --line-soft:rgba(255,255,255,.062); --line-strong:rgba(255,255,255,.19);
  --ink:#F4F4F7; --ink-2:#B4B4C2; --ink-3:#8A8A9A; --ink-4:#8B8B9C;
  /* the accent as TEXT needs lifting on a dark ground: #6B1FD6 only clears
     3.4:1 on black, which fails against body copy at this size */
  --brand-1:#9E8AF7; --brand-2:#633EF7; --brand-soft:rgba(99,62,247,.16);
  --logo-1:#3B0DF5; --logo-2:#633EF7;
  --shadow-brand:0 10px 30px rgba(59,13,245,.46);
  color-scheme:dark;
}
/* the button keeps the gradient it has in light, so it stays the one
   saturated thing on the page rather than turning into pale text */
[data-theme="dark"] .btn{background:linear-gradient(135deg,#3B0DF5,#633EF7);color:#fff}
[data-theme="dark"] .nav{background:rgba(7,7,11,.82)}
[data-theme="dark"] .toc,
[data-theme="dark"] .notice{background:var(--surface-solid)}
[data-theme="dark"] section.s a{border-bottom-color:rgba(158,138,247,.40)}
[data-theme="dark"] .fill{background:rgba(255,159,10,.16);color:#FFC46B}

/* ── the theme toggle ────────────────────────────────────────────────── */
.nav-right{display:flex;align-items:center;gap:10px}
.theme-btn{
  width:36px;height:36px;border-radius:11px;flex-shrink:0;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  color:var(--ink-3);border:1px solid var(--line);background:transparent;
  transition:color .16s ease,background .16s ease,border-color .16s ease;
}
.theme-btn:hover{color:var(--ink);background:var(--surface);border-color:var(--line-strong)}
.theme-btn svg{width:17px;height:17px}
.theme-btn .i-sun{display:none}
[data-theme="dark"] .theme-btn .i-sun{display:block}
[data-theme="dark"] .theme-btn .i-moon{display:none}
@media(max-width:640px){.theme-btn{display:none}}
