/* Shared styles for legal pages (privacy, terms, refund) */
/* Inline this into each page; no external request. */

:root {
  /* COLOR */
  --paper: #F2E8D5;
  --paper-2: #EBE0CB;
  --ink: #1B1815;
  --ink-soft: #2d2d2f;
  --muted: #6A5A48;
  --muted-2: #a89e88;
  --rule: #d6cdb8;
  --orange: #EE6F2D;
  --green: #4a7c4e;

  /* Brand-sheet semantic aliases */
  --accent:       var(--orange);
  --accent-dark:  #D85F23;
  --soft:         var(--muted);
  --hair:         rgba(27, 24, 21, 0.12);
  --hair-strong:  rgba(27, 24, 21, 0.22);

  /* TYPE SCALE — shared with homepage and sales page */
  --fs-2xs:   clamp(10px,   0.6vw + 8px,    11px);
  --fs-xs:    clamp(12px,   0.7vw + 10px,   13.5px);
  --fs-sm:    clamp(13.5px, 0.8vw + 11.5px, 15.5px);
  --fs-base:  clamp(17px,   0.9vw + 15px,   19.5px);
  --fs-lg:    clamp(19px,   1.1vw + 17px,   23px);
  --fs-xl:    clamp(24px,   1.8vw + 20px,   32px);
  --fs-2xl:   clamp(26px,   2.6vw + 20px,   42px);
  --fs-3xl:   clamp(32px,   3.4vw + 24px,   60px);
  --fs-4xl:   clamp(40px,   4vw + 28px,     88px);

  /* LINE HEIGHT */
  --lh-display:  1.02;
  --lh-tight:    1.08;
  --lh-snug:     1.18;
  --lh-normal:   1.55;
  --lh-relaxed:  1.7;

  /* WEIGHT */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink-soft);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  font-weight: var(--fw-regular);
  min-height: 100vh; position: relative;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.45 0 0 0 0 0.38 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.shell {
  position: relative; z-index: 1;
  max-width: 960px; margin: 0 auto; padding: 0 28px 80px;
}
/* On legal/short pages, keep prose readable inside the wider .shell. */
.shell > p,
.shell > h2,
.shell > h3,
.shell > ul,
.shell > ol,
.shell > .callout,
.shell > .lede,
.shell > .updated {
  max-width: 68ch;
}
.nav {
  display: flex; justify-content: flex-start; align-items: center;
  max-width: 960px;
  margin: 0 auto clamp(28px, 3vw, 40px);
  padding: clamp(20px, 2.5vw, 32px) 28px 24px;
  border-bottom: 1px solid var(--rule);
}
.nav .lockup {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.nav .lockup:hover { transform: translateX(2px); }
.nav .lockup svg.mark {
  width: 30px; height: 42px;
  color: var(--ink);
  flex-shrink: 0;
}
.nav .wm {
  display: inline-block;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 26px;
  color: var(--ink);
  line-height: 1; letter-spacing: -0.012em;
  white-space: nowrap;
}
.nav .wm .the { font-style: italic; font-size: 14px; color: var(--soft); margin-right: 2px; }
.nav .wm .nm { font-weight: 400; font-size: 26px; color: var(--ink); }
.nav .wm .tsc-dot { color: var(--accent); font-weight: 600; }
@media (max-width: 520px) {
  .nav .wm { font-size: 20px; }
  .nav .wm .nm { font-size: 20px; }
  .nav .wm .the { font-size: 12px; }
  .nav .lockup svg.mark { width: 22px; height: 30px; }
}
.eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: var(--fw-medium);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--orange); }
h1 {
  font-family: 'Source Serif 4', serif;
  font-weight: var(--fw-regular);
  font-size: var(--fs-4xl);
  line-height: var(--lh-display); letter-spacing: -0.028em;
  color: var(--ink); margin-bottom: 20px;
}
h1 em { font-style: italic; color: var(--orange); }
.lede {
  font-family: 'Source Serif 4', serif; font-style: italic;
  font-size: var(--fs-xl);
  line-height: var(--lh-snug); color: var(--ink-soft);
  margin-bottom: 16px;
}
.updated {
  font-family: 'Geist Mono', monospace;
  font-size: var(--fs-xs); color: var(--muted);
  letter-spacing: 0.04em; margin-bottom: 48px;
  padding-bottom: 32px; border-bottom: 1px solid var(--rule);
}
h2 {
  font-family: 'Source Serif 4', serif;
  font-weight: var(--fw-regular);
  font-size: var(--fs-2xl);
  line-height: var(--lh-tight);
  color: var(--ink); margin: 48px 0 18px;
  letter-spacing: -0.018em;
}
h2 em { font-style: italic; color: var(--orange); }
p { margin-bottom: 16px; color: var(--ink-soft); line-height: var(--lh-relaxed); font-size: var(--fs-base); }
p strong { color: var(--ink); }
a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
ul, ol { margin: 16px 0 22px 26px; }
li { margin-bottom: 8px; line-height: var(--lh-relaxed); color: var(--ink-soft); font-size: var(--fs-base); }
code {
  background: var(--paper-2); padding: 2px 6px; border-radius: 3px;
  font-family: 'Geist Mono', monospace;
  font-size: var(--fs-sm);
}
.callout {
  margin: 22px 0;
  padding: 18px 22px;
  background: var(--paper-2);
  border-left: 3px solid var(--orange);
  border-radius: 0 6px 6px 0;
}
.callout p { margin-bottom: 0; }
/* ============== FOOTER (dark, full-width, matches main site) ============== */
.foot {
  margin-top: 72px;
  background: var(--ink);
  color: var(--paper);
  padding: 72px 32px 32px;
  position: relative;
  overflow: hidden;
}
.foot::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--orange) 50%, transparent 100%);
  opacity: 0.5;
}
.foot::after {
  content: '';
  position: absolute; top: -20%; right: -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(238, 111, 45, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.foot-inner {
  max-width: 960px; margin: 0 auto;
  position: relative; z-index: 1;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .foot-brand { grid-column: span 2; }
}
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-brand { grid-column: span 1; }
}
.foot-lockup {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 24px; text-decoration: none;
  transition: transform 0.2s ease;
}
.foot-lockup:hover { transform: translateX(2px); }
.foot-lockup svg.mark {
  width: 26px; height: 36px;
  color: var(--paper);
  flex-shrink: 0;
}
.foot-lockup .wm {
  display: inline-block;
  font-family: 'Source Serif 4', serif;
  font-size: 22px;
  color: var(--paper);
  line-height: 1;
  letter-spacing: -0.012em;
  white-space: nowrap;
}
.foot-lockup .wm .the {
  font-style: italic;
  font-size: 12px;
  color: #a89e88;
  margin-right: 2px;
}
.foot-lockup .wm .nm { font-size: 22px; color: var(--paper); }
.foot-lockup .wm .tsc-dot { color: var(--accent); font-weight: 600; }
.foot-brand .foot-tag {
  font-size: 14px; color: #a89e88; line-height: 1.6;
  margin-bottom: 16px;
  max-width: 300px;
}
.foot-brand .foot-built {
  font-family: 'Geist', sans-serif;
  font-size: 13.5px; color: #a89e88;
  line-height: 1.6;
  max-width: 300px;
  font-weight: 400;
}
.foot-brand .foot-built strong {
  color: var(--paper);
  font-weight: 600;
}
.foot-col h4 {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(245, 237, 224, 0.08);
}
.foot-col a {
  display: block;
  font-family: 'Geist', sans-serif;
  font-size: 14px; color: var(--paper);
  text-decoration: none; padding: 5px 0;
  transition: color 0.15s ease, transform 0.15s ease;
}
.foot-col a:hover {
  color: var(--orange);
  transform: translateX(4px);
}
.foot-col .foot-note {
  font-family: 'Geist', sans-serif;
  font-size: 12.5px; color: #a89e88;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 200px;
  font-weight: 400;
  margin-bottom: 0;
}
.foot-rule {
  height: 1px;
  background: rgba(245, 237, 224, 0.08);
  margin-bottom: 24px;
}
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px; color: #a89e88;
  letter-spacing: 0.06em;
}
.foot-bottom .foot-meta { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot-bottom .foot-meta-sep { color: rgba(245, 237, 224, 0.15); }
.foot-back-top {
  color: #a89e88; text-decoration: none;
  padding: 6px 14px;
  border: 1px solid rgba(245, 237, 224, 0.12);
  border-radius: 999px;
  transition: all 0.15s ease;
  font-family: 'Geist Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em;
}
.foot-back-top:hover {
  color: var(--orange);
  border-color: var(--orange);
  background: rgba(238, 111, 45, 0.08);
}
