/* 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.
 */

/* The app's own palette, not the factory's defaults.
 *
 * These pages are the app's public face -- App Review opens them, the store
 * listing links to them -- and they were the scaffold's dark violet while the
 * app itself is warm paper and ink. Someone arriving from the app landed
 * somewhere that did not look like the same product.
 *
 * Written light-first rather than derived from one --theme: a warm paper ground
 * has no single hue to mix everything out of, and the ink, the brass and the
 * page's rules are three different decisions. */
:root {
  --ink: #1C1917;
  --paper: #F5F1EA;
  --accent: #9A6B3F;

  --bg: var(--paper);
  --surface: #FBF8F3;
  --line: #E2DBD0;
  --text: var(--ink);
  --dim: #7A736C;
}

*, *::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); }
a:hover { color: var(--ink); }

/* The logo, at the top of every one of these pages. A reviewer opening the
 * privacy policy cold should see the same mark as the home screen. */
.brand {
  display: flex; align-items: center; gap: 12px;
  max-width: 68ch; margin: 0 auto 28px;
  text-decoration: none; color: var(--ink);
}
.brand img {
  width: 44px; height: 44px; display: block;
  border-radius: 10px; border: 1px solid var(--line);
}
.brand b { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.brand span { color: var(--dim); font-size: .9rem; font-weight: 400; }
@media (max-width: 460px) { .brand span { display: none; } }

/* 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; }
