/* Shared styles for static pages: about, terms, privacy */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0e0b06;
  --bg2:     #141009;
  --accent:  #C5A059;
  --txt-1:   #f0e6d3;
  --txt-2:   #b0a08a;
  --txt-3:   #7a6e5e;
  --border:  rgba(197,160,89,0.15);
  --font-body: 'Space Grotesk', sans-serif;
  --font-disp: 'Playfair Display', Georgia, serif;
  --max:     760px;
}

body {
  background: var(--bg);
  color: var(--txt-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Page header ─────────────────────────────────────────── */
.page-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 100%;
}
.page-header__brand {
  font-family: var(--font-disp);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.page-header__brand:hover { text-decoration: none; opacity: 0.85; }
.page-header__back {
  font-size: 13px;
  color: var(--txt-3);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.page-header__back:hover { color: var(--txt-1); text-decoration: none; }

/* ── Main content ────────────────────────────────────────── */
.page-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.page-hero {
  margin-bottom: 56px;
}
.page-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.page-hero__title {
  font-family: var(--font-disp);
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--txt-1);
  margin-bottom: 20px;
}
.page-hero__lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--txt-2);
  max-width: 600px;
}

/* ── Sections ────────────────────────────────────────────── */
.page-section {
  margin-bottom: 48px;
}
.page-section h2 {
  font-family: var(--font-disp);
  font-size: 24px;
  font-weight: 600;
  color: var(--txt-1);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.page-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  margin: 24px 0 8px;
  letter-spacing: 0.03em;
}
.page-section p {
  color: var(--txt-2);
  margin-bottom: 14px;
}
.page-section p:last-child { margin-bottom: 0; }
.page-section ul, .page-section ol {
  padding-left: 22px;
  color: var(--txt-2);
  margin-bottom: 14px;
}
.page-section li { margin-bottom: 6px; }
.page-section strong { color: var(--txt-1); font-weight: 600; }

/* ── System cards (About page) ───────────────────────────── */
.system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.sys-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.sys-item__glyph {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}
.sys-item__name {
  font-weight: 600;
  color: var(--txt-1);
  font-size: 15px;
  margin-bottom: 4px;
}
.sys-item__desc {
  font-size: 13px;
  color: var(--txt-3);
  line-height: 1.5;
}

/* ── How it works steps ──────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
}
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(197,160,89,0.12);
  border: 1px solid rgba(197,160,89,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.step__body strong { color: var(--txt-1); display: block; margin-bottom: 2px; }
.step__body { color: var(--txt-2); font-size: 14px; line-height: 1.6; }

/* ── CTA box ─────────────────────────────────────────────── */
.page-cta {
  background: rgba(197,160,89,0.07);
  border: 1px solid rgba(197,160,89,0.2);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  margin: 48px 0;
}
.page-cta h2 {
  font-family: var(--font-disp);
  font-size: 26px;
  color: var(--txt-1);
  margin-bottom: 12px;
  border: none;
  padding: 0;
}
.page-cta p {
  color: var(--txt-2);
  margin-bottom: 24px;
}
.page-cta a {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent);
  color: #1a1208;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: opacity 0.15s;
}
.page-cta a:hover { opacity: 0.85; text-decoration: none; }

/* ── Footer ──────────────────────────────────────────────── */
.page-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--txt-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.page-footer a { color: var(--txt-3); }
.page-footer a:hover { color: var(--accent); text-decoration: none; }
.page-footer__sep { opacity: 0.4; }

@media (max-width: 600px) {
  .page-body { padding: 36px 16px 64px; }
  .system-grid { grid-template-columns: 1fr; }
  .page-cta { padding: 28px 20px; }
}
