/* =========================================================
   TODDY — shared styles for the simple content pages
   (privacy.html, terms.html, 404.html). Loads after style.css
   and reuses its colour variables, skip-link and fonts.
   ========================================================= */
.legal-body {
  min-height: 100vh;
  font-family: var(--body-font, 'Inter', system-ui, sans-serif);
  background:
    radial-gradient(circle at 85% 0%, rgba(153,69,255,.10), transparent 38%),
    radial-gradient(circle at 5% 40%, rgba(212,175,90,.06), transparent 34%),
    var(--brown-deep);
  color: #fff;
  display: flex; flex-direction: column;
}

.legal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(5,5,5,.96);
  border-bottom: 1px solid rgba(201,168,76,.3);
}
.legal-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); text-decoration: none;
  font-family: 'Cinzel', serif; font-weight: 800; font-size: 1.3rem; letter-spacing: 1.5px;
}
.legal-brand img {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid rgba(201,168,76,.4);
}
.legal-back {
  color: var(--gold-light); text-decoration: none;
  font-size: .86rem; font-weight: 600;
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid rgba(212,175,90,.4);
}
.legal-back:hover { background: rgba(153,69,255,.16); border-color: rgba(153,69,255,.55); color: #fff; }
.legal-header a:focus-visible, .legal-card a:focus-visible, .legal-footer a:focus-visible {
  outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 6px;
}

.legal-main {
  width: 100%; max-width: 860px; margin: 0 auto;
  padding: clamp(28px, 6vw, 64px) clamp(16px, 4vw, 24px) 72px;
  flex: 1 0 auto;
}
.legal-card {
  padding: clamp(22px, 4vw, 44px);
  border-radius: 20px;
  border: 1px solid rgba(212,175,90,.2);
  background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.legal-card h1 {
  font-family: 'Cinzel', serif; font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.12;
  color: var(--gold-light); margin-bottom: 8px;
}
.legal-updated { font-size: .82rem; color: rgba(246,233,208,.78); margin-bottom: 26px; }
.legal-lead {
  font-size: 1.04rem; line-height: 1.75; color: rgba(255,255,255,.9);
  padding: 16px 18px; margin-bottom: 8px;
  border-left: 3px solid var(--gold); background: rgba(212,175,90,.06); border-radius: 0 12px 12px 0;
}
.legal-card h2 {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 1.22rem; color: var(--gold-light);
  margin: 30px 0 10px;
}
.legal-card p, .legal-card li {
  font-size: .96rem; line-height: 1.78; color: rgba(255,255,255,.84);
}
.legal-card p { margin-bottom: 12px; }
.legal-card ul { margin: 0 0 14px; padding-left: 22px; }
.legal-card li { margin-bottom: 6px; }
.legal-card a { color: var(--gold-light); text-underline-offset: 3px; }
.legal-card a:hover { color: #fff; }
.legal-card strong { color: #fff; }

.legal-footer {
  text-align: center; padding: 22px 16px 34px;
  font-size: .82rem; color: rgba(246,233,208,.78);
  border-top: 1px solid rgba(212,175,90,.14); background: #050403;
}
.legal-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 10px; }
.legal-footer a { color: rgba(246,233,208,.9); text-underline-offset: 3px; padding: 6px 2px; }
.legal-footer a:hover { color: var(--gold-light); }

/* 404 page */
.notfound { text-align: center; }
.notfound-code {
  font-family: 'Cinzel', serif; font-weight: 900;
  font-size: clamp(4.5rem, 20vw, 8rem); line-height: 1;
  color: var(--gold-light); text-shadow: 0 0 40px rgba(212,175,90,.25);
}
.notfound-mascot { width: min(240px, 60vw); height: auto; margin: 0 auto 8px; }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.notfound-actions a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: .95rem;
}
.notfound-actions .nf-primary {
  background: linear-gradient(135deg, #F2CF76, #B78A2F); color: #130E07;
}
.notfound-actions .nf-secondary {
  border: 1px solid rgba(246,233,208,.38); color: var(--cream); background: rgba(5,5,5,.38);
}
.notfound-actions a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .legal-body * { transition: none !important; }
}

/* ---------- /games/ hub (uses the .play-grid / .game-card styles from style.css) ---------- */
.games-main { width: 100%; max-width: 1040px; margin: 0 auto; padding: clamp(28px, 6vw, 60px) clamp(16px, 4vw, 24px) 72px; flex: 1 0 auto; }
.games-title { font-family: 'Cinzel', serif; font-weight: 900; font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.15; text-align: center; color: #fff; }
.games-title .game-tag { font-family: 'Inter', system-ui, sans-serif; font-size: .7rem; vertical-align: middle; }
.games-lead { max-width: 640px; margin: 12px auto 32px; text-align: center; color: rgba(246,233,208,.8); line-height: 1.65; }
.games-notes { max-width: 640px; margin: 32px auto 0; color: rgba(255,255,255,.8); line-height: 1.65; }
.games-notes h2 { font-family: 'Cinzel', serif; color: var(--gold-light); font-size: 1.2rem; margin-bottom: 8px; }
.games-notes p + p { margin-top: 10px; }
.games-notes a { color: var(--gold-light); text-underline-offset: 3px; }
.games-notes a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }
