/*
 * legal.css — shared styles for /privacy/ and /terms/.
 *
 * Those two pages had a 98.3% identical inline stylesheet, differing by one rule. That, not the
 * overlap with site.css, was the real duplication: they share only ~10 of 30 rules with the main
 * design and have their own nav (a back-link breadcrumb) and prose layout.
 *
 * Loaded AFTER site.css so these rules win where selectors collide.
 */

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

:root {
  --bg: #fffaf5;
  --bg-muted: #fdf5ea;
  --text: #1a1410;
  --text-secondary: #6b5c4a;
  --text-tertiary: #7d6a52;
  --border: rgba(0, 0, 0, 0.09);
  --border-md: rgba(0, 0, 0, 0.14);
  --accent: #d46a1a;
  --accent-bg: #fdebd0;
  --accent-text: #9a3d0a;
  --max-w: 1100px;
  --prose-w: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121210;
    --bg-muted: #242422;
    --text: #f0f0ec;
    --text-secondary: #9a9a92;
    --text-tertiary: #6a6a62;
    --border: rgba(255, 255, 255, 0.08);
    --accent: #e07a2a;
    --accent-bg: #2a1a08;
    --accent-text: #f0a060;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-back {
  font-size: 13px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
  text-decoration: none;
}
.nav-back:hover {
  color: var(--text-secondary);
  text-decoration: none;
}
.nav-back svg {
  width: 14px;
  height: 14px;
}

.nav-sep {
  color: var(--text-tertiary);
  font-size: 13px;
}
.nav-page {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* ── PROSE ── */
.prose-wrap {
  max-width: var(--prose-w);
  margin: 0 auto;
  padding: 72px 40px 96px;
}

.prose-eyebrow {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--accent-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.prose-wrap h1 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}

.effective-date {
  font-size: 13px;
  color: var(--text-tertiary);
  font-family: "DM Mono", monospace;
  margin-bottom: 48px;
}

.prose-wrap h2 {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.prose-wrap h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 8px;
}

.prose-wrap p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.prose-wrap ul {
  margin: 12px 0 16px 20px;
}

.prose-wrap ul li {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 4px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
footer p {
  font-size: 13px;
  color: var(--text-tertiary);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color 0.15s;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .nav-inner {
    padding: 0 20px;
  }
  .prose-wrap {
    padding: 48px 20px 72px;
  }
  .footer-inner {
    padding: 20px;
  }
}
    

/* ── Neutralise what site.css imposes ──
 * site.css styles `nav` and `footer` as the layout elements themselves. These pages instead use
 * an inner wrapper (.nav-inner, .footer-inner) for layout, so inheriting site.css's padding and
 * height would double them. Reset those three, explicitly, rather than by accident.
 *
 * Only display/height/padding need resetting. The flex properties site.css also sets on nav and
 * footer (justify-content, align-items, gap, flex-wrap) are inert once display is block, and the
 * extra :root variables it defines are simply unused here.
 */
body {
  max-width: none;
  margin: 0;
}
nav {
  display: block;
  height: auto;
  padding: 0;
}
footer {
  display: block;
  padding: 0;
}
