/* Shared layout for the informational pages (About, Contact, Privacy). These
   are prose, not game UI, so they get a narrower reading column and heavier
   leading than main.css's game layout — but the same tokens, so they read as
   the same site rather than a bolted-on page. */

.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 4vw 90px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color var(--dur-ui) var(--ease-out);
}
.legal-back:hover { color: var(--text); }
.legal-back:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}

@media (max-width: 640px) {
  .legal-card { padding: 20px; }
}

.legal-card h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-caps-lg);
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 8px;
}

.legal-card .legal-updated {
  color: var(--text-faint);
  font-size: var(--text-xs);
  margin: 0 0 28px;
}

.legal-card h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-caps-md);
  text-transform: uppercase;
  color: var(--text);
  margin: 32px 0 12px;
}
.legal-card h2:first-of-type { margin-top: 0; }

.legal-card p {
  color: var(--text-muted);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  margin: 0 0 16px;
}

.legal-card ul {
  color: var(--text-muted);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  margin: 0 0 16px;
  padding-inline-start: 1.25em;
}
.legal-card li { margin-bottom: 6px; }

.legal-card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-card a:hover { color: var(--accent-hover); }
.legal-card a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

.legal-card strong { color: var(--text); }

.legal-contact-email {
  display: inline-block;
  margin-top: 4px;
  font-family: 'Rajdhani', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: var(--tracking-caps-md);
}

/* Site footer, present on every page (game included) so About/Contact/Privacy
   are always one click away — the "clear navigation" AdSense wants, and the
   thing that makes these pages discoverable at all instead of orphaned. */
.site-footer {
  max-width: 1260px;
  margin: 0 auto;
  padding: 24px 4vw 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  border-top: 1px solid var(--border);
}
.site-footer a {
  color: var(--text-faint);
  font-size: var(--text-xs);
  text-decoration: none;
  transition: color var(--dur-ui) var(--ease-out);
}
.site-footer a:hover { color: var(--text-muted); }
.site-footer a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}
.site-footer .site-footer-copy {
  color: var(--text-faint);
  font-size: var(--text-xs);
  margin-inline-start: auto;
}
