/* legal.css — Privacy Policy and Support pages for scvblackjack.com
 *
 * Content-only. No webfonts (CSP font-src 'none'), no inline style
 * (CSP style-src 'self'), no third-party assets.
 * Color and type tokens are copied from the RC4.6.3 game stylesheet
 * (assets/index-BxqeY6R-.css). Header accent uses scvhq royal purple
 * and gold. Dark is the default, matching the game; light follows
 * prefers-color-scheme.
 */

:root {
  --bj-font-serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --bj-font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bj-focus-w: 3px;
  --bj-focus-gap: 3px;
  --bj-radius: 12px;
  --bj-tap: 44px;
  --sc-purple-700: #4e2a84;
  --sc-purple-900: #2a1650;
}

/* Dark default (game look). */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bj-bg: #0c110f;
  --bj-surface: #141b18;
  --bj-text: #f3efe4;
  --bj-muted: #c9c2ae;
  --bj-line: #36433c;
  --bj-gold-text: #e6c877;
  --bj-focus: #ffd76a;
  --bj-ph-bg: #3b2f00;
  --bj-ph-text: #ffeaa0;
  --bj-header-rule: #4e2a84;
  --bj-header-gold: #d9b45a;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bj-bg: #f6f1e6;
    --bj-surface: #fffdf8;
    --bj-text: #1d1a14;
    --bj-muted: #4a4336;
    --bj-line: #d6ccb4;
    --bj-gold-text: #6e500c;
    --bj-focus: #6b4c00;
    --bj-ph-bg: #fff1c2;
    --bj-ph-text: #3d2e00;
    --bj-header-rule: #4e2a84;
    --bj-header-gold: #8a6516;
  }
}

[data-theme="light"] {
  color-scheme: light;
  --bj-bg: #f6f1e6;
  --bj-surface: #fffdf8;
  --bj-text: #1d1a14;
  --bj-muted: #4a4336;
  --bj-line: #d6ccb4;
  --bj-gold-text: #6e500c;
  --bj-focus: #6b4c00;
  --bj-ph-bg: #fff1c2;
  --bj-ph-text: #3d2e00;
  --bj-header-rule: #4e2a84;
  --bj-header-gold: #8a6516;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--bj-bg);
}

body {
  min-height: 100vh;
  font-family: var(--bj-font-serif);
  color: var(--bj-text);
  background: var(--bj-bg);
  line-height: 1.55;
}

:focus-visible {
  outline: var(--bj-focus-w) solid var(--bj-focus);
  outline-offset: var(--bj-focus-gap);
}

a {
  color: var(--bj-gold-text);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.85rem;
  background: var(--bj-surface);
  color: var(--bj-text);
  border: 1px solid var(--bj-header-gold);
  border-radius: 8px;
  font-family: var(--bj-font-sans);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.site-header,
.legal,
.site-footer {
  width: min(44rem, 100%);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--bj-line);
  box-shadow: inset 0 3px 0 var(--bj-header-gold), inset 0 6px 0 var(--bj-header-rule);
}

.brand {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.brand a {
  color: var(--bj-text);
  text-decoration: none;
}

.brand a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.brand .brass {
  color: var(--bj-gold-text);
}

.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--bj-font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--bj-tap);
  padding: 0.35rem 0.65rem;
  text-decoration: none;
  border-radius: 8px;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  text-decoration: underline;
}

.site-header nav a[aria-current="page"] {
  color: var(--bj-text);
  box-shadow: inset 0 -2px 0 var(--bj-header-gold);
}

.legal {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.legal h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.85rem, 1.5rem + 1.6vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.legal h2 {
  margin: 1.85rem 0 0.65rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.legal h3 {
  margin: 1.25rem 0 0.45rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.legal p,
.legal li {
  font-size: 1.0625rem;
}

.legal p {
  margin: 0 0 0.9rem;
}

.legal ul {
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
}

.legal li {
  margin: 0 0 0.45rem;
}

.legal li:last-child {
  margin-bottom: 0;
}

mark.placeholder {
  background: var(--bj-ph-bg);
  color: var(--bj-ph-text);
  font-family: var(--bj-font-sans);
  font-size: 0.92em;
  font-weight: 700;
  font-style: normal;
  padding: 0.05em 0.4em;
  border-radius: 4px;
  border: 1px dashed currentColor;
  letter-spacing: 0.01em;
  white-space: normal;
}

.site-footer {
  padding-top: 0.85rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--bj-line);
  font-family: var(--bj-font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--bj-tap);
}

@media (max-width: 639px) {
  .site-header {
    align-items: flex-start;
    padding-top: 1.15rem;
  }

  .site-header nav ul {
    width: 100%;
  }

  .legal h2 {
    font-size: 1.25rem;
  }
}

/* Visible placeholders that still need Samuel's confirmation before publish. */
.todo {
  display: inline;
  background: var(--bj-ph-bg);
  color: var(--bj-ph-text);
  font-weight: 600;
  padding: 0 0.25em;
}
