/* The legal pages, dressed EXACTLY like the blog theme (isomania-blog):
 * same tokens, same masthead, same article shell and typo. The theme
 * mirrors the game's HUD palette, so one look runs game → blog → documents.
 * One external file — the strict CSP refuses anything inline. */

:root {
  --bg: #2f4a2a;
  --panel-line: rgba(255, 255, 255, 0.14);
  --text: #f4f7ea;
  --text-dim: #c6d6ac;
  --accent: #b6e86a;
  --ink: #17300f;
  --content-width: 1040px;
  --article-width: 760px;
  --side-padding: 24px;
}
@media (max-width: 768px) { :root { --side-padding: 16px; } }

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(182, 232, 106, 0.08), transparent 34%),
    linear-gradient(rgba(18, 36, 16, 0.12), rgba(18, 36, 16, 0.12)),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "pnum" on, "lnum" on;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; min-width: 0; }
.inner {
  width: 100%;
  max-width: calc(var(--content-width) + (var(--side-padding) * 2));
  margin: 0 auto;
  padding-right: var(--side-padding);
  padding-left: var(--side-padding);
}

/* masthead — the blog's compact game-HUD header */
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(30, 48, 28, 0.92);
  border-bottom: 1px solid var(--panel-line);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}
.site-header .inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo img { display: block; width: auto; max-width: min(270px, 45vw); max-height: 72px; }
.site-nav { margin-left: auto; }
.site-header .site-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-header .site-menu li { margin: 0; list-style: none; }
.site-header .site-menu a {
  display: block;
  padding: 8px 9px;
  color: var(--text-dim);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background .12s ease, color .12s ease;
}
.site-header .site-menu a:hover { color: var(--text); background: rgba(255, 255, 255, 0.09); }
.site-header-actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 640px) { .site-nav { display: none; } }

.site-languages {
  display: inline-flex;
  align-items: center;
  height: 42px;
  margin: 0;
  padding: 3px;
  list-style: none;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--panel-line);
  border-radius: 999px;
}
.site-languages li { margin: 0; list-style: none; }
.site-languages a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 47px;
  padding: 0 9px;
  color: var(--text-dim);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.4;
  text-decoration: none;
}
.site-languages a { gap: 5px; }
.site-languages a img { display: block; width: 16px; height: 12px; object-fit: cover; border-radius: 2px; }
.site-languages a:hover { color: var(--text); }
.site-languages .is-active a { color: var(--ink); background: var(--accent); }

.site-game-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 6px 12px;
  color: var(--text);
  background: #568f34;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background .15s ease;
}
.site-game-link:hover { background: #64a33b; }
.site-game-link:hover .site-game-link-arrow { transform: translate(2px, -2px); }
.site-game-link-arrow { font-size: 13px; line-height: 1; transition: transform .15s ease; }

/* the article shell and content panel, as on a blog page */
main { padding-top: 46px; }
.article-shell { width: 100%; max-width: var(--content-width); margin: 0 auto; }
.article-header { max-width: var(--article-width); margin: 0 auto 30px; }
.article-header h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(36px, 5vw, 50px);
  font-weight: 820;
  letter-spacing: -.04em;
  line-height: 1.02;
}
.article-header .updated { margin: 14px 0 0; color: var(--text-dim); font-size: 13px; font-weight: 700; }
.article-content {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 30px;
  background: rgba(30, 48, 28, .68);
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, .2);
}

/* the blog's shared prose rules */
.typo { color: var(--text); font-size: 17px; line-height: 1.75; }
.typo > *:first-child { margin-top: 0; }
.typo > *:last-child { margin-bottom: 0; }
.typo p, .typo ul, .typo ol { margin: 0 0 24px; }
.typo h2, .typo h3 { margin: 42px 0 16px; color: var(--text); font-weight: 750; line-height: 1.2; }
.typo h2 { font-size: 30px; }
.typo h3 { font-size: 24px; }
.typo b, .typo strong { color: var(--text); font-weight: 750; }
.typo a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.typo a:hover { color: var(--text); }
.typo ul { padding-left: 24px; list-style: disc; }
.typo li + li { margin-top: 8px; }
.typo li::marker { color: var(--accent); }

/* compact publisher footer */
.site-footer {
  margin-top: 72px;
  padding: 22px 0;
  color: var(--text-dim);
  background: rgba(30, 48, 28, 0.62);
  border-top: 1px solid var(--panel-line);
}
.site-footer .inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px;
}
.site-footer .site-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer .site-menu li { margin: 0; list-style: none; }
.site-footer .site-menu a { color: var(--text-dim); font-size: 13px; text-decoration: none; }
.site-footer .site-menu a:hover { color: var(--text); }
.site-footer-copy, .site-footer-credit { margin: 0; font-size: 12px; white-space: nowrap; }
.site-footer-credit a { color: var(--text-dim); text-decoration: none; }
.site-footer-credit a:hover { color: var(--text); }
@media (max-width: 640px) {
  .site-footer .inner { grid-template-columns: 1fr; gap: 10px; }
}
