/* Generals Tactics — shared styles for the Privacy, Support and landing pages.
   Palette, radii and type scale are lifted from the app's own DesignTokens.swift
   (SharedColor.brass, DialogColor.*, CornerRadius.*) so the web pages read as the
   same product as the game. Deliberately dark-only: the app's UI is dark. */

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/oswald-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  /* DesignTokens.DialogColor.background / panelBackground / cardBackground */
  --bg: #141A24;
  --panel: #1F242E;
  --card: #262B38;
  /* DesignTokens.SharedColor.brass and its dialog light/dark variants */
  --brass: #C79E61;
  --brass-light: #E0B87A;
  /* DesignTokens.DialogColor.textPrimary / textSecondary / textMuted */
  --text: #F2F2F2;
  --text-2: #BFBFBF;
  --muted: #8C8C8C;
  --footer: #6E7480;
  --hairline: rgba(255, 255, 255, 0.08);
  --display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --body: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bg);
  /* The faint grid is the game board's own 64pt tileSize (GlobalSettings.tileSize). */
  background-image:
    linear-gradient(rgba(199, 158, 97, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 158, 97, 0.03) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brass); text-decoration: none; border-bottom: 1px solid rgba(199, 158, 97, 0.35); }
a:hover { color: var(--brass-light); border-bottom-color: var(--brass-light); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--hairline); background: rgba(20, 26, 36, 0.92); }

.site-header .inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 11px; border-bottom: none; }
.brand img { display: block; width: 30px; height: 30px; border-radius: 7px; border: 1px solid rgba(199, 158, 97, 0.28); }
.brand span {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text);
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 26px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.site-nav a { color: var(--muted); border-bottom: none; padding-bottom: 3px; }
.site-nav a:hover { color: var(--brass-light); }
.site-nav a[aria-current] { color: var(--brass); border-bottom: 1px solid var(--brass); }

/* ---------- Page shell ---------- */

main { max-width: 780px; margin: 0 auto; padding: 68px 32px 88px; display: flex; flex-direction: column; gap: 42px; }

.hero { display: flex; flex-direction: column; gap: 16px; }
.eyebrow {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass);
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 46px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.06;
}
.hero p { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.75; color: var(--text-2); text-wrap: pretty; }

.stamp-row { display: flex; align-items: center; gap: 12px; }
.stamp {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid rgba(199, 158, 97, 0.34);
  background: rgba(199, 158, 97, 0.08);
  color: var(--brass);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.rule { flex-grow: 1; height: 1px; background: linear-gradient(90deg, rgba(199, 158, 97, 0.34), transparent); }

.lede {
  padding: 26px 30px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--brass);
  background: linear-gradient(180deg, rgba(38, 43, 56, 0.75), rgba(31, 36, 46, 0.5));
}
.lede p { margin: 0; font-size: 16px; line-height: 1.78; color: #D8D8D8; text-wrap: pretty; }

/* ---------- Numbered policy sections ---------- */

.policy { counter-reset: section; display: flex; flex-direction: column; gap: 40px; }
.policy section { counter-increment: section; display: flex; gap: 20px; }
.policy section::before {
  content: counter(section, decimal-leading-zero);
  flex-shrink: 0;
  width: 30px;
  padding-top: 3px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(199, 158, 97, 0.55);
}
.policy .body { display: flex; flex-direction: column; gap: 10px; }
.policy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text);
}
.policy p { margin: 0; font-size: 15px; line-height: 1.78; color: var(--text-2); text-wrap: pretty; }

/* ---------- Cards ---------- */

.callout {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px 30px;
  border-radius: 12px;
  border: 1px solid rgba(199, 158, 97, 0.26);
  background: linear-gradient(135deg, rgba(199, 158, 97, 0.10), rgba(38, 43, 56, 0.4));
  box-shadow: 0 0 40px rgba(199, 158, 97, 0.06);
  flex-wrap: wrap;
}
.callout .icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(199, 158, 97, 0.34);
  background: rgba(199, 158, 97, 0.10);
}
.callout .text { display: flex; flex-direction: column; gap: 6px; flex: 1 1 260px; }
.callout .title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text);
}
.callout .text p { margin: 0; font-size: 15px; line-height: 1.72; color: var(--text-2); text-wrap: pretty; }

/* ---------- FAQ ---------- */

.faq-head { display: flex; align-items: center; gap: 16px; }
.faq-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.faq { display: flex; flex-direction: column; gap: 10px; }

.faq details {
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: rgba(38, 43, 56, 0.5);
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex-shrink: 0;
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}
.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq details[open] summary { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.faq .answer { display: flex; flex-direction: column; gap: 12px; padding: 18px 24px 22px; }
.faq .answer p { margin: 0; font-size: 15px; line-height: 1.78; color: var(--text-2); text-wrap: pretty; }
.faq em { color: #D8D8D8; font-style: normal; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 26px 32px 40px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--footer);
}

/* ---------- Landing ---------- */

.landing {
  min-height: 100vh;
  background-image: radial-gradient(ellipse 70% 55% at 50% 42%, rgba(199, 158, 97, 0.13), transparent 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 32px 64px;
  gap: 84px;
}
.landing .stack { display: flex; flex-direction: column; align-items: center; gap: 28px; max-width: 620px; }
.landing .plinth {
  padding: 7px;
  border-radius: 30px;
  border: 1px solid rgba(199, 158, 97, 0.34);
  background: rgba(199, 158, 97, 0.07);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 60px rgba(199, 158, 97, 0.12);
}
.landing .plinth img { display: block; width: 104px; height: 104px; border-radius: 23px; }
.landing .titles { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.landing h1 { font-size: 60px; letter-spacing: 0.055em; }
.landing .divider { width: 88px; height: 1px; background: linear-gradient(90deg, transparent, var(--brass), transparent); }
.landing p { margin: 0; max-width: 470px; font-size: 16px; line-height: 1.72; color: var(--text-2); text-wrap: pretty; }
.landing .actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.landing .site-footer { border-top: none; padding: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 30px;
  border-radius: 10px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.btn-primary { border: 1px solid rgba(199, 158, 97, 0.5); background: rgba(199, 158, 97, 0.09); color: var(--brass); }
.btn-primary:hover { border-color: var(--brass-light); background: rgba(199, 158, 97, 0.15); }
.btn-secondary { border: 1px solid rgba(255, 255, 255, 0.13); background: rgba(255, 255, 255, 0.03); color: var(--text); border-bottom-color: rgba(255, 255, 255, 0.13); }
.btn-secondary:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); }

/* ---------- Small screens ---------- */

@media (max-width: 700px) {
  .site-header .inner { padding: 16px 20px; gap: 14px; }
  .brand span { font-size: 14px; letter-spacing: 0.1em; }
  .site-nav { gap: 18px; }
  main { padding: 44px 20px 64px; gap: 34px; }
  h1 { font-size: 32px; }
  .landing { padding: 64px 20px 48px; gap: 56px; }
  .landing h1 { font-size: 38px; }
  .landing .plinth img { width: 88px; height: 88px; border-radius: 20px; }
  .lede, .callout { padding: 22px; }
  .policy section { gap: 14px; }
  .policy section::before { width: 24px; font-size: 12px; }
  .faq summary, .faq .answer { padding-left: 18px; padding-right: 18px; }
  .btn { padding: 0 22px; }
}
