/* Shared styling for the privacy, terms and account deletion pages.
   These are served as plain static files rather than through the app: both
   stores require them to open without signing in, without JavaScript, and
   without the 4 MB the game itself downloads. */

:root {
  color-scheme: dark;
  --ground: #070b10;
  --surface: #0e151d;
  --ink: #e8eef4;
  --ink-soft: #9fb0be;
  --ink-faint: #71828f;
  --line: #1e2a35;
  --accent: #38bdf8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 80px;
  background: var(--ground);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
}

header.legal-head {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
}
.legal-back:hover, .legal-back:focus-visible { text-decoration: underline; }

.legal-kicker {
  margin: 0 0 6px;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.legal-updated {
  margin: 12px 0 0;
  color: var(--ink-faint);
  font-size: 14px;
}

h2 {
  margin: 40px 0 12px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -.01em;
}

h3 {
  margin: 26px 0 8px;
  font-size: 16px;
}

p, li { color: var(--ink-soft); }
p { margin: 0 0 14px; }

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 7px; }

strong { color: var(--ink); font-weight: 600; }

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

.table-scroll { overflow-x: auto; margin: 0 0 18px; }

table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 15px;
}

th {
  text-align: left;
  padding: 0 14px 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}

td:first-child { color: var(--ink); font-weight: 600; }
tr:last-child td { border-bottom: none; }

.callout {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: var(--surface);
}
.callout p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 38px;
  margin-bottom: 14px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

footer.legal-foot {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 14px;
}
footer.legal-foot a { margin-right: 18px; }

details { border: 1px solid var(--line); border-radius: 8px; margin: 12px 0; padding: 12px 16px; }
summary { cursor: pointer; font-weight: 600; overflow-wrap: anywhere; }
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
details[open] > summary { margin-bottom: 12px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; }

@media (max-width: 520px) {
  body { font-size: 15.5px; }
  header.legal-head { padding-top: 28px; }
}
