/* Shared styling for the legal & support pages (privacy, terms, refunds,
   contact, security, eula, changelog, 404) — the two-colour system at night
   (BRAND.md §2): ink page, paper words, no third colour, no shadows. Tuned
   for long-form reading. Moved off Midnight-and-gold on 24 Sep 2026. */
@font-face{font-family:"Archivo";src:url("/fonts/Archivo-400.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"ArchivoN";src:url("/fonts/ArchivoN-500.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

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

:root {
  --midnight: #131A24;   /* the page */
  --deep: #19212C;       /* a card, darker-than-paper at night reads lighter */
  --panel: #202935;
  --ink: #EFEEEA;        /* headings and emphasis */
  --body: #A8AEB6;       /* body copy */
  --faint: #767C85;      /* captions */
  --accent: #EFEEEA;
  --accent-soft: rgba(239, 238, 234, 0.06);
  --accent-line: rgba(239, 238, 234, 0.30);
  --line: rgba(239, 238, 234, 0.14);
  --logo-mark: #EFEEEA;
  --ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --disp: "ArchivoN", "Arial Narrow", sans-serif;
  color-scheme: dark;
}

/* Selected text swaps the two colours, so it reads on every surface. */
::selection { background: var(--ink); color: var(--midnight); }

body {
  background: var(--midnight);
  color: var(--ink);
  font-family: var(--ui);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line);
}
.lockup { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.lockup svg { display: block; }
.ring { width: 14px; height: 14px; border: 4px solid var(--accent); border-radius: 50%; }
.wordmark { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.nav-link { color: var(--body); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-link:hover { color: var(--accent); }

main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
h1 {
  font-family: var(--disp);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: 10px;
  color: var(--ink);
}
.updated { color: var(--faint); font-size: 13px; margin-top: 10px; }

.lede {
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 26px 0 8px;
}
.lede p { font-size: 15.5px; line-height: 1.7; color: var(--ink); }

h2 {
  font-family: var(--disp);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 34px 0 10px;
  color: var(--ink);
}
h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 22px 0 8px;
  color: var(--ink);
}
p, li { font-size: 15px; line-height: 1.75; color: var(--body); }
p + p { margin-top: 12px; }
p b, li b { color: var(--ink); font-weight: 600; }

ul, ol { margin: 12px 0 0 20px; display: flex; flex-direction: column; gap: 8px; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; font-weight: 500; }
a:hover { text-decoration-color: var(--ink); }

.mono {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 13.5px;
  background: var(--panel);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--ink);
  word-break: break-all;
}
p.scope {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 14px 0;
  display: block;
}

/* Tables — the tier table on terms.html and similar. Wide content scrolls
   inside its own container; the page never scrolls sideways. */
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; }
th, td {
  text-align: left;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  border-bottom: 1px solid var(--line);
}
th { color: var(--ink); font-weight: 600; background: var(--deep); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td b { color: var(--ink); font-weight: 600; }

/* Changelog entries */
.release { margin: 26px 0 0; padding: 18px 20px; background: var(--deep); border: 1px solid var(--line); border-radius: 12px; }
.release h2 { margin: 0 0 4px; }
.release .tag { font-size: 12px; color: var(--faint); }

/* 404 */
.center { text-align: center; padding: 80px 0 40px; }
.center h1 { font-size: clamp(40px, 8vw, 64px); }
.center p { margin-top: 14px; }

footer {
  text-align: center;
  padding: 26px;
  font-size: 13px;
  color: var(--body);
  border-top: 1px solid var(--line);
}
footer a { color: var(--ink); font-weight: 600; text-decoration: none; }
footer a:hover { color: var(--accent); }
