/* Shared styles for the legal pages (privacy.html, terms.html).
   Matches the main site's light theme: Geist + Instrument Serif accents. */
:root {
  --bg: #F6F8FB; --surface: #FFFFFF; --heading: #0A1A2F; --text: #3A4B61; --text-muted: #5B6B80;
  --border: rgba(10,26,47,.09); --accent: #1672B3; --accent-soft: rgba(36,145,207,.10);
  --navy: #07101D; --brand-blue: #2491CF;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16.5px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--heading); }
:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(246,248,251,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.top img { display: block; width: 168px; height: 46px; object-fit: cover; }   /* logo file has empty space above and below */
.back { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #1A7BBE; color: #fff; text-decoration: none; font-size: 14.5px; font-weight: 500; transition: background-color .2s; }
.back:hover { background: #14659C; color: #fff; }
.back svg { width: 14px; height: 14px; }

/* Title */
.hero { padding: 72px 0 40px; border-bottom: 1px solid var(--border); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
h1 { margin: 18px 0 0; color: var(--heading); font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.2rem); }
h1 em { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.02em; color: var(--accent); }
.meta { margin-top: 18px; font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.lead { margin: 22px 0 0; max-width: 720px; font-size: 18.5px; color: var(--text); }

/* Body: contents on the left, text on the right */
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 64px; padding: 48px 0 96px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc b { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 10px; padding: 5px 0; color: var(--text); text-decoration: none; line-height: 1.4; }
.toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); padding-top: 2px; }
.toc a:hover { color: var(--accent); }
.content { max-width: 740px; min-width: 0; }
.content section { padding-top: 8px; margin-bottom: 40px; }
h2 { margin: 0 0 12px; color: var(--heading); font-size: 23px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
h2 span { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-right: 12px; letter-spacing: 0; vertical-align: 3px; }
h3 { margin: 22px 0 6px; color: var(--heading); font-size: 17px; font-weight: 500; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 20px; }
li { margin-bottom: 6px; }
li::marker { color: var(--accent); }
strong { color: var(--heading); font-weight: 500; }
.note { margin: 18px 0; padding: 18px 22px; border-radius: 16px; background: var(--accent-soft); border: 1px solid rgba(36,145,207,.18); color: var(--heading); font-size: 15.5px; }
.card { padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 30px 60px -36px rgba(10,26,47,.28); }
.card p { margin: 0; }

/* Footer */
.foot { background: var(--navy); color: #8EA0B8; font-size: 14px; padding: 32px 0; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: #B9C6D6; text-decoration: none; }
.foot a:hover, .foot a[aria-current] { color: #fff; }

@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .toc { position: static; padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
  .hero { padding: 48px 0 32px; }
}
@media (max-width: 480px) {
  :root { --gutter: 18px; }
  .top img { width: 140px; height: 38px; }
  .back span { display: none; }
  .back { padding: 10px 12px; }
}
@media print {
  .top, .toc, .foot { display: none; }
  .doc { display: block; padding: 0; }
  body { background: #fff; }
}
