/* Legal / support document pages (privacy.html, support.html).
   Matches the Sparkfall dark theme; stays highly readable and printable.
   These pages keep the legacy class names (header.site, main.page, ...). */

:root {
  --bg: #07070f;
  --surface: #0b0b18;
  --text: #eceaf6;
  --text-secondary: #a7a3bd;
  --border: rgba(255, 255, 255, 0.1);
  --link: #22d3ee;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "PingFang SC", "Hiragino Sans", "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 780px; margin: 0 auto; padding: 0 24px; }

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
  background: linear-gradient(100deg, #a78bfa, #60a5fa 45%, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

nav.site a,
.site-nav > a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  margin-inline-start: 20px;
}

nav.site a:hover,
.site-nav > a:hover { color: var(--text); }

.site-nav { display: flex; align-items: center; }

.brand-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-inline-end: 7px;
  background: linear-gradient(120deg, #a78bfa, #22d3ee);
  vertical-align: 1px;
}

/* Language dropdown (details/summary) */
details.lang { position: relative; margin-inline-start: 20px; }

details.lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
}

details.lang summary::-webkit-details-marker { display: none; }

details.lang[open] summary { color: var(--text); }

.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  min-width: 170px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  z-index: 60;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.lang-menu a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

.lang-menu a:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }

.lang-menu a[aria-current="true"] { color: #22d3ee; }

.crumb { margin: 0 0 22px; font-size: 0.9rem; }

.crumb a { color: var(--text-secondary); text-decoration: none; }

.crumb a:hover { color: var(--text); }

main.page { padding: 44px 0 72px; }

main.page h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

main.page .subtitle {
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin: 0 0 26px;
}

main.page h2 { font-size: 1.18rem; margin-top: 2.2em; }

main.page h3 { font-size: 1.02rem; margin-top: 1.8em; }

main.page a { color: var(--link); }

main.page p { color: var(--text-secondary); }

main.page strong { color: var(--text); }

.updated { color: var(--text-secondary); font-size: 0.9rem; }

hr {
  margin: 3em 0;
  border: none;
  border-top: 1px solid var(--border);
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 26px 0 40px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  background: var(--surface);
}

footer.site a { color: var(--text-secondary); }

@media print {
  :root { --bg: #fff; --surface: #fff; --text: #111; --text-secondary: #333; --link: #0645ad; }
  .brand { color: #111; background: none; -webkit-background-clip: initial; background-clip: initial; }
}
