/* ── Shared styles for legal / utility pages ───────────────────
   Used by privacy.html, terms.html, delete-account.html.
   Matches the Kitchen Counter aesthetic of index.html — cream
   paper, Cormorant Garamond serif, Work Sans body, terracotta +
   ochre accents.                                            */

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

:root {
  --cream: #fbf5e9;
  --cream-warm: #f5ead4;
  --cream-deep: #efddbe;
  --ink: #1f1812;
  --ink-soft: #4a3a2c;
  --ink-mute: #7a6a5a;
  --terracotta: #c14a25;
  --terracotta-deep: #93341a;
  --ochre: #d99843;
  --ochre-deep: #b07a2a;
  --rule: #d8c4a4;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  background-image:
    radial-gradient(rgba(80,55,30,0.04) 1px, transparent 1px),
    radial-gradient(rgba(80,55,30,0.025) 1px, transparent 1px);
  background-size: 4px 4px, 9px 9px;
  background-position: 0 0, 2px 2px;
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

a { color: var(--terracotta); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta-deep); }

.label {
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--ochre-deep);
}

.page { max-width: 1100px; margin: 0 auto; padding: 0 48px; width: 100%; }

/* ── Header ────────────────────────────────── */
header.site {
  padding: 28px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
header.site .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
header.site .brand img { height: 40px; }
header.site .brand .word {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
header.site .brand .word em { color: var(--terracotta); font-style: italic; font-weight: 600; }
header.site .pill {
  background: var(--cream-warm);
  border: 1px solid var(--rule);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--terracotta);
  font-weight: 600;
  text-decoration: none;
}

/* ── Breadcrumb ────────────────────────────── */
nav.crumbs {
  padding: 18px 0 4px;
  font-size: 13px;
  color: var(--ink-mute);
}
nav.crumbs a { color: var(--ink-mute); text-decoration: none; }
nav.crumbs a:hover { color: var(--terracotta); text-decoration: underline; }
nav.crumbs .sep { margin: 0 8px; color: var(--rule); }

/* ── Main ──────────────────────────────────── */
main { flex: 1; padding: 24px 0 48px; }

/* ── Document head ─────────────────────────── */
.doc-head { margin-bottom: 32px; max-width: 760px; }
.doc-head .label { display: block; margin-bottom: 14px; }
.doc-head h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
}
.doc-head h1 em { color: var(--terracotta); font-style: italic; font-weight: 500; }
.doc-head .last-updated {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

/* ── Card / paper ──────────────────────────── */
.card {
  background: #fdfaf2;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 44px 48px;
  box-shadow: 3px 4px 0 var(--cream-deep);
  max-width: 820px;
}

/* Lead paragraph under the title */
.intro { font-size: 17px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 20px; }
.intro strong { color: var(--ink); font-weight: 600; }

/* ── Boxes (TOC, Summary, Data) ────────────── */
.box {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 22px 26px;
  margin-bottom: 32px;
}
.box .box-label { display: block; margin-bottom: 12px; }

.toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 8px; padding: 0; }
.toc ol li {
  counter-increment: toc;
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--terracotta);
  font-size: 14px;
}
.toc ol li a { color: var(--ink-soft); text-decoration: none; }
.toc ol li a:hover { color: var(--terracotta); }

.summary .item { margin-bottom: 14px; }
.summary .item:last-child { margin-bottom: 0; }
.summary .item strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 2px;
  letter-spacing: -0.005em;
}
.summary .item p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

/* ── Sections / prose ──────────────────────── */
.section { margin-bottom: 32px; scroll-margin-top: 24px; }
.section:last-child { margin-bottom: 0; }

.section h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 12px;
}
.section h2 em { color: var(--terracotta); font-style: italic; }

.section h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-top: 18px;
  margin-bottom: 6px;
}

.section .lede {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-mute);
  margin-bottom: 14px;
}

.section p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 10px; }
.section p strong { color: var(--ink); font-weight: 600; }

.section ul, .section ol { padding-left: 22px; margin-bottom: 12px; }
.section ul li, .section ol li { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 4px; }
.section ul li::marker { color: var(--terracotta); }
.section ol li::marker { color: var(--terracotta); font-family: "Cormorant Garamond", serif; font-style: italic; }

/* ── Numbered steps (delete-account) ───────── */
.steps { margin: 24px 0; display: flex; flex-direction: column; gap: 18px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--cream);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step .body { padding-top: 4px; }
.step .body strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 2px;
  letter-spacing: -0.005em;
}
.step .body span { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }

/* ── Data rows (delete-account) ────────────── */
.data .row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.6;
}
.data .row:first-of-type { border-top: none; padding-top: 0; }
.data .row .key {
  font-weight: 600;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 2px;
}
.data .row .val { color: var(--ink-soft); }

/* ── Footer ────────────────────────────────── */
footer.site {
  padding: 36px 0 48px;
  text-align: center;
  border-top: 1px solid var(--rule);
  margin-top: 24px;
}
footer.site .label { display: block; margin-bottom: 8px; color: var(--ochre-deep); }
footer.site .word {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}
footer.site .word em { color: var(--terracotta); font-style: italic; }
footer.site .disclaim {
  font-size: 12px;
  color: var(--ink-mute);
  max-width: 520px;
  margin: 0 auto 14px;
  line-height: 1.55;
}
footer.site nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}
footer.site nav a {
  font-size: 13px;
  color: var(--ink-mute);
  text-decoration: none;
}
footer.site nav a:hover { color: var(--terracotta); text-decoration: underline; }
footer.site nav a[aria-current="page"] { color: var(--terracotta); font-weight: 600; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 720px) {
  .page { padding: 0 22px; }
  header.site { padding-top: 22px; }
  header.site .pill { display: none; }
  .doc-head h1 { font-size: 40px; }
  .card { padding: 28px 24px; }
  .section h2 { font-size: 24px; }
  .data .row { grid-template-columns: 1fr; gap: 4px; }
  .data .row .key { padding-top: 0; }
}
