/* ─── Shared legal pages (Privacy, Terms) ─── */
:root {
  --sage-primary: #6B8F5E;
  --sage-light: #A3C196;
  --sage-dark: #567A4B;
  --sage-deeper: #3F5A37;
  --warm-sand: #E8D5B7;
  --warm-sand-light: #F1E5CD;
  --terracotta: #D89575;
  --bg-cream: #F5F7F0;
  --bg-elevated: #F8FAF4;
  --bg-sepia: #F0EADC;
  --text-dark: #33473A;
  --text-soft: #5F6F58;
  --text-warm-gray: #8A9E7D;
  --text-sepia: #8A7D63;
  --border-light: #EEF3E8;
  --border-strong: #D5DFC9;
  --border-sepia: #E0D6BE;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 300;
  background: var(--bg-cream);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: 780px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }

/* ─── Nav (simpler than landing) ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(245, 247, 240, 0.85);
  backdrop-filter: blur(24px) saturate(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
  border-bottom: 1px solid var(--border-light);
}
.logo {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dark);
  text-decoration: none;
}
.nav-back {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 2px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-back:hover { color: var(--sage-dark); background: rgba(107, 143, 94, 0.08); }
.nav-back svg { width: 14px; height: 14px; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: var(--bg-sepia);
  border-radius: 999px;
  padding: 0.25rem;
}
.lang-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border: none;
  background: transparent;
  color: var(--text-sepia);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.lang-btn.active { background: var(--sage-deeper); color: var(--bg-cream); }

/* ─── Header ─── */
.legal-header {
  padding: 10rem 0 4rem;
  position: relative;
  z-index: 2;
}
.legal-header .eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-warm-gray);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.legal-header .eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--text-warm-gray);
}
.legal-header h1 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
}
.legal-header h1 .italic {
  font-style: italic;
  color: var(--sage-dark);
}
.legal-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  color: var(--text-warm-gray);
  letter-spacing: 0.04em;
}
.legal-meta strong { color: var(--text-soft); font-weight: 500; margin-right: 0.4rem; }

/* ─── TL;DR card ─── */
.tldr {
  background: var(--bg-sepia);
  border: 1px solid var(--border-sepia);
  padding: 2rem 2.25rem;
  margin-top: 3rem;
  border-radius: 2px;
  position: relative;
  z-index: 2;
}
.tldr h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-sepia);
  margin-bottom: 1rem;
}
.tldr ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.tldr li {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-sepia);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}
.tldr li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 14px;
  height: 1px;
  background: var(--text-sepia);
  opacity: 0.5;
}

/* ─── Body ─── */
.legal-body {
  padding: 4rem 0 7rem;
  position: relative;
  z-index: 2;
}
.legal-body section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 6rem;
}
.legal-body section:last-child { margin-bottom: 0; }

.section-num {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-warm-gray);
  margin-bottom: 0.5rem;
  display: block;
  letter-spacing: 0.02em;
}
.legal-body h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}
.legal-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}
.legal-body p {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-soft);
  margin-bottom: 1rem;
  line-height: 1.7;
  text-wrap: pretty;
}
.legal-body p:last-child { margin-bottom: 0; }
.legal-body ul, .legal-body ol {
  list-style: none;
  margin: 1rem 0 1.25rem;
  padding-left: 0;
}
.legal-body ul li, .legal-body ol li {
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--text-soft);
  padding-left: 1.75rem;
  margin-bottom: 0.7rem;
  position: relative;
  line-height: 1.6;
}
.legal-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 1px;
  background: var(--sage-primary);
}
.legal-body ol { counter-reset: item; }
.legal-body ol li {
  counter-increment: item;
}
.legal-body ol li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-warm-gray);
}
.legal-body strong { color: var(--text-dark); font-weight: 500; }
.legal-body em { font-family: 'Lora', serif; font-style: italic; color: var(--text-dark); }
.legal-body a {
  color: var(--sage-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  transition: border-color 0.2s ease;
}
.legal-body a:hover { border-bottom-color: var(--sage-dark); }
.legal-body code {
  font-family: 'SF Mono', 'JetBrains Mono', Menlo, monospace;
  font-size: 0.85em;
  background: var(--bg-sepia);
  padding: 0.1em 0.4em;
  border-radius: 2px;
  color: var(--text-sepia);
}
.legal-body hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 2.5rem 0;
}

/* ─── Contact / final card ─── */
.contact-card {
  background: var(--sage-deeper);
  color: var(--bg-cream);
  padding: 2.5rem 2.25rem;
  border-radius: 2px;
  margin-top: 4rem;
}
.contact-card h3 {
  font-family: 'Lora', serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--warm-sand);
  margin: 0 0 0.8rem;
  letter-spacing: -0.01em;
}
.contact-card p {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: rgba(245, 247, 240, 0.85);
  margin-bottom: 0.4rem;
}
.contact-card a {
  color: var(--warm-sand);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 213, 183, 0.3);
}

/* ─── Footer ─── */
footer {
  padding: 4rem 0 2.5rem;
  border-top: 1px solid var(--border-light);
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: start;
}
.footer-brand .logo { font-size: 1.3rem; margin-bottom: 1rem; display: inline-block; }
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-warm-gray);
  max-width: 320px;
  line-height: 1.55;
  margin-top: 0.8rem;
  font-style: italic;
  font-family: 'Lora', serif;
}
.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-warm-gray);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a {
  font-size: 0.92rem;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--sage-dark); }
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.6rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
  transition: all 0.3s cubic-bezier(0.2,0.8,0.2,1);
}
.social-links a:hover {
  background: var(--sage-deeper);
  color: var(--bg-cream);
  border-color: var(--sage-deeper);
  transform: translateY(-2px);
}
.social-links svg { width: 16px; height: 16px; }
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.78rem;
  color: var(--text-warm-gray);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-base .made { font-style: italic; font-family: 'Lora', serif; }

/* ─── Botanical accent ─── */
.bot-accent {
  position: absolute;
  top: 4rem;
  right: -4rem;
  width: 220px;
  height: 300px;
  opacity: 0.14;
  color: var(--sage-light);
  pointer-events: none;
  z-index: 1;
}
.bot-accent svg { width: 100%; height: 100%; }

/* ─── Mobile ─── */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 1.25rem; }
  nav { padding: 1rem 1.25rem; }
  .lang-switcher { padding: 0.2rem; }
  .lang-btn { padding: 0.3rem 0.6rem; font-size: 0.68rem; }
  .legal-header { padding: 7rem 0 2.5rem; }
  .legal-meta { gap: 1rem; }
  .tldr { padding: 1.5rem 1.25rem; margin-top: 2rem; }
  .legal-body { padding: 2.5rem 0 4rem; }
  .legal-body section { margin-bottom: 2.5rem; }
  .contact-card { padding: 2rem 1.5rem; margin-top: 3rem; }
  .bot-accent { display: none; }
  footer { padding: 3rem 0 2rem; }
  .footer-base { font-size: 0.72rem; }
}
