/* Shared stylesheet for the public document pages (privacy, terms,
   delete-account) — brand cream theme matching the in-app look.
   NOTE: the game's in-app viewer (src/ui/legal-viewer.ts) does NOT load this
   file — it extracts <main> and applies its own .legal-content styles. Page
   chrome (header / back button / footer) must therefore stay OUTSIDE <main>,
   or it would leak into the in-app popup. */
:root {
  --ink: #3d1e0a;
  --muted: rgba(60, 30, 10, 0.55);
  --accent: #8a5a2a;
  --line: rgba(120, 60, 20, 0.14);
  --card: #fffdf8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fff7e8 0%, #fff4e6 45%, #ffe9d2 100%);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 1.5rem 1.25rem 3rem;
}
.site-header {
  max-width: 760px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-header .brand img { display: block; height: 30px; width: auto; }
.back-home {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border: 1.5px solid rgba(120, 60, 20, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}
.back-home:hover { background: rgba(120, 60, 20, 0.08); }
main {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(120, 60, 20, 0.10);
  padding: 2.2rem clamp(1.25rem, 4vw, 2.75rem);
}
h1 { font-size: 1.9rem; margin: 0 0 0.25rem; letter-spacing: -0.02em; }
h2 {
  font-size: 1.2rem;
  margin: 2.2rem 0 0.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  letter-spacing: -0.01em;
}
h2:first-of-type { border-top: none; padding-top: 0; }
p, li { color: var(--ink); }
a { color: var(--accent); }
.meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
code {
  background: rgba(120, 60, 20, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 5px;
  font-size: 0.88em;
}
.note { color: var(--muted); font-size: 0.92rem; }
footer {
  max-width: 760px;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
