/* Pocket Pals website: privacy policy and support (decision 0028). No external requests: fonts are served from here. */
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #fff8ef;
  --surface: #ffffff;
  --text: #3d2c2a;
  --muted: #7a6460;
  --accent: #e8743b;
  --accent-text: #b4531f;
  --border: #f0dfcd;
  --soft: #fdeedd;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f1a19;
    --surface: #2a2321;
    --text: #f6ece4;
    --muted: #c3b1a8;
    --accent: #f08a52;
    --accent-text: #f6a06f;
    --border: #3d3330;
    --soft: #352b28;
  }
}
:root[data-theme="dark"] {
  --bg: #1f1a19; --surface: #2a2321; --text: #f6ece4; --muted: #c3b1a8;
  --accent: #f08a52; --accent-text: #f6a06f; --border: #3d3330; --soft: #352b28;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.6 "Fredoka", system-ui, -apple-system, "Segoe UI", sans-serif;
}
main, header, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header { display: flex; align-items: center; gap: 14px; padding-top: 28px; padding-bottom: 8px; }
header img { width: 56px; height: 56px; border-radius: 14px; }
header a { color: inherit; text-decoration: none; font-weight: 600; font-size: 22px; }
nav { margin-left: auto; display: flex; gap: 16px; font-size: 16px; }
nav a { color: var(--accent-text); font-weight: 500; font-size: 16px; }

h1 { font-weight: 600; font-size: 34px; line-height: 1.2; margin: 24px 0 4px; }
h2 { font-weight: 600; font-size: 22px; margin: 36px 0 8px; }
h3 { font-weight: 600; font-size: 18px; margin: 24px 0 4px; }
p, li { max-width: 68ch; }
a { color: var(--accent-text); }
.meta { color: var(--muted); margin-top: 0; }
.summary { background: var(--soft); border: 1px solid var(--border); border-radius: 16px; padding: 4px 20px; margin: 20px 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 20px 12px; margin: 16px 0; }
.links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 24px 0; }
.links a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--text); }
.links a strong { display: block; color: var(--accent-text); font-weight: 600; font-size: 19px; }
footer { color: var(--muted); font-size: 14px; padding-top: 32px; padding-bottom: 40px; }

@media (max-width: 480px) {
  header { flex-wrap: wrap; }
  nav { margin-left: 0; width: 100%; }
  h1 { font-size: 28px; }
}
