:root {
  --ink: #171615;
  --paper: #f4f4f1;
  --muted: #716e69;
  --line: rgba(23, 22, 21, 0.12);
  --red: #ff4f4b;
  --orange: #ff963d;
  --yellow: #ffcc3a;
  --mint: #68dfc2;
  --blue: #4d98ef;
  --violet: #8153ef;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: #fff; }
.skip-link:focus { top: 16px; }

.legal-header {
  position: fixed;
  z-index: 50;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  color: #fff;
  background: rgba(18,17,16,.72);
  box-shadow: 0 14px 40px rgba(0,0,0,.16);
  backdrop-filter: blur(22px) saturate(150%);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; letter-spacing: -.02em; }
.brand img { border-radius: 10px; }
.back-link { padding: 9px 12px; border-radius: 12px; color: var(--ink); background: #fff; font-size: 13px; font-weight: 700; }

.legal-hero {
  min-height: 760px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 130px 20px 62px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 13%, rgba(255,79,75,.22), transparent 30%),
    radial-gradient(circle at 10% 72%, rgba(129,83,239,.26), transparent 34%),
    #171615;
}
.legal-hero-glow { position: absolute; right: -120px; top: 160px; width: 360px; height: 360px; border-radius: 50%; background: var(--violet); filter: blur(120px); opacity: .18; }
.legal-mark { position: absolute; top: 125px; right: -35px; width: 210px; height: 210px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(from -10deg,var(--mint) 0 15%,#171615 15% 17%,var(--blue) 17% 32%,#171615 32% 34%,var(--violet) 34% 50%,#171615 50% 52%,var(--yellow) 52% 69%,#171615 69% 71%,var(--orange) 71% 85%,#171615 85% 87%,var(--red) 87% 100%); opacity: .9; transform: rotate(8deg); }
.legal-mark span { width: 145px; height: 145px; border-radius: 50%; background: #171615; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.eyebrow { position: relative; margin: 0 0 18px; color: rgba(255,255,255,.48); font-size: 11px; font-weight: 760; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow.dark { color: #8c8881; }
.legal-hero h1 { position: relative; max-width: 680px; margin: 0; font-size: clamp(57px,16vw,92px); line-height: .89; letter-spacing: -.07em; }
.legal-hero h1 span { color: rgba(255,255,255,.32); }
.hero-copy { position: relative; max-width: 560px; margin: 30px 0 0; color: rgba(255,255,255,.62); font-size: 19px; line-height: 1.5; }
.document-meta { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.document-meta span { padding: 8px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: rgba(255,255,255,.68); font-size: 11px; }

.release-note { margin: 18px; display: grid; grid-template-columns: 36px 1fr; gap: 13px; padding: 18px; border: 1px solid rgba(255,150,61,.32); border-radius: 24px; background: #fff3e8; }
.note-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: #6c3204; background: var(--orange); font-weight: 850; }
.release-note strong { display: block; font-size: 15px; }
.release-note p { margin: 6px 0 0; color: #79583f; font-size: 13px; line-height: 1.5; }

.section-nav { position: sticky; z-index: 20; top: 78px; display: flex; gap: 7px; margin: 18px; padding: 7px; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: rgba(244,244,241,.9); box-shadow: 0 12px 35px rgba(0,0,0,.07); backdrop-filter: blur(18px); scrollbar-width: none; }
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a { flex: 0 0 auto; padding: 10px 12px; border-radius: 12px; background: #fff; font-size: 12px; font-weight: 680; }

.legal-section { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 96px 18px; scroll-margin-top: 120px; }
.section-number { padding-top: 6px; color: #aaa69f; font-size: 11px; letter-spacing: .12em; }
.section-content { min-width: 0; }
.section-content > h2, .sources > h2 { max-width: 680px; margin: 0; font-size: clamp(45px,12vw,72px); line-height: .94; letter-spacing: -.065em; }

.principles { display: grid; gap: 10px; margin-top: 44px; }
.principle { min-height: 265px; padding: 25px; border-radius: 31px; }
.principle.local { color: #fff; background: #1b1a19; }
.principle.mask { background: #e9e3ff; }
.principle.choice { background: #d9f6ed; }
.principle-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: rgba(255,255,255,.54); font-weight: 850; }
.principle.local .principle-icon { background: rgba(255,255,255,.1); }
.principle h3 { margin: 50px 0 10px; font-size: 26px; letter-spacing: -.045em; }
.principle p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.principle.local p { color: rgba(255,255,255,.54); }

.flow-card { margin-top: 10px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 24px; border-radius: 31px; background: #fff; }
.flow-card > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 17px; background: #f1f1ed; }
.flow-card .flow-mask { background: #e6dcff; }
.flow-card small { color: var(--muted); font-size: 10px; }
.flow-card strong { font-size: 14px; }
.flow-card > span { color: var(--violet); font-weight: 850; }

.legal-copy { margin-top: 54px; }
.legal-copy h3 { margin: 44px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 21px; letter-spacing: -.025em; }
.legal-copy p, .legal-copy li { color: var(--muted); font-size: 16px; line-height: 1.65; }
.legal-copy p { margin: 0; }
.legal-copy ul { margin: 0; padding-left: 20px; }
.legal-copy li + li { margin-top: 8px; }

.ai-section { position: relative; overflow: hidden; padding: 100px 18px; scroll-margin-top: 110px; color: #fff; background: #181716; }
.ai-orb { width: 160px; height: 160px; margin: 0 auto 55px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%,#49433e,#1d1b1a 62%); box-shadow: 0 35px 90px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08); }
.ai-orb::before { content: ""; position: absolute; width: 215px; height: 215px; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; }
.ai-orb img { width: 88px; filter: drop-shadow(0 16px 30px rgba(0,0,0,.4)); }
.ai-content > h2 { margin: 0; font-size: clamp(50px,13vw,78px); line-height: .92; letter-spacing: -.07em; }
.ai-lede { max-width: 590px; margin: 24px 0 0; color: rgba(255,255,255,.57); font-size: 18px; line-height: 1.5; }
.consent-text { margin-top: 46px; padding: 24px; border: 1px solid rgba(104,223,194,.32); border-radius: 28px; background: rgba(104,223,194,.07); }
.consent-label { color: var(--mint); font-size: 11px; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }
.consent-text p { margin: 17px 0 0; color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.62; }
.ai-grid { display: grid; gap: 10px; margin-top: 10px; }
.ai-grid article { padding: 24px; border: 1px solid rgba(255,255,255,.09); border-radius: 28px; background: rgba(255,255,255,.055); }
.ai-grid article > span { display: block; margin-bottom: 17px; color: var(--mint); font-weight: 720; }
.ai-grid ul { margin: 0; padding-left: 18px; }
.ai-grid li { color: rgba(255,255,255,.58); font-size: 14px; line-height: 1.52; }
.ai-grid li + li { margin-top: 8px; }
.warning-card { margin-top: 10px; padding: 23px; border-radius: 28px; color: #2a1806; background: var(--yellow); }
.warning-card strong { display: block; font-size: 18px; line-height: 1.25; }
.warning-card p { margin: 9px 0 0; color: rgba(42,24,6,.7); font-size: 13px; line-height: 1.5; }

.provider-list { display: grid; gap: 10px; margin-top: 44px; }
.provider-list article { padding: 24px; border-radius: 28px; background: #fff; }
.provider-head { display: grid; grid-template-columns: 14px 1fr; gap: 2px 10px; align-items: center; }
.provider-dot { grid-row: span 2; width: 12px; height: 12px; border-radius: 50%; }
.provider-dot.anthropic { background: var(--orange); }
.provider-dot.openai { background: var(--mint); }
.provider-head strong { font-size: 20px; }
.provider-head small { color: var(--muted); }
.provider-list p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.provider-list a { display: inline-block; padding-bottom: 3px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }

.rights-grid { display: grid; gap: 10px; margin-top: 44px; }
.rights-grid article { min-height: 215px; padding: 24px; border-radius: 28px; background: #fff; }
.rights-grid article > span { color: var(--violet); font-size: 11px; font-weight: 800; }
.rights-grid h3 { margin: 45px 0 8px; font-size: 24px; letter-spacing: -.04em; }
.rights-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.sources { margin: 0 18px 80px; padding: 34px 25px; border-radius: 34px; background: #e9e3ff; }
.sources > h2 { font-size: 42px; }
.source-links { display: grid; gap: 9px; margin-top: 30px; }
.source-links a { display: flex; flex-direction: column; gap: 4px; padding: 17px; border-radius: 18px; background: rgba(255,255,255,.67); }
.source-links span { color: var(--muted); font-size: 11px; }
.source-links strong { font-size: 14px; }
.contact-note { margin: 26px 0 0; color: #625877; font-size: 13px; line-height: 1.55; }

footer { margin: 0 18px; padding: 28px 0 38px; display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-brand { color: var(--ink); }
footer > p { display: none; }
footer > div { justify-self: end; display: flex; gap: 15px; }

@media (min-width: 700px) {
  .legal-header { left: 50%; right: auto; width: min(680px,calc(100% - 20px)); transform: translateX(-50%); }
  .legal-hero, .ai-section { padding-inline: max(24px,calc((100vw - 680px)/2)); }
  .release-note, .section-nav, .legal-section, .sources, footer { width: min(680px,calc(100% - 36px)); margin-left: auto; margin-right: auto; }
  .principles, .ai-grid, .provider-list, .rights-grid { grid-template-columns: repeat(2,1fr); }
  .principles .principle:first-child { grid-column: 1 / -1; }
  .flow-card { grid-template-columns: 1fr auto 1fr auto 1fr; }
  footer > p { display: block; }
  footer { grid-template-columns: 1fr auto 1fr; }
}

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