/* Shared style of the static legal pages (terms.html, privacy.html). The
   site's Content-Security-Policy allows no inline styles, hence this file.
   The game's Original menu theme, as the landing and patch-notes pages use
   it (src/landing/_landing-tokens.scss; copied, since public/ is not built). */
:root {
  color-scheme: dark;
}

body {
  margin: 0;
  background:
    radial-gradient(60% 40% at 15% 0, rgba(150, 140, 100, 0.08), transparent 70%), #070a09;
  color: #c9c8b8;
  font:
    16px/1.65 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

.brand {
  display: block;
  width: min(300px, 70vw);
  height: auto;
  margin-bottom: 32px;
}

h1 {
  position: relative;
  margin: 0 0 4px;
  color: #dedbcf;
  font-size: 1.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.updated {
  position: relative;
  margin: 0 0 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(196, 204, 176, 0.14);
  color: #7c8176;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The brass rule under the heading block, as on the patch-notes pages. */
.updated::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 96px;
  height: 2px;
  background: #d9c26f;
  box-shadow: 0 0 10px rgba(255, 214, 102, 0.35);
  content: "";
}

h2 {
  margin: 36px 0 8px;
  border-top: 1px solid rgba(196, 204, 176, 0.14);
  padding-top: 20px;
  color: #b9a46a;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

ul {
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

li::marker {
  color: #b9a46a;
}

a {
  color: #f0dd97;
  text-decoration-color: rgba(217, 194, 111, 0.45);
  text-underline-offset: 3px;
}

a:hover {
  color: #fff3c9;
  text-decoration-color: #f0dd97;
}

:focus-visible {
  outline: 2px solid #f0dd97;
  outline-offset: 3px;
}

strong {
  color: #ece9da;
}

footer {
  margin-top: 48px;
  border-top: 1px solid rgba(196, 204, 176, 0.14);
  padding-top: 16px;
  color: #7c8176;
  font-size: 0.9rem;
}

footer p {
  margin: 0 0 8px;
}
