/* Shared styles for FaithBot's standalone legal pages (privacy, terms).
   Reuses the app's brand tokens; a readable single-column document layout. */
:root {
  --bg:#f6f7f9; --panel:#fff; --ink:#1c2430; --muted:#5c6773; --line:#e3e7ec;
  --accent:#2f6f4f; --accent-deep:#245c40; --navy:#0a2a4e;
  /* "Noto Sans" is the Latin gap face — see the same stack in site.css (#89). */
  --sans:"Source Sans 3","Noto Sans",system-ui,-apple-system,sans-serif;
}
* { box-sizing:border-box; }
body { margin:0; font-family:var(--sans); color:var(--ink); background:var(--bg); line-height:1.6; }
a { color:var(--accent-deep); }
.legal-top { background:var(--navy); color:#fff; }
.legal-top-inner { max-width:760px; margin:0 auto; padding:1rem 1.4rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.legal-brand { display:flex; align-items:center; gap:.5rem; font-weight:700; font-size:1.1rem; color:#fff; text-decoration:none; }
.legal-brand img { width:28px; height:28px; }
.legal-back { color:#fff; font-weight:600; font-size:.9rem; text-decoration:underline; white-space:nowrap; }
.legal-wrap { max-width:760px; margin:0 auto; padding:2.4rem 1.4rem 3rem; }
.legal-wrap h1 { font-size:1.9rem; color:var(--accent-deep); margin:0 0 .3rem; }
.legal-updated { color:var(--muted); font-size:.9rem; margin:0 0 2rem; }
.legal-wrap h2 { font-size:1.2rem; color:var(--ink); margin:2rem 0 .6rem; border-bottom:1px solid var(--line); padding-bottom:.35rem; }
.legal-wrap p, .legal-wrap li { font-size:1rem; color:var(--ink); }
.legal-wrap ul { padding-left:1.3rem; }
.legal-wrap li { margin:.35rem 0; }
.legal-lead { font-size:1.08rem; color:var(--ink); }
.legal-note { background:#f2f7f3; border:1px solid var(--line); border-left:3px solid var(--accent); border-radius:10px; padding:.9rem 1.1rem; font-size:.95rem; color:var(--muted); }
.legal-foot { max-width:760px; margin:0 auto; padding:1.4rem; text-align:center; color:var(--muted); font-size:.85rem; }
.legal-foot a { color:var(--accent-deep); font-weight:600; }
@media (max-width:520px) { .legal-wrap { padding:1.8rem 1.1rem 2.4rem; } .legal-wrap h1 { font-size:1.6rem; } }

/* ── Privacy-request form ──────────────────────────────────────────────────────
   Same tokens as the document above it: a form on a legal page should read as part of the page, not as
   a widget dropped onto it. Field sizing follows the 16px minimum — anything smaller makes iOS Safari
   zoom the whole page on focus, which on a privacy form reads as the page breaking. */
.legal-form { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:1.2rem 1.2rem .9rem; margin:1rem 0 1.2rem; }
.lf-row { display:flex; flex-direction:column; gap:.3rem; margin-bottom:.9rem; }
.lf-row label { font-weight:600; font-size:.95rem; color:var(--ink); }
.lf-req, .lf-opt { font-weight:400; font-size:.82rem; color:var(--muted); }
.legal-form input, .legal-form select, .legal-form textarea {
  font-family:var(--sans); font-size:1rem; color:var(--ink); background:#fff;
  border:1px solid var(--line); border-radius:8px; padding:.55rem .65rem; width:100%;
}
.legal-form textarea { resize:vertical; min-height:6.5rem; line-height:1.5; }
.legal-form input:focus-visible, .legal-form select:focus-visible, .legal-form textarea:focus-visible,
.lf-send:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.lf-challenge { margin:.2rem 0 .8rem; min-height:0; }
.lf-actions { display:flex; align-items:center; gap:.8rem; flex-wrap:wrap; }
.lf-send {
  font-family:var(--sans); font-size:1rem; font-weight:600; color:#fff; background:var(--accent-deep);
  border:0; border-radius:8px; padding:.6rem 1.4rem; cursor:pointer;
}
.lf-send:hover:not(:disabled) { background:var(--accent); }
.lf-send:disabled { opacity:.6; cursor:default; }
.lf-status { font-size:.92rem; color:var(--muted); }
/* Not colour alone: the words already say what happened, and this only reinforces them (WCAG 1.4.1). */
.lf-error { color:#8a2b2b; font-weight:600; }
.lf-done { margin:0; font-size:1rem; color:var(--accent-deep); font-weight:600; }
/* Raised from a footnote to a live instruction when the form cannot send. */
.lf-fallback-live { border-left-color:#8a2b2b; background:#fbf3f3; color:var(--ink); font-weight:500; }
@media (max-width:520px) { .legal-form { padding:1rem .9rem .8rem; } }
