/*
 * Shared styling for the public site pages served at the SWA root:
 * index.html (landing), privacy.html, terms.html.
 *
 * Lives in publicDir so Vite copies it verbatim to /site.css rather than
 * hashing it into an entry bundle — these pages are linked from each other and
 * from external references (a Safe Browsing review, a customer's legal team),
 * so a stable URL matters more than cache-busting.
 *
 * demo.html deliberately keeps its own style block: it is an app demo, not a
 * site page, and carries code/pre styling none of these need.
 */
:root {
  color-scheme: light dark;
  --fg: #1a202c;
  --muted: #5a6473;
  --bg: #f7f8fa;
  --card: #ffffff;
  --border: #e2e6ec;
  --accent: #1f7a5a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e8ecf1;
    --muted: #9aa6b6;
    --bg: #12161c;
    --card: #1a1f27;
    --border: #2b323c;
    --accent: #4bbf92;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
main { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
h1 { font-size: 2.1rem; margin: 0 0 10px; letter-spacing: -0.01em; }
.lede { color: var(--muted); font-size: 1.12rem; margin: 0 0 36px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 0 0 20px;
}
h2 { font-size: 1.1rem; margin: 0 0 12px; }
h3 { font-size: 1rem; margin: 20px 0 8px; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
ul { margin: 0 0 12px; padding-left: 20px; }
li { margin-bottom: 6px; }
a { color: var(--accent); }
dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
dt { color: var(--muted); }
dd { margin: 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
th, td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.crumb { margin: 0 0 20px; font-size: 0.9rem; }
.updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 32px; }
footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
footer a { margin-right: 16px; }
@media (max-width: 560px) {
  dl { grid-template-columns: 1fr; gap: 2px 0; }
  dt { margin-top: 10px; }
}
