:root {
  --bg: #0b0b0d;
  --bg-alt: #131316;
  --text: #f2f2f0;
  --muted: #8c8578;
  /* Same taupe family as --muted, lifted for body-length copy on the dark
     ground. --muted stays for small uppercase labels, where the extra
     weight of the lifted value reads as too loud. */
  --muted-strong: #a39a8a;
  --accent: #1c4a2c;
  --accent-bright: #6bcf85;
  --border: #232327;
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  position: relative;
}

/* film-grain overlay, matching shorthandproductions.com */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 2.2 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
}

header.top {
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 20px;
  height: auto;
  color: #ffffff;
  opacity: 0.92;
  flex: none;
}

.wordmark {
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.wordmark .dim {
  color: var(--muted);
  font-weight: 300;
}

nav a {
  color: var(--muted-strong);
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 2rem;
  transition: color 0.15s ease;
}

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

main {
  flex: 1;
}

footer {
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted-strong);
}

footer a {
  color: var(--muted-strong);
  text-decoration: none;
}

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

@media (max-width: 480px) {
  header.top { flex-direction: column; gap: 1rem; align-items: flex-start; }
  nav a { margin-left: 0; margin-right: 1.5rem; }
  footer { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* ---------- Legal pages (Privacy/Terms) ---------- */

.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem clamp(1.5rem, 5vw, 4rem) 6rem;
}

.legal-main h1 {
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 3rem;
}

.legal-main h2 {
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  margin: 2.5rem 0 0.75rem;
  scroll-margin-top: 1.5rem;
}

.legal-toc {
  margin: 0 0 3rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.legal-toc h2 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.legal-toc li {
  margin-bottom: 0.3rem;
  font-size: 0.875rem;
}

.legal-toc a {
  color: var(--text);
  text-decoration: none;
}

.legal-toc a:hover { color: var(--accent-bright); }

.legal-main p, .legal-main li {
  line-height: 1.7;
  color: var(--text);
  font-size: 0.95rem;
}

.legal-main p { margin: 0 0 1rem; }

.legal-main ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.legal-main li { margin-bottom: 0.4rem; }

.legal-main a { color: var(--accent-bright); }

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