/* The standalone pages: privacy, terms, support, about. Factory-owned.
 *
 * Its own stylesheet, deliberately. These four are served as themselves rather
 * than through the app shell — App Review opens them directly, a store listing
 * links straight to them, and they have to render with the app's JavaScript
 * bundle never loading at all. So they cannot use the app's CSS, which on this
 * chassis is a content-hashed asset that only exists after a build.
 *
 * They were linking `/styles.css`, which the 0.1 chassis served from the repo
 * root and the 0.2 chassis does not have. Every one of them rendered as
 * unstyled black-on-white — which is what a reviewer saw when they opened the
 * privacy policy.
 *
 * Tokens are duplicated rather than imported for the same reason: one file, no
 * dependencies, works from a bare URL.
 */

:root {
  /* These are rendered from brand.themeColor/brand.accent at scaffold time and
   * are NOT re-rendered by `appfactory sync`, so for a long time this file
   * still carried the factory's default slate-and-purple while the app itself
   * had moved to warm-dark-and-green — every policy page and the landing page
   * rendered in a brand that appears nowhere else in the product. Written out
   * literally now, matching src/styles/app.css, which is the palette of record.
   *
   * Light by default and dark under prefers-color-scheme, exactly as the app
   * is, so a link followed from a phone in dark mode does not flash white. */
  --accent: #147D50;
  --bg: #F7F4EF;
  --surface: #FFFFFF;
  --line: #DDD5C9;
  --text: #23201C;
  --dim: #5C5449;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #3DD68C;
    --bg: #171614;
    --surface: #232120;
    --line: #443E39;
    --text: #F7F5F3;
    --dim: #C4BDB6;
  }
}

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

body {
  margin: 0;
  padding: 32px 20px 64px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 68ch;
  margin: 0 auto;
}

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin: 32px 0 8px; }
h3 { font-size: 1rem; margin: 24px 0 6px; }
p, li { color: var(--text); }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }

a { color: var(--accent); }

/* The date a policy was last changed is the first thing a reviewer looks for
 * and the first thing an app forgets to show. */
.updated { color: var(--dim); font-size: .9rem; margin-bottom: 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}

/* The one thing on these pages that must never be missed — a crisis line, a
 * "this is not medical advice", a refund deadline. */
.callout {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 14px 16px;
  border-radius: 0 10px 10px 0;
  margin: 0 0 16px;
}

.back { display: inline-block; margin-top: 32px; }
footer { margin-top: 48px; color: var(--dim); font-size: .9rem; }
