/* ============================================================
   ki-skape · Legal pages — v2 tokens (mirrors src/index.css)
   Dark-only. Geist + Geist Mono. Chartreuse on near-black.
   ============================================================ */
:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-11: 11px; --fs-12: 12px; --fs-13: 13px; --fs-14: 14px;
  --fs-15: 15px; --fs-16: 16px; --fs-18: 18px; --fs-22: 22px;
  --fs-28: 28px; --fs-36: 36px;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;

  --r-1: 4px; --r-2: 6px; --r-3: 8px; --r-4: 10px; --r-5: 14px;

  --accent: #c4f24a;
  --accent-fg: #0a0a0b;
  --accent-soft: rgba(196, 242, 74, 0.12);

  --bg: #0a0a0b;
  --surface: #111113;
  --surface-2: #16161a;
  --border: #25252b;
  --border-strong: #34343c;
  --fg: #ededef;
  --fg-2: #c2c2c8;
  --muted: #888892;
  --subtle: #5a5a62;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: var(--fs-11);
  background: var(--surface-2);
  color: var(--fg-2);
  border: 1px solid var(--border);
  font-weight: 500;
  height: 20px;
}
.pill.accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }

.divider { height: 1px; background: var(--border); }

.wrap { max-width: 820px; margin: 0 auto; padding: 0 var(--s-6); }

/* ---------- nav ---------- */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav.top .inner { display: flex; align-items: center; justify-content: space-between; padding: var(--s-3) 0; }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.brand .glyph {
  width: 28px; height: 28px; border-radius: var(--r-3);
  background: var(--accent); color: var(--accent-fg);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700;
}
nav.top .back { font-size: var(--fs-13); color: var(--muted); text-decoration: none; }
nav.top .back:hover { color: var(--fg); }

/* ---------- doc ---------- */
.doc { padding: var(--s-16) 0 var(--s-12); }
.doc h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: var(--s-3) 0 var(--s-4);
}
.doc .updated { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--muted); }

.doc h2 {
  font-size: var(--fs-18);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: var(--s-10) 0 var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.doc h3 { font-size: var(--fs-15); font-weight: 600; margin: var(--s-5) 0 var(--s-2); }
.doc p { color: var(--fg-2); line-height: 1.65; margin-bottom: var(--s-3); font-size: var(--fs-14); }
.doc ul { margin: 0 0 var(--s-4); padding-left: 0; list-style: none; }
.doc ul li {
  display: flex; gap: var(--s-2);
  color: var(--fg-2); line-height: 1.6;
  font-size: var(--fs-14); margin-bottom: var(--s-2);
}
.doc ul li::before { content: "→"; color: var(--accent); flex-shrink: 0; }
.doc strong { color: var(--fg); font-weight: 600; }
.doc a { color: var(--accent); text-decoration: none; }
.doc a:hover { text-decoration: underline; }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  padding: var(--s-5);
  margin: var(--s-5) 0;
}
.callout p:last-child { margin-bottom: 0; }

table.tbl { width: 100%; border-collapse: collapse; margin: var(--s-4) 0; font-size: var(--fs-13); }
table.tbl th, table.tbl td { text-align: left; padding: var(--s-3); border-bottom: 1px solid var(--border); vertical-align: top; }
table.tbl th { font-family: var(--font-mono); font-size: var(--fs-11); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; }
table.tbl td { color: var(--fg-2); }
.tbl-scroll { overflow-x: auto; }

footer { border-top: 1px solid var(--border); background: var(--surface); padding: var(--s-8) 0; margin-top: var(--s-16); }
footer .row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-4); }
footer a { font-size: var(--fs-12); color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); }
