/* Soul Hunter legal pages (nimritagames.com/soulhunter/...).
   Self-contained: the only web font (Cinzel, SIL OFL, see Cinzel-OFL.txt) is served from this folder,
   so reading the privacy policy sends nothing to a third party. Body text uses the reader's system font. */

@font-face {
  font-family: "Cinzel";
  src: url("Cinzel-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #1b1210;        /* banked coal */
  --panel: #251915;     /* the nav strip and the contact box */
  --text: #ece2d0;      /* parchment */
  --muted: #b9a994;     /* dates and side notes */
  --gold: #e0b25a;      /* links and headings: the game's soul-gold */
  --ember: #c2412d;     /* the one rule under the title */
  --line: #3d2a23;
  --focus: #f5cf7a;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2eee8;
    --panel: #e7e0d6;
    --text: #24170f;
    --muted: #5e4c3e;
    --gold: #8a2a1c;
    --ember: #a3381f;
    --line: #d3c8ba;
    --focus: #8a2a1c;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

a { color: var(--gold); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--panel);
  padding: 0.5rem 0.75rem;
}
.skip:focus { top: 0.75rem; }

/* Header: the game's mark and name */
.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.75rem 0 1.25rem;
  text-decoration: none;
  color: var(--text);
}
.brand img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  flex: none;
}
.brand-name {
  display: block;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.brand-studio { display: block; color: var(--muted); font-size: 0.9375rem; }

/* The two documents */
.docs {
  display: flex;
  gap: 0.25rem;
  background: var(--panel);
  border-radius: 0.5rem;
  padding: 0.25rem;
}
.docs a {
  flex: 1;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}
.docs a[aria-current="page"] { background: var(--bg); color: var(--text); }

/* The page title: the one bold moment */
main { padding: 2.5rem 0 1rem; }

h1 {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 800;
  font-size: clamp(2.125rem, 7vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--ember);
  max-width: 16ch;
}

.updated { color: var(--muted); margin: 1rem 0 2rem; }

.lead { font-size: 1.1875rem; line-height: 1.6; }

h2 {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--gold);
  margin: 2.5rem 0 0.5rem;
}

p, ul { margin: 0 0 1rem; max-width: 66ch; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.375rem; }
strong { font-weight: 650; }

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 1.5rem 0 0.375rem;
}

/* The short version at the top: a summary, not the policy itself */
.summary {
  border-left: 3px solid var(--gold);
  background: var(--panel);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
}
.summary h2 { margin-top: 0; }
.summary ul { margin-bottom: 0.5rem; }
.summary .note { color: var(--muted); font-size: 0.9375rem; margin: 0; }

/* Contents list for the long documents */
.toc ul { columns: 2 16rem; column-gap: 2rem; padding-left: 1.25rem; }
.toc li { break-inside: avoid; }

/* Data tables: scroll sideways on a narrow phone instead of breaking the page */
.table-scroll { overflow-x: auto; margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.table-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.contact {
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--panel);
  border-radius: 0.5rem;
}
.contact h2 { margin-top: 0; }
.contact p:last-child { margin-bottom: 0; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 1.25rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
footer p { margin: 0 0 0.5rem; }

@media print {
  :root { --bg: #fff; --panel: #fff; --text: #000; --muted: #333; --gold: #000; --ember: #000; }
  .docs, .skip { display: none; }
}

/* ---- Game page (nimritagames.com/soulhunter/) --------------------------
   Same palette and fonts as the legal pages; only the game page uses these. */

.page-wide { max-width: 60rem; }

.hero-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 2px solid var(--line);
  margin: 0 0 1.5rem;
}

.tagline {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 800;
  font-size: clamp(1.25rem, 4vw, 1.625rem);
  line-height: 1.25;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.status {
  display: inline-block;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 0.25rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.button-primary { background: var(--ember); border-color: var(--ember); color: #fff7ea; }
.button:hover { text-decoration: underline; }

/* The two steps to join the test */
.steps { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; max-width: none; }
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 0;
}
.step h3 { margin: 0 0 0.375rem; font-family: "Cinzel", Georgia, serif; font-weight: 800; color: var(--gold); }
.step p { margin: 0 0 0.75rem; }
.step .button { margin-top: 0.25rem; }
.fineprint { color: var(--muted); font-size: 0.9375rem; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 0.75rem; margin: 1rem 0 0; }
.shots img { width: 100%; height: auto; display: block; border-radius: 0.5rem; border: 1px solid var(--line); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1rem 0 0; }
.feature { background: var(--panel); border-radius: 0.5rem; padding: 1rem 1.25rem; }
.feature h3 { margin: 0 0 0.375rem; }
.feature p { margin: 0; color: var(--muted); }
