/*
 * Shared styling for the static legal pages (terms.html, privacy.html).
 *
 * These pages are plain files under public/ on purpose: the root layout
 * replaces every Next.js route with the Steam stub (buildMode.isWebStub),
 * and Discord/Steam need these URLs to resolve no matter which build or
 * stub state the site is in. Nothing here may depend on the app bundle.
 *
 * Palette copied from features/landing/WebStubPage.tsx so the pages read as
 * part of the same site.
 */

:root {
  --bg: #312e2b;
  --panel: #3a3733;
  --text: #f0ece4;
  --muted: #a29c93;
  --gold: #c4943a;
  --rule: #4a4540;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 20px 96px;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.wrap { max-width: 760px; margin: 0 auto; }

header.masthead {
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}

header.masthead a.home {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 20px;
}

header.masthead a.home:hover { color: var(--gold); }

h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.updated {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}

h2 {
  margin: 44px 0 12px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

h2 .num {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  margin-right: 10px;
}

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

p, li { color: #ded8ce; }

a { color: var(--gold); }

ul { padding-left: 22px; }

li { margin: 6px 0; }

/* Identity block and any other call-out panel. */
.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}

.panel p { margin: 4px 0; }

dl.facts {
  display: grid;
  grid-template-columns: minmax(150px, auto) 1fr;
  gap: 6px 20px;
  margin: 0;
}

dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

@media (max-width: 520px) {
  dl.facts { grid-template-columns: 1fr; gap: 0 0; }
  dl.facts dt { margin-top: 10px; font-size: 13px; }
}

/* Points the reader must not skim past — used sparingly. */
.notice {
  border-left: 3px solid var(--gold);
  background: rgba(196, 148, 58, 0.07);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 6px 6px 0;
}

.notice p { margin: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 15px;
}

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

th { color: var(--muted); font-weight: 600; }

footer.foot {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}
