/* Styles for the privacy, terms and account deletion pages. Fonts and
   colours match index.html: the artist's palette, Fredoka and Figtree. */

@font-face { font-family: Fredoka; src: url(/fonts/Fredoka-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Fredoka; src: url(/fonts/Fredoka-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Figtree; src: url(/fonts/Figtree-VariableFont_wght.ttf) format("truetype"); font-weight: 300 900; font-display: swap; }

/* Light. The brand colours never change; the page colours follow the theme. */
:root {
  color-scheme: light;
  --navy: #003D5B;
  --navy-raised: #0B4A6B;
  --navy-line: #2B6A8A;
  --on-navy: #C7D8E2;
  --on-navy-muted: #92AEBF;
  --teal: #00798C;
  --amber: #EDAE49;
  --bg: #F4F7F9;
  --surface: #FFFFFF;
  --line: #D6E0E7;
  --ink: #003D5B;
  --ink-2: #2E5670;
  --muted: #536F80;
  --teal-text: #006B7C;
  --amber-tint: #FCF1DE;
}
/* Dark, when the device asks for it and the reader hasn't chosen light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #00293D;
    --surface: #003D5B;
    --line: #17587A;
    --ink: #F4F7F9;
    --ink-2: #C7D8E2;
    --muted: #92AEBF;
    --teal-text: #6FCAD6;
    --amber-tint: #5B4A2C;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #00293D;
  --surface: #003D5B;
  --line: #17587A;
  --ink: #F4F7F9;
  --ink-2: #C7D8E2;
  --muted: #92AEBF;
  --teal-text: #6FCAD6;
  --amber-tint: #5B4A2C;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--teal-text); font-weight: 600; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
h1, h2 { font-family: Fredoka, Figtree, sans-serif; font-weight: 600; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(32px, 7vw, 44px); margin: 36px 0 8px; }
h2 { font-size: 24px; margin: 40px 0 8px; }

/* The navy bar with the logo, as on the homepage. */
header { background: var(--navy); }
header .wrap { padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-block; line-height: 0; border-radius: 6px; }
.brand img { height: 30px; width: auto; }

.updated { color: var(--muted); margin: 0 0 24px; }
li { margin: 6px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 4px 20px; margin: 20px 0; }
.card.amber { background: var(--amber-tint); border-color: transparent; }
main { padding-bottom: 56px; }

footer { background: var(--navy); color: var(--on-navy-muted); padding: 24px 0 40px; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--on-navy); }
