/* Legal pages (/privacy/, /terms/): a calm reading layout in the site's tokens. Standalone so these pages stay light. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../assets/fonts/geist-latin.woff2?v=ee4b1e53db") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../assets/fonts/geist-latin-ext.woff2?v=68bb93eba7") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+20A0-20C4, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #090E31; --muted: #5A6188; --muted-strong: #3D4566; --line: #D9DFF0; --soft: #F6F8FD; --tint: #E2EAFF;
  --blue: #005FFC; --yellow: #FFC91C; --white: #fff;
  --pad: clamp(20px, 5vw, 40px); --wrap: 1120px; --ease: cubic-bezier(0.32, 0.72, 0, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Geist", system-ui, sans-serif; font-size: 17px; line-height: 1.65; color: var(--muted-strong); background: var(--white); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--navy); margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; padding: 8px 14px; border-radius: 8px; background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 300ms; }
.bar.is-scrolled { border-bottom-color: var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand-word { display: block; height: 12px; aspect-ratio: 815 / 56; background: var(--navy); -webkit-mask: url("../assets/logo-nervure-wordmark.png?v=9609b250f6") center / contain no-repeat; mask: url("../assets/logo-nervure-wordmark.png?v=9609b250f6") center / contain no-repeat; }
.bar-links { display: flex; align-items: center; gap: clamp(12px, 3vw, 24px); font-size: 14px; }
.bar-links a:not(.btn) { color: var(--muted-strong); text-decoration: none; }
.bar-links a:not(.btn):hover { color: var(--navy); }
.btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: transform 300ms var(--ease), box-shadow 300ms; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 95, 252, 0.28); }

/* header band */
.hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: clamp(48px, 8vw, 88px) 0 clamp(36px, 5vw, 56px); }
.eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; letter-spacing: -0.035em; }
.hero .lede { max-width: 58ch; margin: 18px 0 0; font-size: clamp(17px, 1.8vw, 19px); color: var(--muted-strong); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 28px; }
.updated { font-size: 14px; color: var(--muted); }
.switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.switch a { padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted-strong); text-decoration: none; transition: background 250ms, color 250ms; }
.switch a:hover { color: var(--navy); }
.switch a[aria-current="page"] { background: var(--navy); color: #fff; }

/* body: contents rail + the document */
.doc { display: grid; gap: 40px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 9vw, 112px); }
@media (min-width: 960px) { .doc { grid-template-columns: 230px minmax(0, 1fr); gap: 72px; } }
.toc { align-self: start; }
@media (min-width: 960px) { .toc { position: sticky; top: 100px; } }
.toc h2 { margin-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: flex; gap: 10px; padding: 6px 10px; border-radius: 8px; font-size: 14px; line-height: 1.4; color: var(--muted-strong); text-decoration: none; transition: background 200ms, color 200ms; }
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); flex: none; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; padding-top: 1px; }
.toc a:hover { background: var(--soft); color: var(--navy); }
.toc a.is-current { background: var(--tint); color: var(--navy); }
@media (max-width: 959px) { .toc ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }

.content { max-width: 70ch; }
.content > .intro { margin: 0 0 40px; font-size: 18px; color: var(--navy); }
.content section { padding: 28px 0; border-top: 1px solid var(--line); }
.content section:first-of-type { border-top: 0; padding-top: 0; }
.content h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(21px, 2.2vw, 25px); font-weight: 700; }
.content h2 .n { flex: none; font-size: 13px; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.content p { margin: 12px 0 0; }

.contact { margin-top: 32px; padding: 28px; border-radius: 20px; background: var(--soft); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.contact h2 { font-size: 20px; }
.contact p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--soft); padding: 28px 0 36px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.foot span { margin-right: auto; }
.foot a { color: var(--muted-strong); text-decoration: none; }
.foot a:hover { color: var(--navy); }
.foot a[aria-current="page"] { color: var(--navy); font-weight: 600; }

@media (max-width: 560px) { .bar-links .home { display: none; } .brand-word { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
