/* Legal pages — 9G Labs house style, tuned for long-form reading.
   Same tokens as index.html; wider line-height and a serif-free measure. */

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

:root {
  --bg: #0A0A0F;
  --surface: #12121A;
  --border: #1E1E2E;
  --text: #E8E8ED;
  --text-2: #6B6B7B;
  --accent: #00E5A0;
  --accent-glow: #00E5A033;
  --font-heading: 'Syne', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

::selection { background: var(--accent); color: var(--bg); }

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 1.5rem;
  height: 60px; padding: 0 2rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
nav .nav-logo { display: flex; align-items: center; text-decoration: none; }
nav .nav-logo img { height: 26px; width: auto; filter: invert(1); }
nav .nav-here {
  font-family: var(--font-mono); font-size: .7rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-2);
}

/* ─── LAYOUT ─── */
.wrap { max-width: 46rem; margin: 0 auto; padding: 4rem 2rem 6rem; }

header.doc { margin-bottom: 3.5rem; }

.eyebrow {
  font-family: var(--font-mono); font-size: .75rem;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent); margin-bottom: 1.25rem;
}

h1 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1;
  margin-bottom: .75rem;
}

h2 {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.25;
  margin: 3.5rem 0 1rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
}

h3 {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 1.05rem; margin: 2rem 0 .5rem;
}

.dateline {
  font-family: var(--font-mono); font-size: .75rem;
  color: var(--text-2); letter-spacing: .04em;
}

.lede { font-size: 1.05rem; color: var(--text); }

p, li { margin-bottom: 1.1rem; color: var(--text-2); }
.lede, h2 + p, .callout p { color: var(--text); }
ul, ol { padding-left: 1.25rem; margin-bottom: 1.1rem; }
li::marker { color: var(--accent); }
strong { font-weight: 500; color: var(--text); }

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .3s ease; }
a:hover, a:focus { border-bottom-color: var(--accent); }

code {
  font-family: var(--font-mono); font-size: .85em;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: .1em .4em;
}

.callout {
  margin: 2rem 0; padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border); border-left: 2px solid var(--accent);
  border-radius: 8px;
}
.callout p:last-child { margin-bottom: 0; }

/* ─── TABLE ─── */
.table-wrap {
  margin: 2rem 0; overflow-x: auto;
  border: 1px solid var(--border); border-radius: 8px;
}
table { width: 100%; border-collapse: collapse; font-size: .875rem; line-height: 1.6; }
th, td { padding: .9rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
th {
  font-family: var(--font-mono); font-weight: 500;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: var(--surface);
}
td { color: var(--text-2); }
td strong { display: block; margin-bottom: .2rem; }

/* ─── FOOTER ─── */
footer {
  margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: .7rem;
  color: var(--text-2); letter-spacing: .04em;
}
footer a { border-bottom: none; }
footer a:hover { border-bottom: 1px solid var(--accent); }

@media (max-width: 768px) {
  nav { padding: 0 1.25rem; gap: 1rem; }
  .wrap { padding: 3rem 1.5rem 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

@media print {
  nav { display: none; }
  body { background: #fff; color: #111; }
  p, li, td { color: #333; }
  a { color: #111; text-decoration: underline; }
  .callout, .table-wrap { border: 1px solid #ccc; break-inside: avoid; }
}
