/* Impressum, Datenschutz, Chat-Regeln on the game domain (cloud build only, tools/build-cloud.mjs).
   Same palette and fonts as the game (public/css/style.css); fonts come from css/fonts.css.
   No inline styles anywhere: the pages run under a CSP with style-src 'self'. */

:root {
  --slate: #1f2a33;
  --slate-2: #283742;
  --edge: #0f171c;
  --line: #3d4f5b;
  --text: #eef2f4;
  --text-2: #c3ced5;
  --text-3: #93a4af;
  --brass: #f2b632;
  --font-sign: 'Barlow Semi Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--slate);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  overflow-wrap: break-word;
}

.wrap {
  max-width: 70ch;
  margin: 0 auto;
  padding: 0 16px;
}

/* Links: brass, underlined. Focus: brass outline. */
a { color: var(--brass); text-underline-offset: 0.18em; }
a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--slate-2);
  padding: 8px 12px;
  z-index: 1;
}
.skip:focus { top: 8px; }

/* Header: a slate plate with the game's hard bottom edge. */
.top {
  background: var(--slate-2);
  border-bottom: 4px solid var(--edge);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.top img { display: block; width: 108px; height: auto; }
.back {
  font: 600 16px/1 var(--font-sign);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 0;
}

/* main.wrap, not main: .wrap's own padding (0 16px) would win over a plain element selector and
   glue the heading to the header and the last line to the footer. */
main.wrap { padding-top: 40px; padding-bottom: 72px; }

h1, h2, h3 {
  font-family: var(--font-sign);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
h1 { font-size: 34px; }
h2 {
  font-size: 23px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
h3 { font-size: 19px; font-weight: 600; margin-top: 28px; }
h1 + p, h1 + .stand { margin-top: 8px; }

p, ul, ol, address, .table-wrap { margin: 12px 0 0; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: 6px; }
address { font-style: normal; }
strong { font-weight: 600; }

.stand { color: var(--text-3); font-size: 15px; }
.note { color: var(--text-2); }

code {
  font: 15px/1.4 ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color: var(--text);
  background: var(--slate-2);
  padding: 1px 4px;
  border-radius: 2px;
}

/* Wide tables scroll inside their own box on small screens, never the page. */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
th {
  font: 600 15px/1.3 var(--font-sign);
  color: var(--text-2);
  border-bottom: 2px solid var(--line);
}
td code { white-space: nowrap; }

/* Separate objection notice (Art. 21 Abs. 4 DSGVO): set apart from the other information. */
.objection {
  margin-top: 16px;
  padding: 16px;
  background: var(--slate-2);
  border-left: 4px solid var(--text-3);
}
.objection p:first-child { margin-top: 0; }

footer {
  background: var(--edge);
  color: var(--text-3);
}
/* Small type only inside: .wrap keeps the body size, so its 70ch column lines up with main. */
footer ul, footer p { font-size: 15px; }
footer .wrap { padding-top: 20px; padding-bottom: 32px; }
footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
footer li + li { margin-top: 0; }
footer a { display: inline-block; padding: 8px 0; }
footer a[aria-current="page"] { color: var(--text); text-decoration: none; }
footer p { margin: 8px 0 0; }
