/*
 * PSA public pages (privacy policy + terms of service) — Firebase Hosting.
 *
 * Deliberately flat and calm, matching the app's design system: navy headings,
 * ink body text on white, accentBlue underlined links, generous whitespace, an
 * 8pt spacing rhythm, no gradients, no drop shadows, no decorative filler. Red
 * is reserved for the crisis line only, exactly as in the app. A humanist
 * system font stack keeps the page fast and dependency-free (the app itself
 * bundles Public Sans; these static pages don't need a web font fetch).
 */

:root {
  --navy: #1b3a6b;
  --brand-blue: #2a5db0;
  --accent-blue: #4a90d9;
  --crisis-red: #b3261e;
  --ink: #14213d;
  --ink-muted: #5a6473;
  --surface: #ffffff;
  --surface-alt: #f5f7fa;
  --divider: #e2e6ec;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

header.site {
  border-bottom: 1px solid var(--divider);
  margin-bottom: 32px;
  padding-bottom: 16px;
}

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

h1 {
  color: var(--navy);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  margin: 24px 0 8px;
}

h2 {
  color: var(--navy);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  margin: 32px 0 8px;
}

p,
li {
  color: var(--ink);
  margin: 12px 0;
}

.muted {
  color: var(--ink-muted);
}

.effective {
  color: var(--ink-muted);
  font-size: 15px;
  margin-top: 0;
}

a {
  color: var(--accent-blue);
  text-decoration: underline;
}

a:hover {
  color: var(--brand-blue);
}

ul {
  padding-left: 22px;
}

li {
  margin: 8px 0;
}

/* The crisis notice — the one place red appears, mirroring the app. */
.crisis {
  border: 1px solid var(--crisis-red);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 24px 0;
}

.crisis strong {
  color: var(--crisis-red);
}

/* Draft banner for content still under PSA/legal review. */
.draft {
  background: var(--surface-alt);
  border: 1px solid var(--divider);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 24px;
  color: var(--ink-muted);
  font-size: 15px;
}

.nav-links {
  margin-top: 16px;
}

.nav-links a {
  display: inline-block;
  margin-right: 20px;
}

footer.site {
  border-top: 1px solid var(--divider);
  margin-top: 48px;
  padding-top: 16px;
  color: var(--ink-muted);
  font-size: 15px;
}
