/* CREST — the policy pages.
   Deliberately the game's own palette rather than a generic policy template: a
   reviewer arriving from the App Store listing should land somewhere that is
   plainly the same product. */
:root {
  --bg: #07090e;
  --panel: #10131b;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eceef3;
  --dim: #98a0b0;
  --red: #e10600;
  --mono: 'SF Mono', Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
a { color: #ff4d47; }
a:hover { color: #fff; }

header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 14px 22px;
  background: rgba(7, 9, 14, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
header img { height: 26px; width: auto; display: block; }
nav { display: flex; gap: 16px; flex-wrap: wrap; }
nav a {
  color: var(--dim); text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
nav a:hover, nav a[aria-current] { color: var(--text); }
nav a[aria-current] { border-bottom: 2px solid var(--red); }

.lang { margin-left: auto; display: flex; gap: 6px; }
.lang button {
  background: transparent; color: var(--dim);
  border: 1px solid var(--line); border-radius: 3px;
  padding: 5px 11px; font: 700 12px/1 inherit; letter-spacing: 0.1em; cursor: pointer;
}
.lang button[aria-pressed="true"] { color: #fff; border-color: var(--red); background: rgba(225, 6, 0, 0.16); }

main { max-width: 820px; margin: 0 auto; padding: 34px 22px 70px; }
h1 {
  font-size: clamp(28px, 6vw, 40px); font-weight: 900; font-style: italic;
  text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 6px;
}
h1 em { color: var(--red); font-style: italic; }
.updated { color: var(--dim); font-size: 13px; margin: 0 0 30px; font-family: var(--mono); }
h2 {
  font-size: 19px; font-weight: 800; margin: 38px 0 12px;
  padding-left: 12px; border-left: 3px solid var(--red);
}
h3 { font-size: 15px; font-weight: 800; margin: 26px 0 8px; color: #cfd4de; }
p, li { color: #d3d8e2; }
ul { padding-left: 20px; }
li { margin: 6px 0; }
strong { color: #fff; }

.lede {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--red);
  padding: 18px 20px; margin: 0 0 34px;
}
.lede p:first-child { margin-top: 0; }
.lede p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.scroller { overflow-x: auto; }

footer {
  border-top: 1px solid var(--line); margin-top: 50px;
  padding: 26px 22px 40px; text-align: center; color: var(--dim); font-size: 13px;
}
footer a { color: var(--dim); }

/* One document, two languages. Both are in the markup so the page needs no
   round trip to change language and a reviewer can read either. */
[data-lang] { display: none; }
/* `revert` and not `block`: these markers sit on <div>s in the body and on
   <span>s inside the nav and the footer, and forcing block would break both
   of those onto their own lines. */
[data-lang].on { display: revert; }
