/* ============================================================================
   Minerva — Privacy Policy page styles
   Self-contained + self-hosted. Mirrors the marketing site's brand
   (Editorial Cream / Minerva Blue / Libre Baskerville + Work Sans, v0.14.7)
   but is intentionally NOT dependent on the animation-heavy styles.css, so a
   legal page renders identically and reliably for years regardless of any
   future changes to the marketing site's motion CSS.
   Fonts are loaded from the site's own /fonts/*.woff2 — no external CDN.
   ========================================================================= */

/* ---- self-hosted webfonts (same files the design bundle ships) ---- */
/* Libre Baskerville — italic 400 (latin) */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/librebaskerville-v24-kmKWZrc3Hgbbcjq75U4uslyuy4kn0qNccR04_RUJeby2OU36SjNNlufweKgfqIc.woff2) 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;
}
/* Libre Baskerville — italic 400 (latin-ext) */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/librebaskerville-v24-kmKWZrc3Hgbbcjq75U4uslyuy4kn0qNccR04_RUJeby2OU36SjNDlufweKgfqIfzTg.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Libre Baskerville — normal 400 (latin) */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/librebaskerville-v24-kmKnZrc3Hgbbcjq75U4uslyuy4kn0qNZaxMaC82U.woff2) 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;
}
/* Libre Baskerville — normal 400 (latin-ext) */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/librebaskerville-v24-kmKnZrc3Hgbbcjq75U4uslyuy4kn0qNXaxMaC82U-ro.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Libre Baskerville — normal 700 (reuses the 400 files, matching the bundle) */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/librebaskerville-v24-kmKnZrc3Hgbbcjq75U4uslyuy4kn0qNZaxMaC82U.woff2) 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;
}
/* Work Sans — normal 400/500/600/700 (latin). One static instance covers the
   weights the page uses, exactly as the design bundle does. */
@font-face {
  font-family: 'Work Sans';
  font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/worksans-v24-QGYsz_wNahGAdqQ43Rh_fKDptfpA4Q.woff2) 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;
}
/* Work Sans — normal 400/500/600/700 (latin-ext) */
@font-face {
  font-family: 'Work Sans';
  font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/worksans-v24-QGYsz_wNahGAdqQ43Rh_cqDptfpA4cD3.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- brand tokens (mirrors styles.css :root) ---- */
:root {
  --bg:         #F9FCF4;
  --bg-alt:     #F7F7F7;
  --accent:     #1C5A81;
  --accent-ink: #F9FCF4;
  --ink:        #242424;
  --ink-soft:   rgba(36, 36, 36, .62);
  --ink-faint:  rgba(36, 36, 36, .38);
  --line:       rgba(36, 36, 36, .13);
  --card:       #FFFFFF;

  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-sans:    'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 3px;
  --measure: 68ch;          /* ~65–75 characters per line for long reading */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
::selection { background: rgba(28, 90, 129, .16); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ===========================================================================
   Header — mirrors the marketing site's minimalist bar (static, no JS)
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249, 252, 244, .86);
  backdrop-filter: saturate(1.3) blur(10px);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; flex: none; }
.brand-mark {
  width: 48px; height: 33px; color: var(--accent); display: block;
  transition: transform .25s ease;
}
.brand:hover .brand-mark { transform: translateY(-1px); }
.header-back {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  transition: color .2s ease;
}
.header-back:hover { color: var(--accent); }
.header-back svg { width: 15px; height: 15px; flex: none; }

/* ===========================================================================
   Page title block
   ========================================================================= */
.legal-hero {
  padding: clamp(56px, 9vw, 104px) 0 clamp(30px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}
.legal-hero h1 {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(42px, 7vw, 76px); line-height: 1.02;
  letter-spacing: -.015em; color: var(--ink);
}
.legal-hero .updated {
  margin-top: 22px; font-size: 14.5px; color: var(--ink-soft);
}
.legal-hero .updated strong { font-weight: 600; color: var(--ink); }

/* ===========================================================================
   Article body
   ========================================================================= */
.legal-body { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 110px); }
.legal-body .measure { max-width: var(--measure); }

.legal-body p { margin: 0 0 18px; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body strong { font-weight: 600; color: var(--ink); }
.legal-body em { font-style: italic; }

.legal-body a.inline-link {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 2px; text-decoration-thickness: 1px;
}
.legal-body a.inline-link:hover { text-decoration-thickness: 2px; }

/* the intro paragraphs above the summary */
.lede { color: var(--ink); }
.lede .note-flag { font-weight: 600; }

/* section headings from the markdown H2s */
.legal-body h2 {
  font-family: var(--font-sans); font-weight: 600;
  font-size: clamp(19px, 2.4vw, 23px); line-height: 1.3;
  letter-spacing: .005em; color: var(--ink);
  margin: 54px 0 18px; padding-top: 14px;
  scroll-margin-top: 84px;   /* so the sticky header never covers an anchor */
}
.legal-body h2 .sec-num {
  color: var(--accent); font-weight: 700;
  margin-right: 10px; font-variant-numeric: tabular-nums;
}
/* the two non-numbered structural headings get a hairline lead-in */
.legal-body h2.plain {
  border-top: 1px solid var(--line); margin-top: 60px;
}

.legal-body h3 {
  font-family: var(--font-sans); font-weight: 600;
  font-size: 16px; letter-spacing: .01em; color: var(--ink);
  margin: 30px 0 12px;
}

/* "In Short:" scannable callout */
.in-short {
  font-style: italic; color: var(--ink-soft);
  border-left: 1px solid var(--accent);
  background: rgba(28, 90, 129, .04);
  padding: 12px 18px; margin: 0 0 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.6;
}
.in-short strong { font-style: normal; color: var(--ink); }

/* lists */
.legal-body ul { list-style: none; margin: 0 0 20px; padding: 0; }
.legal-body ul li {
  position: relative; padding-left: 22px; margin-bottom: 12px;
}
.legal-body ul li::before {
  content: ""; position: absolute; left: 4px; top: .72em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

/* ---- Table of contents ---- */
.toc {
  max-width: var(--measure);
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 30px; margin: 4px 0 8px;
}
.toc ol {
  list-style: none; counter-reset: toc; margin: 0; padding: 0;
  columns: 2; column-gap: 40px;
}
.toc li {
  counter-increment: toc; margin-bottom: 11px;
  break-inside: avoid; line-height: 1.45;
}
.toc a {
  display: block; padding-left: 30px; position: relative;
  font-size: 15px; color: var(--ink-soft);
  transition: color .2s ease;
}
.toc a::before {
  content: counter(toc); position: absolute; left: 0; top: 0;
  font-variant-numeric: tabular-nums; font-weight: 600;
  color: var(--accent); min-width: 22px;
}
.toc a:hover { color: var(--accent); }

/* ---- tables (Section 4 & Section 12) ---- */
.table-scroll {
  max-width: var(--measure); overflow-x: auto;
  margin: 4px 0 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
.legal-body table {
  width: 100%; border-collapse: collapse; font-size: 14.5px;
  min-width: 520px;
}
.legal-body thead th {
  text-align: left; background: var(--bg-alt);
  font-weight: 600; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft);
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.legal-body tbody td {
  padding: 13px 16px; vertical-align: top; line-height: 1.55;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.legal-body tbody tr:last-child td { border-bottom: none; }
.legal-body tbody td strong { font-weight: 600; }
.legal-body td.yes { color: var(--accent); font-weight: 600; }
.legal-body td.no { color: var(--ink-faint); font-weight: 600; }

/* back-to-top / home link at the end */
.legal-foot-link {
  max-width: var(--measure); margin-top: 48px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.legal-foot-link a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--accent);
}
.legal-foot-link a svg { width: 15px; height: 15px; }

/* ===========================================================================
   Footer — mirrors the marketing site footer (trimmed for a legal page)
   ========================================================================= */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding: 56px 0 30px; overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; margin-bottom: 20px; }
.footer-brand { max-width: 320px; }
.footer-mark { width: 52px; height: 36px; color: var(--accent); display: block; }
.footer-brand p { color: var(--ink-soft); font-size: 14px; margin-top: 12px; line-height: 1.6; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
/* the shared four-link footer row (FAQ · Changelog · Privacy · Contact) */
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.footer-links a { font-size: 14px; color: var(--ink-soft); transition: color .2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-col h4 {
  font-size: 10.5px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px;
}
.footer-col a, .footer-col span {
  display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 9px;
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-giant {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(60px, 24.5vw, 540px);
  line-height: .95; letter-spacing: -.02em;
  text-align: center; white-space: nowrap; color: var(--ink);
  margin: clamp(20px, 4vw, 48px) 0 clamp(18px, 3vw, 40px);
  user-select: none;
}
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
}
.footer-bottom .copy, .footer-bottom .legal-note {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); line-height: 1.6;
}

/* ===========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
  body { font-size: 16.5px; }
  .toc ol { columns: 1; }
  .footer-top { flex-direction: column; }
  .footer-cols { gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
