/* Games Privacy Policy: shared look for the hub and every game's policy page. */
:root {
  --bg: #f6f4ef;
  --bg-2: #efece4;
  --surface: #ffffff;
  --ink: #17181c;
  --ink-2: #4a4d57;
  --ink-3: #7b7f8a;
  --line: rgba(23, 24, 28, 0.09);
  --accent: #5b5bf0;
  --accent-2: #9b6bff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(91, 91, 240, 0.1);
  --good: #12a150;
  --good-soft: rgba(18, 161, 80, 0.1);
  --warn: #c77700;
  --warn-soft: rgba(199, 119, 0, 0.12);
  --radius: 20px;
  --shadow: 0 1px 2px rgba(15, 18, 30, 0.04), 0 8px 28px rgba(15, 18, 30, 0.07);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1015;
    --bg-2: #15171e;
    --surface: #1a1c24;
    --ink: #f2f3f7;
    --ink-2: #b9bdc9;
    --ink-3: #868b99;
    --line: rgba(255, 255, 255, 0.08);
    --accent-soft: rgba(140, 140, 255, 0.14);
    --good: #3ddc84;
    --good-soft: rgba(61, 220, 132, 0.12);
    --warn: #ffb547;
    --warn-soft: rgba(255, 181, 71, 0.13);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

/* Game themes: each policy page sets one on <body>. */
.theme-rush-street {
  --accent: #ff6b2c;
  --accent-2: #ffb21e;
  --accent-soft: rgba(255, 107, 44, 0.12);
}
.theme-worldstellar {
  --accent: #3d7bff;
  --accent-2: #8a5cff;
  --accent-soft: rgba(61, 123, 255, 0.12);
}
.theme-block-bloom {
  --accent: #e2489a;
  --accent-2: #8b5cf6;
  --accent-soft: rgba(226, 72, 154, 0.12);
}
.theme-outwall {
  --accent: #14a38b;
  --accent-2: #3d7bff;
  --accent-soft: rgba(20, 163, 139, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { display: block; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #fff;
}
.back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
}
.back:hover { color: var(--ink); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; }
.hero::before {
  content: "";
  position: absolute; inset: -40% -10% auto -10%; height: 520px;
  background:
    radial-gradient(40% 60% at 20% 40%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%),
    radial-gradient(35% 55% at 80% 30%, color-mix(in srgb, var(--accent-2) 26%, transparent), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 18px 0 14px;
  max-width: 16ch;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); max-width: 60ch; margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line);
  padding: 7px 12px; border-radius: 999px;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.game-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.game-icon {
  width: 112px; height: 112px; border-radius: 30px;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--accent) 60%, transparent), inset 0 1px 0 rgba(255,255,255,0.35);
  display: grid; place-items: center; color: #fff;
}
.game-icon svg { width: 60px; height: 60px; }
@media (max-width: 640px) {
  .hero { padding: 40px 0 36px; }
  .game-hero { grid-template-columns: 1fr; gap: 18px; }
  .game-icon { width: 84px; height: 84px; border-radius: 24px; }
  .game-icon svg { width: 46px; height: 46px; }
}

/* ---------------------------------------------------------------- hub cards */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding-bottom: 72px; }
.game-card {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 24px; box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.game-card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.game-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15,18,30,0.05), 0 18px 40px rgba(15,18,30,0.12); }
.game-card .top { display: flex; gap: 16px; align-items: center; }
.game-card .game-icon { width: 64px; height: 64px; border-radius: 18px; }
.game-card .game-icon svg { width: 34px; height: 34px; }
.game-card h2 { font-size: 21px; margin: 0; letter-spacing: -0.01em; line-height: 1.2; }
.game-card .sub { font-size: 14px; color: var(--ink-3); margin: 2px 0 0; }
.game-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.tag.on { background: var(--accent-soft); color: var(--accent); }
.game-card .go { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--accent); font-size: 15px; }
.game-card .go span.arrow { transition: transform 0.2s ease; }
.game-card:hover .go span.arrow { transform: translateX(4px); }

/* ---------------------------------------------------------------- policy layout */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding: 8px 0 80px; }
@media (max-width: 920px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

.toc { position: sticky; top: 84px; align-self: start; }
.toc h3 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-size: 14.5px; line-height: 1.35;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 12px; padding-top: 2px; }
.toc a:hover, .toc a.active { background: var(--accent-soft); color: var(--accent); }
.toc a.active::before { color: var(--accent); }
@media (max-width: 920px) {
  .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
  .toc ol { columns: 2; column-gap: 12px; }
  .toc a { font-size: 14px; padding: 6px 8px; }
}
@media (max-width: 520px) { .toc ol { columns: 1; } }

/* ---------------------------------------------------------------- glance cards */
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 14px; margin-bottom: 36px; }
.g-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.g-card .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px; }
.g-card .ic svg { width: 20px; height: 20px; }
.g-card.good .ic { background: var(--good-soft); color: var(--good); }
.g-card.warn .ic { background: var(--warn-soft); color: var(--warn); }
.g-card.info .ic { background: var(--accent-soft); color: var(--accent); }
.g-card h4 { margin: 0 0 4px; font-size: 15.5px; letter-spacing: -0.005em; }
.g-card p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* ---------------------------------------------------------------- article */
.doc section {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; margin-bottom: 16px; box-shadow: var(--shadow);
  scroll-margin-top: 80px;
}
@media (max-width: 640px) { .doc section { padding: 22px 18px; } }
.doc h2 {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 22px; letter-spacing: -0.015em; line-height: 1.25; margin: 0 0 12px;
}
.doc h2 .n {
  flex: none; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 3px 8px;
}
.doc h3 { font-size: 16.5px; margin: 20px 0 6px; }
.doc p { margin: 0 0 12px; color: var(--ink-2); }
.doc p:last-child, .doc ul:last-child { margin-bottom: 0; }
.doc ul { margin: 0 0 12px; padding-left: 0; list-style: none; }
.doc ul li { position: relative; padding-left: 22px; margin: 6px 0; color: var(--ink-2); }
.doc ul li::before {
  content: ""; position: absolute; left: 4px; top: 0.72em;
  width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.doc strong { color: var(--ink); }

.table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 8px 0 4px; font-size: 14.5px; }
.table th, .table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 700; }
.table td { color: var(--ink-2); }
.table td:first-child { color: var(--ink); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }

.callout {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: var(--accent-soft); color: var(--ink); font-size: 15px; margin: 10px 0 14px;
}
.callout svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }

.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 8px; }
.partner {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg);
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14.5px;
}
.partner small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.partner:hover { border-color: var(--accent); }

.contact-card {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: #fff; border: 0 !important;
}
.contact-card h2, .contact-card p, .contact-card strong { color: #fff !important; }
.contact-card h2 .n { background: rgba(255,255,255,0.2); color: #fff; }
.contact-card a { color: #fff; font-weight: 700; }

/* ---------------------------------------------------------------- footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .game-card, .game-card .go span.arrow { transition: none; }
}
