/* Shared by the Brain Numbers pages: /brainnumbers/privacy, /brainnumbers/useconditions and /brainnumbers/support */
:root {
  --navy: #171d2a;
  --navy-2: #1f2738;
  --blue: #3d8ad6;
  --blue-light: #6aa8e6;
  --orange: #ff9a2e;
  --orange-dark: #f07d10;
  --teal: #2ec4a0;
  --text: #ffffff;
  --muted: #b8c4d8;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--navy);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
/* Blue swoosh like on the game page */
body::before {
  content: "";
  position: absolute;
  width: 900px; height: 900px;
  left: -520px; top: -420px;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 70%, var(--blue-light), var(--blue) 60%);
  opacity: .9;
  z-index: 0;
  pointer-events: none;
}
.wrap {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.lang {
  display: inline-flex;
  background: rgba(23, 29, 42, .75);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] {
  background: linear-gradient(var(--orange), var(--orange-dark));
  color: #fff;
}
.lang button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

article {
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 24px 20px;
  margin: 16px 0 40px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  overflow-wrap: break-word;
}
@media (min-width: 640px) { article { padding: 36px 40px; } }
article h1 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  line-height: 1.15;
  margin: 0 0 8px;
  font-weight: 800;
}
article h2 {
  font-size: 1.15rem;
  margin: 28px 0 8px;
  color: var(--orange);
}
article h3 {
  font-size: 1rem;
  margin: 20px 0 6px;
}
article p { margin: 0 0 12px; color: #e6edf8; }
article ul { margin: 0 0 12px; padding-left: 22px; color: #e6edf8; }
article li { margin-bottom: 8px; }
article a { color: var(--blue-light); }
article a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
article .updated { color: var(--muted); font-size: 14px; }
article .note {
  color: var(--muted);
  font-size: 14px;
  border-left: 3px solid var(--orange);
  padding-left: 12px;
  margin-bottom: 20px;
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 24px 16px 32px;
}
footer a { color: inherit; }
