/* NoFomo legal pages (privacy, terms). Same tokens as style.css, kept separate so these pages stay light. */
:root {
  --page: #fafaf9; --bg: #ffffff; --bg-elev: #f5f5f4;
  --text: #111111; --text-2: #3a3a3a; --muted: #6e6e73; --faint: #a1a1a6;
  --border: #ececea; --border-strong: #dededb;
  --accent: #ffc800; --accent-strong: #f2b600; --accent-soft: #fff7d6; --accent-text: #8a5c00;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --page: #0a0a0a; --bg: #111111; --bg-elev: #1c1c1e;
  --text: #f5f5f5; --text-2: #d4d4d4; --muted: #a1a1a6; --faint: #6e6e73;
  --border: #242426; --border-strong: #303033;
  --accent-soft: #2a2205; --accent-text: #ffd23f;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font: 400 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--page) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.top-in { max-width: 1080px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.logo { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #111; display: grid; place-items: center; font-size: 13px; font-weight: 800; letter-spacing: -.02em; }
.top nav { display: flex; gap: 6px; font-size: 14.5px; font-weight: 500; }
.top nav a { color: var(--muted); text-decoration: none; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.top nav a:hover { background: var(--bg-elev); color: var(--text); }
.top nav a[aria-current="page"] { color: var(--text); background: var(--bg); box-shadow: 0 0 0 1px var(--border); font-weight: 600; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 48px 20px 96px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: 14px; }
.toc h2 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 600; margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; line-height: 1.4; }
.toc a:hover { color: var(--text); border-left-color: var(--accent-strong); }

article { max-width: 720px; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 12px 0 14px; }
.meta { color: var(--muted); font-size: 14.5px; margin: 0 0 32px; }
.summary { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; margin: 0 0 40px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.summary h2 { margin: 0 0 10px; font-size: 15px; letter-spacing: -.01em; padding: 0; border: 0; }
.summary ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.summary li { margin: 6px 0; }
.summary li::marker { color: var(--accent-strong); }

section { padding-top: 8px; }
h2 { font-size: 22px; letter-spacing: -.02em; font-weight: 700; margin: 36px 0 10px; padding-top: 28px; border-top: 1px solid var(--border); display: flex; gap: 12px; align-items: baseline; }
h2 .n { color: var(--faint); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 15px; min-width: 22px; }
h3 { font-size: 16.5px; font-weight: 650; margin: 22px 0 6px; letter-spacing: -.01em; }
p, li { color: var(--text-2); }
ul, ol { padding-left: 22px; }
li { margin: 5px 0; }
strong { color: var(--text); font-weight: 600; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 14px 0; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--bg-elev); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--bg-elev); padding: 1px 6px; border-radius: 6px; }
.callout { border-left: 3px solid var(--accent-strong); background: var(--accent-soft); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 18px 0; }
.callout p { margin: 0; color: var(--text); }
.contact { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px; }
.contact dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.contact dt { color: var(--muted); font-size: 14px; }
.contact dd { margin: 0; font-weight: 500; }

footer.foot { border-top: 1px solid var(--border); }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 24px 20px 40px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14px; }
.foot-in a { color: var(--muted); text-decoration: none; }
.foot-in a:hover { color: var(--text); }

@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; gap: 0; padding-top: 32px; }
  .toc { display: none; }
  .table td:first-child { white-space: normal; }
}
@media (max-width: 520px) {
  .top nav a { padding: 6px 11px; }
  .top nav a:last-child { display: none; } /* the logo already links home */
  .table, .table tbody, .table tr, .table td { display: block; }
  .table thead { display: none; }
  .table tr { border-bottom: 1px solid var(--border); padding: 8px 0; }
  .table td { border: 0; padding: 4px 14px; }
}
