/* Shared styles for North Vein Labs legal pages: same tokens as the home page, a single reading column with a sticky contents rail. */
:root {
  --rock: #EDF0EE; --surface: #F9FBFA; --basalt: #18201D; --muted: #56635E; --line: #CDD5D1;
  --vein: #1B7155; --vein-soft: #D5E8E0; --ore: #A0731C; --ore-soft: #F3E7CD;
  --panel: #18201D; --panel-fg: #E9EEEB; --panel-muted: #9FAEA7; --panel-ore: #E2B356;
  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --rock: #111614; --surface: #18201C; --basalt: #E4E9E6; --muted: #93A19A; --line: #29332F;
    --vein: #4CC197; --vein-soft: #16302A; --ore: #E2B356; --ore-soft: #382C14;
    --panel: #1E2824; --panel-fg: #E9EEEB; --panel-muted: #9FAEA7; --panel-ore: #E2B356;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--rock); color: var(--basalt); font-family: var(--f-body); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--vein); }
:focus-visible { outline: 2px solid var(--vein); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--rock) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--basalt); }
.mark svg { width: 30px; height: 30px; flex: none; }
.mark span { font-family: var(--f-display); font-weight: 900; font-size: 1.4rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { font-family: var(--f-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--vein); }
@media (max-width: 640px) { .nav a.hide-sm { display: none; } .nav { gap: 14px; flex-wrap: nowrap; } .mark span { font-size: 1.15rem; } }

.head { border-bottom: 1px solid var(--line); }
.head .wrap { padding-block: 64px 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--vein); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--ore); }
h1 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.8rem, 8vw, 5.4rem); line-height: 0.88; margin: 0 0 20px; text-wrap: balance; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }
.meta b { color: var(--basalt); font-weight: 500; }
.lede { max-width: 62ch; color: var(--muted); font-size: 1.08rem; margin: 18px 0 0; }

.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding-block: 56px 96px; }
.toc { position: sticky; top: 92px; align-self: start; font-family: var(--f-mono); font-size: 0.76rem; }
.toc p { text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--vein); border-left-color: var(--ore); }
@media (max-width: 860px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 36px 72px; } .toc { position: static; } }

article { min-width: 0; max-width: 72ch; }
article section { padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
article section:last-child { border-bottom: 0; }
h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1; margin: 0 0 16px; text-wrap: balance; }
h3 { font-family: var(--f-body); font-weight: 600; font-size: 1.08rem; margin: 26px 0 8px; }
p { margin: 0 0 14px; }
ul { margin: 0 0 16px; padding-left: 20px; }
li { margin-bottom: 6px; }
li::marker { color: var(--ore); }
strong { font-weight: 600; }
.mail { font-family: var(--f-mono); font-size: 0.92em; color: var(--basalt); background: var(--vein-soft); padding: 1px 6px; border-radius: 2px; user-select: all; word-break: break-all; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--ore); border-radius: 3px; padding: 16px 18px; margin: 0 0 20px; }
.note p:last-child { margin: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px 16px 58px; position: relative; margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--basalt); color: var(--rock); font-family: var(--f-mono); font-size: 0.8rem; display: grid; place-items: center; }

footer { background: var(--panel); color: var(--panel-fg); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-block: 48px 52px; }
footer .big { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 0.85; }
footer .big span { color: var(--panel-ore); }
footer .fmeta { font-family: var(--f-mono); font-size: 0.74rem; color: var(--panel-muted); display: grid; gap: 6px; text-align: right; }
footer .fmeta a { color: var(--panel-fg); text-decoration: none; }
footer .fmeta a:hover { color: var(--panel-ore); }
footer .links { display: flex; gap: 16px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 600px) { footer .fmeta { text-align: left; } footer .links { justify-content: flex-start; } }
