/* Munch Patch: the two text pages (/privacy and /health-data-privacy). The same two themes as the app: light by
   default, Dusk when the phone is set to dark or when Theme is set to Dusk in the app (theme.js then puts
   data-theme on <html>; without that script the pages simply follow the phone).
   These colours are copies of the tokens in app.css: change them there first, then here, in BOTH Dusk lists. */
:root {
  --bg: #FBF6EC;
  --panel: #F3EBDA;
  --line: #E3D7BF;
  --text: #2E3A2C;
  --muted: #566251;
  --accent: #4E7D49;
  --accent-ink: #FFFFFF;
  --accent-text: #3B6337;
  --focus: #2E3A2C;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #243B53;
    --panel: #2D4763;
    --line: #4A6A8E;
    --text: #FFF6E3;
    --muted: #D0DBE7;
    --accent: #8FE08A;
    --accent-ink: #14301B;
    --accent-text: #A9EDA0;
    --focus: #FFD166;
    color-scheme: dark;
  }
}
:root[data-theme="dusk"] {
  --bg: #243B53;
  --panel: #2D4763;
  --line: #4A6A8E;
  --text: #FFF6E3;
  --muted: #D0DBE7;
  --accent: #8FE08A;
  --accent-ink: #14301B;
  --accent-text: #A9EDA0;
  --focus: #FFD166;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
a { color: var(--accent-text); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* One readable column: the header, the text and the footer line up. */
.top, main, .foot { max-width: 720px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 6px; }
.brand {
  display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text); text-decoration: none;
  font-family: var(--serif); font-weight: 600; font-size: 20px;
}
.top-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap;
}

h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 6vw, 34px); line-height: 1.15; margin: 10px 0 14px; overflow-wrap: anywhere; }
h2 { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.lead { font-size: 17px; margin: 0 0 14px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.card p, .card ul { margin: 0 0 10px; }
.card ul { padding-left: 20px; }
.card li { margin-bottom: 6px; overflow-wrap: anywhere; }
.card > :last-child, .card li:last-child { margin-bottom: 0; }

.foot { color: var(--muted); font-size: 13px; padding-top: 6px; padding-bottom: 30px; }
.foot p { margin: 0 0 6px; }
