/* Shared stylesheet for the static legal/trust pages (/privacy, /terms, /about,
   /contact). These pages are plain pre-rendered HTML — no JavaScript — so they
   stay fast, indexable, and readable even if the app bundle fails. The palette
   mirrors src/index.css (BodEvo navy #0A0F1C + electric blue #217BFF); light
   mode follows the OS via prefers-color-scheme since there is no JS here to
   read the in-app theme choice. */

:root {
  --bg: #0a0f1c;
  --surface: #131c2e;
  --surface-2: #0e1524;
  --text: #ffffff;
  --text-muted: #9aa7bd;
  --border: rgba(42, 58, 90, 0.7);
  --accent: #217bff;
  --accent-soft: rgba(33, 123, 255, 0.14);
  --mark-bg: rgba(250, 204, 21, 0.16);
  --mark-border: rgba(250, 204, 21, 0.55);
  --mark-text: #fde68a;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f7fc;
    --surface: #ffffff;
    --surface-2: #eef3fa;
    --text: #0b1220;
    --text-muted: #475569;
    --border: #d4deec;
    --accent: #1d6ae5;
    --accent-soft: rgba(29, 106, 229, 0.1);
    --mark-bg: #fef9c3;
    --mark-border: #eab308;
    --mark-text: #713f12;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.65;
  font-size: 16px;
}

.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.wordmark {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.wordmark span { color: var(--accent); }

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 13px;
}

.legal-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
}

.legal-nav a:hover,
.legal-nav a[aria-current='page'] {
  color: var(--accent);
}

.legal-nav a[aria-current='page'] { font-weight: 600; }

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

/* Content */
h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.meta-line {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 24px;
}

h2 {
  font-size: 20px;
  margin: 36px 0 10px;
  letter-spacing: -0.01em;
  scroll-margin-top: 16px;
}

h3 {
  font-size: 16px;
  margin: 22px 0 6px;
  scroll-margin-top: 16px;
}

p, li { color: var(--text-muted); font-size: 15px; }

strong { color: var(--text); font-weight: 600; }

a { color: var(--accent); }

ul, ol { padding-left: 22px; margin: 8px 0 16px; }

li { margin: 5px 0; }

li::marker { color: var(--accent); }

/* Callout boxes */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 18px 0;
}

.callout p { margin: 6px 0; font-size: 14px; }

.callout--warn { border-left-color: #f59e0b; }

/* Operator placeholders the owner must fill in before this text is final.
   Deliberately loud so they cannot ship unnoticed. */
mark.fill-in {
  background: var(--mark-bg);
  border: 1px dashed var(--mark-border);
  color: var(--mark-text);
  border-radius: 6px;
  padding: 1px 7px;
  font-weight: 600;
  font-size: 0.92em;
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13.5px;
  min-width: 560px;
}

th, td {
  text-align: left;
  padding: 9px 12px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}

th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

/* Table of contents */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 20px 0 28px;
}

.toc p { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: 0.06em; }

.toc ol { margin: 0; padding-left: 20px; }

.toc li { margin: 3px 0; font-size: 14px; }

.toc a { text-decoration: none; }

.toc a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 10px;
}

.site-footer a { color: var(--text-muted); text-decoration: none; }

.site-footer a:hover { color: var(--accent); }

@media (max-width: 480px) {
  h1 { font-size: 24px; }
  h2 { font-size: 18px; }
  .page { padding: 18px 16px 48px; }
}
