/*
  The shared stylesheet for the two static pages App Store Connect requires a
  URL for — `datenschutz.html` and `support.html`. They are plain documents,
  not part of the Expo app: the SPA cannot host them, because a store listing
  needs a URL that answers with the page itself rather than with a bundle that
  renders it a second later.

  They live in `site/` rather than `public/` since #356 — `public/` is copied
  into the app's own deployment, which stays behind a team login, and Vercel's
  Deployment Protection is per deployment and not per path. `site/` is a second
  Vercel project with protection off; see docs/APP_STORE.md §2.

  `index.html` beside them carries its own <style> rather than linking this,
  because a landing page's whole job is the first paint. So the palette below
  is copied once more there; `npm run brand:check` fails if either drifts, and
  reads each per scheme block rather than as text, so a value left behind in a
  comment does not count — see SITE_TOKENS in scripts/check-brand-assets.js.

  Both themes, unlike public/index.html's startup overlay: that one paints the
  app's *default* theme because the store that could say otherwise is not open
  yet, an argument these pages have no version of. They are documents in a
  browser, so they follow the browser.
*/

:root {
  --paper: #f5f3ed;
  --ink: #2c2417;
  --ink-quiet: #6b5d46;
  --surface: #ffffff;
  --rule: #e5e1d6;
  --accent: #7a5a1c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1d1810;
    --ink: #f2e8d3;
    --ink-quiet: #b9aa88;
    --surface: #272013;
    --rule: #473f30;
    --accent: #d9ad58;
  }
}

/*
  The display face, the same file index.html loads — served from this origin
  for the reason given there. Only the wordmark in the header uses it here.
*/
@font-face {
  font-family: 'Caveat';
  src: url('/fonts/Caveat_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 0 5rem;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0;
}

/*
  The same header the landing page has, so the three pages read as one site
  and a visitor who lands on the privacy policy from the App Store has a way
  back to the front. Sticky and slightly translucent over the page like the
  landing page's; the wordmark in place of the mark, which would be a third
  inlined copy of the logo for a 30px slot.
*/
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.top .wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 3.5rem;
}

.top .brand {
  font-family: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.top nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

.top nav a {
  color: var(--ink-quiet);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.top nav a:hover,
.top nav a[aria-current='page'] {
  color: var(--ink);
}

h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 0 0 0.25rem;
}

h2 {
  font-size: 1.2rem;
  margin: 2.5rem 0 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.35rem;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

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

.lede {
  color: var(--ink-quiet);
  font-size: 1.05rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  padding: 1.25rem 1.25rem 0.25rem;
  margin: 0 0 1.5rem;
}

.card h2 {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-quiet);
  font-size: 0.9rem;
}
