/*
 * The public pages: /privacy and /support.
 *
 * Plain HTML with no login, no script and no request to anyone else, so they
 * still open when the app or the database is down, and a privacy policy does
 * not itself send a visitor's address anywhere.
 *
 * app.css is not loaded, as it styles the whole app. The values below are its
 * dark theme's tokens under the same names; change them there first. These pages
 * are always dark: they have no signed-in user whose theme setting they could read.
 */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}

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

:root {
  --bg:          #1F2937;
  --bg-surface:  #273344;
  --border:      #3D4C63;
  --text:        #CBD5E1;
  --text-muted:  #94A3B8;
  --text-strong: #F1F5F9;
  --accent:      #EC4899;
  --accent-hover:#F472B6;
  --font-sans:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-brand:  'Space Grotesk', var(--font-sans);
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ─── Header ───────────────────────────────────────── */
.page-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.page-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  color: var(--text-strong);
  text-decoration: none;
}
.brand:hover { color: var(--accent); }
.brand img { width: 30px; height: 30px; display: block; }

.page-nav { display: flex; gap: 16px; font-size: .9rem; }
.page-nav a { color: var(--text-muted); text-decoration: none; }
.page-nav a:hover { color: var(--accent); }
.page-nav a[aria-current="page"] { color: var(--text-strong); font-weight: 600; }

/* ─── Text ─────────────────────────────────────────── */
main.wrap { padding-top: 32px; padding-bottom: 48px; }

h1, h2, h3 { color: var(--text-strong); line-height: 1.25; }
h1 { font-size: 2rem; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; margin: 40px 0 8px; }
h3 { font-size: 1rem; margin: 24px 0 4px; }
p, ul, address { margin: 0 0 12px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
address { font-style: normal; }
strong { color: var(--text-strong); }

.updated { color: var(--text-muted); font-size: .9rem; margin-bottom: 24px; }
.lead { font-size: 1.05rem; }

.callout {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 20px 0;
}
.callout > :last-child { margin-bottom: 0; }

/* ─── Footer ───────────────────────────────────────── */
.page-footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .85rem;
}
.page-footer .wrap { padding-top: 16px; padding-bottom: 24px; }
.page-footer a { color: var(--text-muted); }
.page-footer a:hover { color: var(--accent); }
