/*
 * The three plain pages beside the game: /privacy, /support and /delete-account (public/*.html; src/md/infrastructure/app-stores.md). They are read by
 * parents and by the app stores' reviewers, and must open without the game: no script, nothing from another origin, and none of the game's own
 * stylesheet, which is why the few colours they share with it (src/client/ui/styles.css :root) are written out again here.
 */
@font-face {
  font-family: 'Lilita One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/LilitaOne-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'National Park';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/NationalPark-wght.woff2') format('woff2');
}

:root {
  --teal: #1a9bb5;
  --teal-ink: #0b5767;
  --gold: #f5b946;
  --cream: #fff8ec;
  --paper: #fffdf8;
  --ink: #2c3638;
  --ink-soft: #56666a;
  --line: #e6dcc8;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  background: var(--cream);
  color: var(--ink);
  font-family:
    'National Park',
    'Nunito',
    ui-rounded,
    'SF Pro Rounded',
    'Trebuchet MS',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 24px clamp(18px, 5vw, 40px) 32px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 20px;
}

/* Back to the game: first on the page, big enough for a thumb, since inside the app there is no browser back button. */
.back {
  display: inline-block;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

h1 {
  margin: 12px 0 4px;
  font-family: 'Lilita One', 'Titan One', ui-rounded, system-ui, sans-serif;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--teal-ink);
}

h2 {
  margin: 32px 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--teal-ink);
}

p,
ul,
ol {
  margin: 0 0 12px;
}

ul,
ol {
  padding-left: 1.3em;
}

li {
  margin-bottom: 6px;
}

/* Where to write: the one postal address, set off from the sentence that leads to it. */
address {
  margin: 0 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--line);
  font-style: normal;
}

a {
  color: var(--teal-ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.lead {
  font-size: 1.15rem;
}

.updated,
footer {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

footer {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 2px solid var(--line);
}

/*
 * Words only the owner can supply (who runs the game, where to write, how long things are kept). Loud on purpose: a page with one of these left in is
 * not ready for players or for a store. None remains since 2026-10-12, and test/client/legal-pages.test.ts fails if one comes back.
 */
[data-owner] {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
}
