/* Shared by the four standing pages -- privacy, terms, about, contact.

   These are plain HTML in public/, not views inside the app, on purpose. They
   need real URLs that a crawler can fetch and read without running any
   JavaScript: a privacy policy that only exists once React has booted is a
   privacy policy an AdSense reviewer cannot find. Firebase serves files that
   exist in public/ before it considers the single-page rewrite, which is what
   makes /privacy.html a real page rather than the app's shell. */

:root {
  color-scheme: light dark;
  --bg: #f5f7f9;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e6eaee;
  --primary: #ff6b00;
  --primary-text: #b84d00;
  --primary-soft: rgba(255, 107, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --surface: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --primary-text: #ff9d56;
    --primary-soft: rgba(255, 107, 0, 0.15);
  }
}

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header.site {
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
}

header.site .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.brand {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand span { color: var(--primary-text); }

header.site nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.1rem;
}

header.site nav a:hover { color: var(--text); }

main { padding: 3rem 0 4rem; }

h1 {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.updated {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
}

h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

h2:first-of-type { border-top: none; padding-top: 0; }

h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 1.5rem 0 0.4rem;
}

p, li { color: var(--text-muted); }

p { margin: 0 0 1rem; }

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

ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }

li { margin-bottom: 0.45rem; }

a { color: var(--primary-text); }

.note {
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background-color: var(--primary-soft);
  border: 1px solid rgba(255, 107, 0, 0.22);
  margin: 0 0 1.5rem;
}

.note p:last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--text);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td { color: var(--text-muted); }

footer.site {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  font-size: 0.8rem;
}

footer.site p { margin: 0 0 0.5rem; }

footer.site a { margin-right: 1rem; }

@media (max-width: 560px) {
  header.site .shell { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  header.site nav a { margin-left: 0; margin-right: 1rem; }
  main { padding: 2rem 0 3rem; }
}
