/*
 * Styling for the Impressum / privacy / terms pages.
 *
 * These are plain documents, not part of the game, so they deliberately skip
 * the game's custom cursor and locked scrolling — people need to be able to
 * read, select and print them.
 */

:root {
  --font-ui: 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif;
  --bg: #0d0e18;
  --panel: #12142244;
  --accent: #4de1c1;
  --accent2: #7c6cff;
  --text: #e8ecf8;
  --muted: #8b90ad;
  --line: #ffffff14;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  /* A soft glow behind the header, echoing the game menu's backdrop. */
  background-image: radial-gradient(
    ellipse 900px 500px at 50% -100px,
    #7c6cff1f,
    transparent 70%
  );
  background-repeat: no-repeat;
}

/* ---- Top bar ---- */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 24px;
  background: #0d0e18e8;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.langs {
  display: flex;
  gap: 6px;
}

.langs button {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.langs button:hover {
  color: var(--text);
  border-color: #ffffff33;
}

.langs button.active {
  color: #0d0e18;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

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

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.updated {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 40px;
}

h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 44px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  letter-spacing: -0.3px;
}

h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 26px 0 8px;
  color: var(--accent);
}

p {
  margin-bottom: 14px;
}

ul,
ol {
  margin: 0 0 16px 22px;
}

li {
  margin-bottom: 7px;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid #4de1c155;
}

a:hover {
  border-bottom-color: var(--accent);
}

strong,
b {
  font-weight: 700;
}

/* Address blocks in the Impressum and "controller" sections. */
address {
  font-style: normal;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  line-height: 1.8;
}

/* A short definition-style table, e.g. "what data / why / how long". */
.facts {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14.5px;
}

.facts th,
.facts td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--line);
}

.facts th {
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  width: 34%;
}

/* Callout for the things the operator still has to fill in or act on. */
.note {
  background: #7c6cff14;
  border: 1px solid #7c6cff44;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14.5px;
}

/*
 * A blank the site operator must fill in. Deliberately loud: an unfinished
 * Impressum is a legal problem, so it should be impossible to overlook when
 * the page is opened.
 */
.fill {
  display: inline-block;
  background: #ffb02e22;
  border: 1px dashed #ffb02e;
  border-radius: 4px;
  padding: 0 7px;
  color: #ffc960;
  font-weight: 500;
  font-size: 0.92em;
  white-space: nowrap;
}

/* ---- Bottom links ---- */

footer {
  border-top: 1px solid var(--line);
  padding: 26px 24px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

footer nav {
  display: flex;
  gap: 8px 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

footer a {
  border-bottom: none;
}

footer a:hover {
  color: var(--text);
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  main {
    padding: 32px 18px 60px;
  }

  .facts th {
    width: auto;
    white-space: normal;
  }
}

/* Printing a policy should give a clean, light document. */
@media print {
  body {
    background: #fff;
    color: #000;
    background-image: none;
  }

  header,
  footer,
  .langs {
    display: none;
  }

  a {
    color: #000;
  }

  h3 {
    color: #000;
  }
}
