/* Beyond the Message — shared styles for the standalone legal/support pages
   (privacy.html, support.html, terms.html, delete-account.html).

   These pages sit outside the React app on purpose: src/App.jsx treats the
   first URL segment as a church slug, so /privacy inside the SPA would be
   looked up as a church named "privacy" and 404. Tokens below are copied
   from public/info.html so the pages read as the same site. */

:root {
  --dark: #0d1a2e;
  --navy: #14253f;
  --navy-soft: #1b3152;
  --gold: #c79a3f;
  --gold-bright: #d8ad56;
  --sage: #75907f;
  --sage-soft: #dce4df;
  --parchment: #f7f2e8;
  --parchment-deep: #eee8dc;
  --white: #ffffff;
  --warm-white: #f5f1e8;
  --ink: #24384a;
  --muted: #6e8090;
  --muted-dark: #91a1ae;
  --border: rgba(20, 37, 63, 0.12);
  --shadow: 0 18px 50px rgba(13, 26, 46, 0.12);

  --f-serif: Georgia, 'Times New Roman', Times, serif;
  --f-sans: 'Helvetica Neue', Arial, Helvetica, sans-serif;

  --max-w: 1120px;
  --doc-w: 760px;
  --gutter: clamp(20px, 4vw, 36px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Nav (matches info.html) ─────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 37, 63, 0.97);
  border-bottom: 1px solid rgba(199, 154, 63, 0.18);
  backdrop-filter: blur(12px);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.nav__logo img { width: auto; height: 31px; }
.nav__links {
  display: flex; align-items: center; gap: 22px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.nav__links a { color: var(--warm-white); text-decoration: none; transition: color 0.18s ease; }
.nav__links a:hover { color: var(--gold-bright); }
.nav__links a[aria-current="page"] { color: var(--gold) !important; }

/* ── Document header ─────────────────────────────────────── */
.doc-head { padding: clamp(48px, 7vw, 76px) 0 clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--border); }
.doc-head .container { max-width: calc(var(--doc-w) + var(--gutter) * 2); }
.eyebrow {
  font-size: 10px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
}
.doc-title {
  font-family: var(--f-serif);
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 400; line-height: 1.13; letter-spacing: -0.018em;
  color: var(--navy); text-wrap: balance; margin-top: 12px;
}
.doc-meta { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.doc-lede { margin-top: 20px; font-size: 17.5px; line-height: 1.62; color: var(--ink); max-width: 62ch; }

/* ── Document body ───────────────────────────────────────── */
.doc { padding: clamp(36px, 5vw, 56px) 0 clamp(64px, 8vw, 96px); }
.doc .container { max-width: calc(var(--doc-w) + var(--gutter) * 2); }

.doc h2 {
  font-family: var(--f-serif);
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 400; line-height: 1.25; color: var(--navy);
  margin-top: 44px; padding-top: 4px;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 {
  font-family: var(--f-sans);
  font-size: 15px; font-weight: 700; color: var(--navy);
  margin-top: 26px; letter-spacing: -0.005em;
}
.doc p { margin-top: 14px; }
.doc ul, .doc ol { margin-top: 14px; padding-left: 22px; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li { margin-top: 7px; padding-left: 4px; }
.doc li::marker { color: var(--gold); }
.doc a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(199, 154, 63, 0.55); text-underline-offset: 3px; }
.doc a:hover { color: var(--gold); }
.doc strong { font-weight: 700; color: var(--navy); }

.doc hr { border: none; border-top: 1px solid var(--border); margin: 44px 0 0; }

/* Callout — for the things a reader must not skim past */
.callout {
  margin-top: 22px; padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: 4px;
}
.callout p:first-child { margin-top: 0; }
.callout--sage { border-left-color: var(--sage); }

/* Definition-style table for "what we collect / why" */
.table-wrap { margin-top: 20px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
th, td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--border); }
th {
  font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); border-bottom-color: rgba(199, 154, 63, 0.4);
}
td:first-child { font-weight: 700; color: var(--navy); width: 34%; }

/* Table of contents */
.toc { margin-top: 26px; padding: 22px 24px; background: var(--parchment-deep); border-radius: 4px; }
.toc h2 {
  font-family: var(--f-sans) !important; font-size: 10px !important; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 0 !important;
}
.toc ol { margin-top: 12px; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 620px) { .toc ol { columns: 1; } }

/* Contact block */
.contact-card {
  margin-top: 24px; padding: 24px 26px;
  background: var(--navy); color: var(--warm-white); border-radius: 4px;
}
.contact-card h3 { color: var(--gold); margin-top: 0; }
.contact-card p { color: rgba(245, 241, 232, 0.82); }
.contact-card a { color: var(--gold-bright); text-decoration-color: rgba(216, 173, 86, 0.5); }
.contact-card a:hover { color: var(--white); }

/* Steps — numbered instructions with a gold rule */
.steps { margin-top: 22px; counter-reset: step; list-style: none !important; padding-left: 0 !important; }
.steps > li {
  counter-increment: step; position: relative;
  padding: 0 0 0 46px !important; margin-top: 22px;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: var(--parchment);
  font-family: var(--f-serif); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.steps > li > strong { display: block; margin-bottom: 2px; }

/* FAQ */
.faq { margin-top: 12px; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq summary {
  font-family: var(--f-serif); font-size: 18px; color: var(--navy);
  cursor: pointer; list-style: none; display: flex; align-items: flex-start; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; color: var(--gold); font-family: var(--f-sans);
  font-weight: 700; font-size: 18px; line-height: 1.4; flex: none;
}
.faq details[open] summary::before { content: "–"; }
.faq details > *:not(summary) { padding-left: 26px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 6px;
  font-size: 14px; font-weight: 700; text-decoration: none !important;
  transition: transform 0.14s ease, opacity 0.14s ease;
}
.button:hover { transform: translateY(-1px); opacity: 0.92; }
.button--gold { background: var(--gold); color: var(--dark) !important; }
.button--navy { background: var(--navy); color: var(--parchment) !important; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ── Footer (matches info.html) ──────────────────────────── */
.footer {
  padding: 34px 0; text-align: center;
  background: var(--dark); border-top: 1px solid rgba(199, 154, 63, 0.1);
}
.footer__nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
  margin-bottom: 16px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.footer__nav a { color: var(--muted-dark); text-decoration: none; transition: color 0.18s ease; }
.footer__nav a:hover { color: var(--gold); }
.footer__link { color: var(--muted-dark); font-size: 13px; text-decoration: none; transition: color 0.18s ease; }
.footer__link:hover { color: var(--gold); }
.footer__tagline {
  margin-top: 7px; font-family: var(--f-serif); font-size: 13px;
  font-style: italic; color: rgba(145, 161, 174, 0.52);
}

@media print {
  .nav, .footer__nav, .button-row { display: none; }
  body { background: #fff; }
  .faq details { border-bottom: 1px solid #ccc; }
  .faq details > *:not(summary) { display: block; }
}
