/* The policy pages: privacy.html, terms.html, support.html and 404.html.
 *
 * They wear the game's night-map palette so following a link from the app
 * doesn't feel like leaving it, but they load nothing from anyone else — no
 * web font, no script. A privacy policy that pinged Google Fonts to render
 * would be making its first claim false. */

:root {
  --bg: #070b14;
  --panel: rgba(18, 25, 44, .86);
  --line: rgba(255, 255, 255, .1);
  --text: #f5f7ff;
  --body: #dbe2fa;
  --muted: #9fb0d9;
  --accent: #7cf0c6;
  --sky: #4bb7ff;
}

* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(60rem 30rem at 90% -12%, rgba(75, 183, 255, .15), transparent 62%),
    radial-gradient(48rem 26rem at -12% 8%, rgba(124, 240, 198, .1), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--body);
  font: 400 1.02rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap {
  width: min(44rem, 100% - 2.5rem);
  margin: 0 auto;
  padding: max(1.6rem, env(safe-area-inset-top)) 0 4rem;
}

/* ---- Header -------------------------------------------------------------- */

.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem 1.4rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: var(--text);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.01em;
  text-decoration: none;
}
.brand b { color: var(--accent); font-weight: 800; }
.site-nav { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .93rem; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent); }

/* ---- Document ------------------------------------------------------------ */

h1 {
  color: var(--text);
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 800;
  margin: 2.4rem 0 .6rem;
}
.lede { color: var(--text); font-size: 1.14rem; line-height: 1.55; margin: 0 0 .5rem; }
.updated { color: var(--muted); font-size: .86rem; margin: 0 0 2rem; }

h2 {
  color: var(--text);
  font-size: 1.28rem;
  letter-spacing: -.01em;
  margin: 2.6rem 0 .6rem;
  font-weight: 700;
}
h3 { color: var(--text); font-size: 1.04rem; margin: 1.7rem 0 .3rem; font-weight: 650; }

p { margin: 0 0 .9rem; }
ul { padding-left: 1.2rem; margin: 0 0 1rem; }
li { margin: .35rem 0; }
li::marker { color: var(--accent); }
strong { color: var(--text); font-weight: 650; }

a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.path {
  color: var(--text);
  font-weight: 600;
  white-space: normal;
}

/* The short version: the four promises, before the detail that backs them. */
.promises {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: .55rem;
}
.promises li {
  margin: 0;
  padding: .8rem 1rem .8rem 2.6rem;
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.promises li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.22rem;
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 240, 198, .18);
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
  margin: 1.2rem 0;
}
.card p:last-child { margin-bottom: 0; }
.card .big { font-size: 1.25rem; font-weight: 700; color: var(--text); margin: .1rem 0 .4rem; }

/* What the server keeps and for how long. On a phone each row becomes a
   small card rather than a table you'd have to scroll sideways to finish. */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.2rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: .7rem .9rem .7rem 0;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-weight: 600;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .09em;
}
td:first-child { color: var(--text); font-weight: 600; width: 38%; }
td:nth-child(2) { width: 28%; }
.keep { color: var(--accent); }

/* ---- Footer -------------------------------------------------------------- */

.site-foot {
  margin-top: 3.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}
.site-foot p { margin: 0 0 .4rem; }

@media (max-width: 40rem) {
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  td, td:first-child, td:nth-child(2) { width: auto; border: 0; padding: 0; }
  td:nth-child(2)::before,
  td:nth-child(3)::before {
    display: block;
    margin-top: .5rem;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
  }
  td:nth-child(2)::before { content: "Why"; }
  td:nth-child(3)::before { content: "Kept for"; }
}
