/* ------------------------------------------------------------------ *
 * ClicKing Kingdom — the game's own pages (privacy, support).
 * Parchment by day, the throne room at night; the colours are the
 * game's (ui_theme.gd: TEXT, TEXT_DIM, TEXT_GOLD, BG).
 * ------------------------------------------------------------------ */

:root {
  --bg: #EFE3CB; --paper: #FBF4E4; --line: #D9C39A;
  --ink: #2A1A10; --soft: #5E4A3A; --gold: #B07A12; --red: #A8322A;
  --shadow: rgba(60,35,15,.18);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1618; --paper: #2A2023; --line: #4A3A33;
    --ink: #F4EAD8; --soft: #C9BBA9; --gold: #F6D06A; --red: #E0605A;
    --shadow: rgba(0,0,0,.45);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.65;
  min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  padding: 36px 16px 0;
}

/* Masthead: the app icon and the name */
.mast { text-align: center; color: var(--ink); }
.mast img { width: 96px; height: 96px; border-radius: 22px; image-rendering: pixelated; box-shadow: 0 6px 18px var(--shadow); }
.mast .word { font-size: clamp(30px, 8vw, 46px); font-weight: 800; letter-spacing: .02em; line-height: 1.1; margin-top: 12px; }
.mast .word b { color: var(--gold); }

/* The page */
.sheet {
  width: 100%; max-width: 680px; margin: 26px 0 0;
  background: var(--paper); border-radius: 14px; border-top: 4px solid var(--red);
  padding: clamp(22px, 5vw, 40px);
  box-shadow: 0 14px 40px var(--shadow);
}
h1 { font-size: clamp(26px, 6vw, 34px); line-height: 1.15; margin: 0; font-weight: 800; text-wrap: balance; }
.stamp { margin: 6px 0 24px; font-size: .86em; color: var(--soft); }
h2 { font-size: 1.12em; margin: 28px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.sheet p { color: var(--soft); margin: 0 0 14px; max-width: 65ch; }
.sheet strong { color: var(--ink); }
.sheet a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.mail { font-size: 1.15em; font-weight: 700; }

nav { margin-top: 28px; text-align: center; }
nav a {
  color: var(--ink); text-decoration: none; background: var(--paper);
  padding: 10px 18px; border-radius: 999px; margin: 5px; display: inline-block;
  box-shadow: 0 3px 10px var(--shadow);
}
footer { margin-top: auto; padding: 44px 0 32px; color: var(--soft); font-size: .84em; text-align: center; }
footer a { color: var(--soft); }
:where(a):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.socials { display: flex; justify-content: center; gap: 22px; margin-bottom: 14px; }
.socials a { color: inherit; opacity: .8; transition: opacity .15s, transform .15s; }
.socials a:hover { opacity: 1; transform: translateY(-2px); }
.socials svg { width: 24px; height: 24px; display: block; }
