/* ─── Shared styles for legal pages (privacy.html, terms.html) ─── */

:root {
  --bark-deep:    #1A1410;
  --bark:         #2C2118;
  --bark-soft:    #3A2C20;
  --cream:        #F5F0EA;
  --dust:         #C4B5A5;
  --dust-mute:    #8A7D6E;
  --moss:         #5E6B3E;
  --clay:         #B6724A;
  --terracotta:   #A85838;

  --font-script:  'Caveat', 'Homemade Apple', cursive;
  --font-sans:    'Manrope', system-ui, sans-serif;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--cream);
  background: var(--bark-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-weight: 300;
}

/* Same mesh background as the landing — but static, scrollable */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 18% 22%, #6E7A48 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 82% 18%, #9C6B47 0%, transparent 60%),
    radial-gradient(ellipse 65% 55% at 75% 78%, #A85838 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 25% 85%, #3D4A28 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 50%, #6B5238 0%, transparent 70%),
    linear-gradient(135deg, #2C2118 0%, #1A1410 100%);
  filter: saturate(0.85);
  opacity: 0.85;
}
.bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.94 0 0 0 0 0.91 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.bg::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,20,16,0.55) 0%, rgba(26,20,16,0.85) 100%);
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding:
    calc(48px + env(safe-area-inset-top))
    calc(28px + env(safe-area-inset-right))
    calc(72px + env(safe-area-inset-bottom))
    calc(28px + env(safe-area-inset-left));
}

header.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
}
.logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
}
.logo-mark .logo-glyph { display: block; height: 42px; width: auto; }
.wordmark {
  font-family: var(--font-script);
  font-weight: 500;
  font-size: 36px;
  line-height: 1;
  color: var(--cream);
  letter-spacing: 0.5px;
}
.back-link {
  color: var(--dust);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  transition: color 180ms ease;
}
.back-link::before { content: "←"; transition: transform 180ms ease; display: inline-block; }
.back-link:hover { color: var(--cream); }
.back-link:hover::before { transform: translateX(-3px); }

h1 {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--cream);
}
.last-updated {
  color: var(--dust-mute);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 48px;
  display: block;
}

h2 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.3;
  margin: 48px 0 16px;
  color: var(--cream);
  letter-spacing: -0.005em;
}

p, li {
  font-size: 15.5px;
  font-weight: 300;
  color: var(--dust);
  margin: 0 0 16px;
  text-wrap: pretty;
}
li { margin-bottom: 10px; }

ul { padding-left: 22px; margin: 0 0 20px; }
ul li::marker { color: var(--dust-mute); }

a {
  color: var(--cream);
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease;
}
/* Underline only links in body copy, not chrome (logo, back-link, footer). */
.page p a,
.page li a,
.callout a {
  border-bottom: 1px solid rgba(245, 240, 234, 0.25);
}
.page p a:hover,
.page li a:hover,
.callout a:hover { border-bottom-color: var(--cream); }

strong { color: var(--cream); font-weight: 400; }

.placeholder {
  display: inline;
  background: rgba(168, 88, 56, 0.18);
  color: #E8B59A;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.92em;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: -0.01em;
}

.callout {
  border-left: 2px solid var(--clay);
  background: rgba(26, 20, 16, 0.4);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout .label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 8px;
}

/* ─── Stub layout for "coming ahead of launch" pages ─── */
.stub {
  margin-top: clamp(48px, 12vh, 120px);
  max-width: 52ch;
}
.stub-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 18px;
  padding: 4px 10px;
  border: 1px solid rgba(184, 113, 73, 0.4);
  border-radius: 999px;
}
.stub h1 { margin-bottom: 24px; }
.stub p { font-size: 17px; max-width: 48ch; }
.stub p + p { margin-top: 12px; }

footer.legal-footer {
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid rgba(245, 240, 234, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  font-size: 12.5px;
  font-weight: 300;
  color: var(--dust-mute);
  letter-spacing: 0.02em;
}
footer.legal-footer a {
  color: var(--dust);
  border-bottom: none;
}
footer.legal-footer a:hover { color: var(--cream); }
footer.legal-footer .sep { color: rgba(245, 240, 234, 0.15); }
