/* ═══════════════════════════════════════════════════════════════
   legal.css — Shared styles for static legal pages
   Loaded by: terms.html, privacy.html
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --bg: #1a1a2e; --panel: #232342; --line: rgba(232,184,109,0.14);
  --accent: #e8b86d; --accent-dim: #a98552; --fg: #efe9dc;
  --muted: #8a85a3; --violet: #9b94b8;
}
html[data-theme="light"] {
  --bg: #f5f1e8; --panel: #fbf8f1; --line: rgba(154,107,26,0.18);
  --accent: #9a6b1a; --accent-dim: #8d5c17; --fg: #1c1724;
  --muted: #8a8497; --violet: #746a86;
}

html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Mono', ui-monospace, Menlo, Monaco, monospace;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }

.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 24px clamp(20px, 6vw, 86px);
  border-bottom: 1px solid var(--line);
}
.site-footer { border-top: 1px solid var(--line); border-bottom: 0; }

.brand { display: inline-flex; gap: 14px; align-items: baseline; }
.brand-name {
  color: var(--accent);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 700;
}
.brand-space, .site-footer a, .site-footer p {
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

main {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(52px, 8vw, 92px) 0;
}
h1, h2 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.05;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 {
  margin-top: 42px;
  color: var(--fg);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}
.meta {
  margin-top: 14px;
  color: var(--violet);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
p, li { color: var(--muted); font-size: 0.95rem; }
p { margin-top: 16px; }
ul { margin: 14px 0 0 22px; }
strong { color: var(--fg); }

@media (max-width: 620px) {
  .site-header, .site-footer { align-items: flex-start; flex-direction: column; padding-inline: 16px; }
  main { width: calc(100% - 32px); }
}
