/*
 * Shared styling for the three legal pages.
 *
 * A plain stylesheet rather than the game's, because these pages must render if
 * everything else fails: they are what a regulator or a worried player reaches
 * for, and "the JavaScript did not load" is not an acceptable reason for an
 * Impressum to be missing. No build step touches them.
 */
:root {
  --bg: #0f172a;
  --card: #1e293b;
  --border: #334155;
  --text: #f8fafc;
  --dim: #94a3b8;
  --gold: #f59e0b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 40px 20px 80px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 760px;
  margin: 0 auto;
}

.brand {
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 28px;
}

.brand span { color: var(--gold); }

/* The wordmark is artwork now. Sized on the element too, so the page does not
   reflow as it loads. */
.brand img { display: block; width: 202px; max-width: 60vw; height: auto; }

h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.updated {
  font-size: 12px;
  color: var(--dim);
  margin: 0 0 32px;
}

h2 {
  font-size: 20px;
  margin: 36px 0 10px;
}

p, li { color: #cbd5e1; }

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

/*
 * Placeholder marker.
 *
 * Loud on purpose. An unfinished privacy policy that looks finished is worse
 * than an obviously unfinished one: the first gets published by accident.
 */
.todo {
  display: block;
  margin: 0 0 32px;
  padding: 14px 16px;
  border: 1px dashed var(--gold);
  border-radius: 12px;
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  color: var(--gold);
  font-size: 14px;
}

.fill {
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  border-bottom: 1px dashed var(--gold);
  padding: 0 4px;
  border-radius: 3px;
  color: var(--gold);
  font-weight: 600;
}

table { border-collapse: collapse; width: 100%; margin: 16px 0; }
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  vertical-align: top;
}
th { color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
td { color: #cbd5e1; }

footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  /* Two points up from 12. Cross-links between the three legal pages are how
     someone reading one of them finds the other two. */
  font-size: 14px;
  color: var(--dim);
}

footer a { color: var(--dim); }

/*
 * The way out.
 *
 * These pages are reached from a game, not from a site with a navigation bar,
 * and a browser Back button is not obvious on a phone in fullscreen. Fixed
 * rather than scrolled with the page, because the reason to leave usually
 * arrives partway down.
 */
.close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease, transform 90ms ease;
}

.close svg { width: 28px; height: 28px; }

.close:hover {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  color: var(--gold);
}

.close:active { transform: scale(0.94); }

.close:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Clear of the button, so a long heading never runs under it. */
main { padding-right: 64px; }

@media (max-width: 560px) {
  .close { top: 10px; right: 10px; width: 48px; height: 48px; }
  .close svg { width: 24px; height: 24px; }
  main { padding-right: 52px; }
}
