:root {
  /* Dark theme — matches the main site (index.html) exactly. */
  --accent-red: #e0626d;
  --bg: #0a0a0c;
  --bg-soft: #111114;
  --panel: #16161a;
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f4f1ee;
  --text-dim: rgba(244, 241, 238, 0.72);
  --text-muted: rgba(244, 241, 238, 0.50);
  --meadow-deep: #7fbf5a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== HEADER ===== */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 10, 12, 0.82);
  border-bottom: 1px solid var(--panel-border);
}
.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-red), #f0a98f);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 800;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 26px;
}
nav a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 15px;
}
nav a:hover { color: var(--text); text-decoration: none; }

/* ===== LEGAL MAIN ===== */
main.legal {
  max-width: 760px;
  margin: 40px auto;
  background: var(--panel);
  padding: 60px 50px 80px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
}
main.legal h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}
main.legal h2 {
  font-size: 22px;
  margin: 36px 0 10px;
  color: var(--text);
  letter-spacing: -0.005em;
}
main.legal p {
  margin: 12px 0;
  color: var(--text-dim);
}
main.legal ul, main.legal ol {
  color: var(--text-dim);
  margin: 12px 0;
  padding-left: 24px;
}
main.legal li {
  margin: 8px 0;
}
main.legal strong { color: var(--text); }
main.legal em { color: var(--text); }
main.legal code {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 1px 8px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
}
.meta {
  color: var(--text-muted);
  font-size: 14px;
  margin: 4px 0 32px;
}
.callout {
  background: rgba(127, 191, 90, 0.10);
  border-left: 4px solid var(--meadow-deep);
  padding: 18px 22px;
  border-radius: 8px;
  margin: 24px 0 36px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}
.callout strong { color: var(--meadow-deep); }
.footer-back {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--panel-border);
}

/* ===== FOOTER ===== */
footer.site {
  background: var(--bg-soft);
  color: var(--text-muted);
  padding: 24px;
  margin-top: 40px;
  border-top: 1px solid var(--panel-border);
}
.footer-mini {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
}
.footer-mini a {
  color: var(--text-dim);
  margin: 0 4px;
}
.footer-mini a:hover { color: white; }

@media (max-width: 720px) {
  main.legal { padding: 36px 24px 50px; margin: 20px 12px; }
  main.legal h1 { font-size: 28px; }
  main.legal h2 { font-size: 19px; }
  nav ul { gap: 14px; }
  nav a { font-size: 14px; }
}
