/* ===================================================================
   Styles for the standalone content pages (about, privacy, terms, contact).

   These pages are plain documents, not the arcade UI, so they get a simple
   readable column rather than the game's layout. They reuse the same fonts
   and colour variables as css/style.css so the site still feels like one
   thing — but they deliberately don't pull in the game's chrome.
   =================================================================== */

:root {
  --pg-ink: #2b2350;
  --pg-ink-soft: #6b6390;
  --pg-accent: #7c5cff;
  --pg-paper: #ffffff;
  --pg-bg-1: #8ad7ff;
  --pg-bg-2: #c6b8ff;
  --pg-bg-3: #ffd6f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Fredoka', system-ui, 'Segoe UI', sans-serif;
  font-weight: 500;
  color: var(--pg-ink);
  background: linear-gradient(160deg, var(--pg-bg-1), var(--pg-bg-2) 55%, var(--pg-bg-3));
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.page-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* --- header --- */
.page-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0 22px;
}
.page-head a.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--pg-ink);
  font-family: 'Baloo 2', 'Fredoka', system-ui, sans-serif;
  font-weight: 800; font-size: 1.35rem;
}
.page-head .brand-mark { font-size: 1.8rem; }
.page-head .back-link {
  margin-left: auto;
  background: rgba(255, 255, 255, .75);
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none; color: var(--pg-ink);
  font-weight: 700; font-size: .92rem;
  box-shadow: 0 4px 14px rgba(80, 60, 160, .13);
}
.page-head .back-link:hover { background: #fff; }

/* --- the document card --- */
.page-card {
  background: var(--pg-paper);
  border: 5px solid #fff;
  border-radius: 26px;
  box-shadow: 0 14px 40px rgba(80, 60, 160, .16);
  padding: 34px 30px;
}

.page-card h1 {
  font-family: 'Baloo 2', 'Fredoka', system-ui, sans-serif;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  margin: 0 0 6px;
  line-height: 1.2;
}
.page-card .updated {
  color: var(--pg-ink-soft);
  font-size: .9rem;
  margin: 0 0 26px;
}
.page-card h2 {
  font-family: 'Baloo 2', 'Fredoka', system-ui, sans-serif;
  font-size: 1.32rem;
  margin: 30px 0 8px;
  padding-top: 4px;
}
.page-card h3 {
  font-family: 'Baloo 2', 'Fredoka', system-ui, sans-serif;
  font-size: 1.08rem;
  margin: 20px 0 6px;
}
.page-card p, .page-card li { font-size: 1rem; }
.page-card ul, .page-card ol { padding-left: 22px; }
.page-card li { margin: 6px 0; }
.page-card a { color: var(--pg-accent); font-weight: 600; }
.page-card strong { font-weight: 700; }

.page-card table {
  width: 100%; border-collapse: collapse; margin: 14px 0;
  font-size: .95rem;
}
.page-card th, .page-card td {
  text-align: left; padding: 9px 10px;
  border-bottom: 1px solid #eee9ff;
  vertical-align: top;
}
.page-card th { font-weight: 700; background: #f7f4ff; }
/* Tables must never push the page sideways on a phone. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.callout {
  background: #f3efff;
  border-left: 5px solid var(--pg-accent);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 18px 0;
}
.callout p { margin: 0; }

/* --- footer (shared with the arcade page) --- */
.site-footer {
  margin-top: 34px;
  text-align: center;
  color: #4a4270;
}
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #4a4270; font-weight: 700; font-size: .95rem;
  text-decoration: none;
  border-bottom: 2px solid rgba(74, 66, 112, .28);
}
.footer-nav a:hover { border-bottom-color: #4a4270; }
.footer-note { margin: 6px 0; font-size: .92rem; }
.footer-copy { margin: 4px 0 0; font-size: .85rem; opacity: .75; }

@media (max-width: 520px) {
  .page-card { padding: 24px 18px; border-radius: 20px; }
}
