/* MonikaSphere — shared stylesheet for public legal pages (Terms, Privacy).
   Served verbatim from public/legal/legal.css, linked by both /terms/ and
   /privacy/. Same brand tokens as public/flagship/index.html — porcelain/olive,
   Fraunces (elevated: weight 300 display, italic axis), Manrope body, taupe
   accent — but tuned for long-form reading rather than a marketing page:
   a single ~720px column, generous line-height, minimal decoration. */

:root {
  --porcelain: #FAF6EF;
  --olive-deep: #28352F;
  --olive-ink: #1B231E;
  --stone: #EFE7DC;
  --oat: #DED1C2;
  --taupe: #A88F7A;
  --taupe-text: #7A6355;
  --text: #24302B;
  --text-muted: #5F625C;
  --font-serif: "Fraunces", ui-serif, Georgia, serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--taupe-text); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--olive-deep); color: var(--porcelain);
  padding: 10px 18px; border-radius: 0 0 12px 0; z-index: 100; font-size: 14px;
}
.skip-link:focus { left: 0; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.legal-header {
  border-bottom: 1px solid var(--oat);
}
.legal-header .bar {
  max-width: 760px; margin-inline: auto; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wordmark {
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 500; line-height: 1;
  letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
}
.wordmark .wm-a { color: var(--olive-ink); }
.wordmark .wm-b { color: var(--taupe); }
.legal-header nav a {
  font-size: 14px; font-weight: 500; color: var(--text-muted); text-decoration: none;
  padding: 6px 0; margin-left: 22px; border-bottom: 1.5px solid transparent;
  transition: border-color 160ms ease-out, color 160ms ease-out;
}
.legal-header nav a:hover { color: var(--olive-ink); border-bottom-color: var(--taupe); }

/* ── Reading column ─────────────────────────────────────────────────────── */
.legal-main {
  max-width: 720px; margin-inline: auto; padding: 56px 24px 96px;
}
@media (min-width: 640px) { .legal-main { padding: 80px 24px 120px; } }

.eyebrow {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--taupe-text);
}

h1 {
  margin: 16px 0 0;
  font-family: var(--font-serif); font-weight: 300; letter-spacing: -0.02em;
  line-height: 1.06; color: var(--olive-ink);
  font-size: 38px;
}
@media (min-width: 640px) { h1 { font-size: 48px; } }

.updated {
  margin: 18px 0 0; font-size: 14px; color: var(--text-muted);
}

.draft-notice {
  margin: 32px 0 0; padding: 20px 22px; border-radius: 16px;
  background: var(--stone); border: 1px solid var(--oat);
  font-size: 14.5px; line-height: 1.6; color: var(--text);
}
.draft-notice strong { color: var(--olive-ink); }

.intro {
  margin: 36px 0 0; font-size: 17px; line-height: 1.75; color: var(--text);
}

article { margin-top: 8px; }

h2 {
  margin: 52px 0 0;
  font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em;
  line-height: 1.2; color: var(--olive-ink);
  font-size: 24px;
  padding-top: 28px; border-top: 1px solid var(--oat);
}
@media (min-width: 640px) { h2 { font-size: 27px; } }
h2:first-of-type { border-top: none; padding-top: 0; margin-top: 44px; }

p { margin: 18px 0 0; font-size: 16px; line-height: 1.75; color: var(--text); }
strong { color: var(--olive-ink); font-weight: 600; }

ul { margin: 18px 0 0; padding-left: 0; list-style: none; }
ul li {
  position: relative; padding-left: 22px; margin-top: 10px;
  font-size: 16px; line-height: 1.7; color: var(--text);
}
ul li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--taupe);
}

/* Bracketed placeholders — must stay visibly unfinished until filled in.
   Some placeholders are long sentences (e.g. the refund-policy note), so this
   must wrap like normal text rather than forcing horizontal overflow. */
.placeholder {
  background: rgba(199, 162, 39, 0.16);
  border: 1px solid rgba(199, 162, 39, 0.45);
  border-radius: 4px;
  padding: 1px 5px;
  color: #8a6d10;
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.contact-block {
  margin: 18px 0 0; font-size: 16px; line-height: 1.7; color: var(--text);
}

.cross-link {
  margin: 64px 0 0; padding-top: 28px; border-top: 1px solid var(--oat);
  font-size: 15px; color: var(--text-muted);
}
.cross-link a {
  font-weight: 600; color: var(--olive-ink); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--oat);
}
.cross-link a:hover { text-decoration-color: var(--taupe); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.legal-footer {
  border-top: 1px solid var(--oat);
}
.legal-footer .bar {
  max-width: 760px; margin-inline: auto; padding: 28px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; font-size: 13px; color: var(--text-muted);
}
.legal-footer a { color: var(--text-muted); text-decoration: none; }
.legal-footer a:hover { color: var(--olive-ink); }
