@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; }

:root {
  --cream: #F6F0E1;
  --cream2: #EFE4C8;
  --ink: #211C14;
  --ink-soft: #54503f;
  --forest: #24382A;
  --forest-deep: #152018;
  --sage: #7C9473;
  --terracotta: #C1592E;
  --line: #DED0AA;
  --white: #FFFDF7;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

/* ── nav ── */

.legal-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(14px,2vw,22px) clamp(20px,5vw,64px);
  background: rgba(246,240,225,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}

.logo { display: inline-flex; align-items: center; gap: 0; }
.logo-word {
  font-family: 'Instrument Serif', serif;
  font-size: 26px; font-weight: 400; letter-spacing: -0.3px;
  color: #152018; line-height: 1;
}
.logo-mark { display: block; margin-left: 3px; flex-shrink: 0; }

.legal-nav-links { display: flex; align-items: center; gap: clamp(14px,3vw,28px); flex-wrap: wrap; }
.nav-link {
  color: var(--ink); font-weight: 600; font-size: 14.5px; transition: color 0.15s;
}
.nav-link:hover { color: var(--forest); }
.nav-link.is-current { color: var(--forest); border-bottom: 1.5px solid var(--forest); padding-bottom: 2px; }

/* ── hero ── */

.legal-hero {
  position: relative; overflow: hidden;
  padding: clamp(40px,7vw,72px) clamp(20px,5vw,64px) clamp(28px,4vw,40px);
  max-width: 1200px; margin: 0 auto;
}
.legal-hero-mark {
  position: absolute; top: -20px; right: clamp(-20px,2vw,40px);
  opacity: 0.06; pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.6px; font-weight: 800;
  color: var(--sage); margin: 0 0 14px;
}
.eyebrow::before {
  content: ''; width: 16px; height: 1.5px; background: var(--sage);
}
h1.legal-title {
  font-family: 'Instrument Serif', serif; font-size: clamp(38px,6vw,58px);
  color: var(--forest-deep); letter-spacing: -0.5px; max-width: 14ch;
}
.legal-updated { margin-top: 14px; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.legal-intro { margin-top: 18px; font-size: 16.5px; color: var(--ink-soft); max-width: 62ch; }

.legal-crosslink {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; color: var(--forest);
  border: 1.5px solid var(--line); background: var(--white);
  padding: 9px 16px; border-radius: 100px; transition: border-color 0.15s, background 0.15s;
}
.legal-crosslink:hover { border-color: var(--forest); background: var(--cream2); }

/* ── layout ── */

.legal-body {
  max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(20px,5vw,64px) clamp(60px,8vw,96px);
  display: grid; grid-template-columns: 220px minmax(0,1fr); gap: clamp(24px,4vw,64px);
  align-items: start;
}

.legal-toc {
  position: sticky; top: 96px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 18px; border-radius: 16px;
  background: var(--cream2); border: 1px solid var(--line);
  max-height: calc(100vh - 130px); overflow-y: auto;
}
.legal-toc p {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 800;
  color: var(--ink-soft); margin: 0 0 8px;
}
.legal-toc a {
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  padding: 6px 8px; border-radius: 8px; transition: background 0.15s, color 0.15s;
  line-height: 1.35;
}
.legal-toc a:hover { background: rgba(255,255,255,0.6); color: var(--forest); }

.legal-content { min-width: 0; max-width: 720px; }

.legal-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--white); border: 1.5px dashed rgba(193,89,46,0.45);
  border-radius: 14px; padding: 16px 18px; margin: 0 0 40px;
}
.legal-note svg { flex-shrink: 0; margin-top: 2px; color: var(--terracotta); }
.legal-note p { font-size: 14px; color: var(--ink-soft); }
.legal-note strong { color: var(--terracotta-deep, #9C4522); }

section.legal-section { padding: 30px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
section.legal-section:last-of-type { border-bottom: none; }

.section-num {
  font-family: 'Instrument Serif', serif; font-style: italic; font-size: 15px;
  color: var(--sage); font-weight: 400; display: block; margin-bottom: 4px;
}
h2.legal-h2 {
  font-family: 'Instrument Serif', serif; font-size: clamp(23px,3vw,28px);
  color: var(--forest-deep); margin-bottom: 14px; letter-spacing: -0.2px;
}
h3.legal-h3 {
  font-family: 'Manrope', sans-serif; font-size: 15.5px; font-weight: 800;
  color: var(--forest); margin: 20px 0 8px;
}

.legal-content p { font-size: 15.5px; color: var(--ink); margin: 0 0 14px; }
.legal-content p:last-child { margin-bottom: 0; }

.legal-content ul, .legal-content ol { margin: 0 0 14px; padding-left: 0; list-style: none; }
.legal-content li {
  position: relative; padding-left: 24px; margin-bottom: 9px;
  font-size: 15.5px; color: var(--ink);
}
.legal-content li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--sage);
}
.legal-content li:last-child { margin-bottom: 0; }

.legal-content a.inline-link { color: var(--forest); font-weight: 700; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.legal-content a.inline-link:hover { text-decoration-color: var(--forest); }

.legal-content strong { color: var(--forest-deep); font-weight: 700; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.pill {
  font-size: 12.5px; font-weight: 700; color: var(--forest);
  background: var(--cream2); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 100px;
}

.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 24px; margin-top: 8px;
}
.contact-card p { font-size: 14.5px; }
.contact-card .contact-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact-card .contact-row:last-child { border-bottom: none; }
.contact-card .contact-label { color: var(--ink-soft); font-weight: 700; font-size: 13px; }
.contact-card .contact-value { font-weight: 700; }

/* ── footer ── */

.legal-footer { background: var(--forest-deep); color: #C8D2C2; padding: clamp(40px,6vw,64px) clamp(20px,5vw,64px) 28px; }
.legal-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.legal-footer p.tag { font-size: 13.5px; margin: 12px 0 0; }
.legal-footer .col-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 800;
  color: #8FA283; margin: 0 0 14px;
}
.footer-link { color: #C8D2C2; font-size: 14px; transition: color 0.15s; display: block; margin-bottom: 10px; }
.footer-link:hover { color: var(--white); }
.legal-footer .copyright { font-size: 12.5px; color: #7C8A76; margin: 20px 0 0; text-align: center; }

/* ── responsive ── */

@media (max-width: 860px) {
  .legal-body { grid-template-columns: 1fr; }
  .legal-toc { position: static; max-height: none; }
}

.logo-wordmark { display: block; height: 30px; width: auto; }
