/* Splitt — Legal pages shared styles
   Matches landing-page aesthetic: dark ground, lime accent, Inter Tight + JetBrains Mono.
*/
:root {
  --ink: #0A0A0C;
  --ink-2: #0E0E12;
  --ink-3: #15151A;
  --paper: #F5F3EC;
  --lime: #D4FF3A;
  --dim: #8A8A93;
  --line: rgba(255,255,255,0.06);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--ink); color: var(--paper); font-family: 'Inter Tight', sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--lime); color: var(--ink); }

/* Subtle grain */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 200;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.14'/></svg>");
  mix-blend-mode: overlay; opacity: 0.35;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 0 28px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; padding: 16px 0; backdrop-filter: blur(18px); background: rgba(10,10,12,0.72); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.4px; color: #FFFFFF; text-decoration: none; }
.brand-logo { animation: spin 20s linear infinite; transform-origin: center; }
.nav-links { display: none; gap: 28px; }
@media (min-width: 800px) { .nav-links { display: inline-flex; } }
.nav-link { color: var(--dim); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 160ms ease; }
.nav-link:hover, .nav-link.active { color: var(--paper); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 9999px; font-weight: 600; font-size: 14px; cursor: pointer; border: none; text-decoration: none; transition: transform 180ms ease; }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { transform: translateY(-1px); }

/* Spin keyframe */
@keyframes spin { to { transform: rotate(360deg); } }

/* Page header */
.page-head { padding: 80px 0 40px; position: relative; overflow: hidden; }
.page-head::before {
  content: ''; position: absolute; top: -160px; right: -120px; width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(212,255,58,0.10), transparent 70%); pointer-events: none;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 9999px;
  background: rgba(212,255,58,0.08); border: 1px solid rgba(212,255,58,0.25); color: var(--lime);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 6px; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
h1.page-h {
  font-size: clamp(40px, 6vw, 72px); font-weight: 700; line-height: 0.95; letter-spacing: -0.035em;
  margin: 20px 0 12px; max-width: 900px;
}
.lede { font-size: 18px; color: var(--dim); max-width: 720px; line-height: 1.55; }
.meta-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 28px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--dim);
  letter-spacing: 0.1em; text-transform: uppercase; border-top: 1px solid var(--line); padding-top: 20px; }
.meta-row b { color: var(--paper); font-weight: 600; }
.meta-row .ok { color: var(--lime); }

/* Body */
.body { padding: 40px 0 100px; display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 920px) { .body { grid-template-columns: 220px 1fr; gap: 80px; } }

/* TOC */
.toc { position: sticky; top: 96px; align-self: start; display: none; }
@media (min-width: 920px) { .toc { display: block; } }
.toc .label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-bottom: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 7px 0; color: var(--dim); text-decoration: none; font-size: 13px; line-height: 1.4; border-left: 1px solid var(--line); padding-left: 14px; margin-left: -1px; transition: color 140ms ease, border-color 140ms ease; }
.toc a::before { content: counter(toc, decimal-leading-zero); display: inline-block; margin-right: 8px; font-family: 'JetBrains Mono', monospace; font-size: 10px; opacity: 0.7; }
.toc a:hover, .toc a.active { color: var(--paper); border-left-color: var(--lime); }

/* Sections */
.section { padding-top: 8px; scroll-margin-top: 96px; }
.section + .section { margin-top: 48px; }
.section-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); font-weight: 600; }
h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 12px 0 18px; color: var(--paper); }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.2px; margin: 28px 0 10px; color: var(--paper); }
p, li { font-size: 16px; line-height: 1.7; color: #C8C8CC; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 22px; margin: 0 0 18px; }
li { margin-bottom: 8px; }
a { color: var(--lime); text-decoration: none; border-bottom: 1px solid rgba(212,255,58,0.35); transition: border-color 140ms ease; }
a:hover { border-bottom-color: var(--lime); }
strong, b { color: var(--paper); font-weight: 600; }

/* Callout boxes */
.callout { padding: 18px 20px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); margin: 18px 0; display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.callout.lime { background: rgba(212,255,58,0.06); border-color: rgba(212,255,58,0.25); }
.callout.warn { background: rgba(255,130,102,0.06); border-color: rgba(255,130,102,0.25); }
.callout .ic { width: 28px; height: 28px; border-radius: 28px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.callout.lime .ic { background: var(--lime); color: var(--ink); }
.callout.warn .ic { background: #FF8266; color: var(--ink); }
.callout .ic + div p:last-child { margin-bottom: 0; }
.callout .ic + div p:first-child { margin-top: 0; }

/* Table */
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--ink-2); font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
td { color: #C8C8CC; }
td:first-child { font-weight: 600; color: var(--paper); }
tr:last-child td { border-bottom: none; }

/* Definition list */
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 20px; margin: 18px 0; font-size: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2); }
.kv dt { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.kv dd { margin: 0; color: var(--paper); }

/* Step list */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; padding-left: 48px; position: relative; margin-bottom: 22px; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 32px; background: rgba(212,255,58,0.1); border: 1px solid rgba(212,255,58,0.3);
  color: var(--lime); font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; }
.steps li b { display: block; color: var(--paper); margin-bottom: 4px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--dim); font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; }
.foot-row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--dim); border: none; }
.foot-links a:hover { color: var(--paper); }

/* Print */
@media print {
  body { background: #fff; color: #000; }
  .nav, .toc, footer, body::before { display: none; }
  h1, h2, h3, p, li, td, dd { color: #000 !important; }
  th { color: #444 !important; }
  a { color: #000 !important; border: none !important; }
}
