/* Shared styles for the standalone legal pages (terms / privacy / accessibility).
   Plain semantic HTML rendered outside the Phaser canvas, so these pages are
   accessible to assistive tech by default. Dark theme to match the game, but
   body text uses a readable system font at a comfortable size and high contrast. */

:root {
  --bg: #0b0b0f;
  --panel: #15151d;
  --text: #e8e8ec;
  --muted: #aeb0bd;
  --rule: #2a2a37;
  --link: #7fb4ff;
  --link-hover: #a9cdff;
  --accent: #ffcf3f;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible,
.backlink:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

h1 {
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 0 0 0.25rem;
  color: #fff;
}

h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
  color: #fff;
}

h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.4rem;
  color: var(--text);
}

p,
li {
  color: var(--text);
}

ul,
ol {
  padding-left: 1.4rem;
}

li {
  margin: 0.3rem 0;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th,
td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.note {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1rem;
  border-radius: 4px;
  margin: 1.5rem 0;
  color: var(--muted);
}

.backlink {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.backlink:hover {
  color: var(--text);
}

.backlink::before {
  content: '\2039\00a0';
}

footer.pagefoot {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

footer.pagefoot a {
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
