:root {
  --bg-deep: #1C1410;
  --bg-deep-2: #2A1E18;
  --light: #F4EFE9;
  --light-soft: rgba(244, 239, 233, 0.78);
  --light-faint: rgba(244, 239, 233, 0.50);
  --light-rule: rgba(244, 239, 233, 0.14);
  --accent: #C4896A;
  --accent-soft: rgba(196, 137, 106, 0.7);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

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

html, body {
  height: 100%;
  background: var(--bg-deep);
  color: var(--light);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Stage: split layout ---------- */
.stage {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 70% 50% at 30% 35%, rgba(196, 137, 106, 0.10), transparent 60%),
    var(--bg-deep);
}

/* ---------- Photo column ---------- */
.stage-photo {
  position: relative;
  overflow: hidden;
  order: 2;
  background: #0E0805;
}
.stage-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.stage-photo-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 20, 16, 0.45) 0%, transparent 18%),
    linear-gradient(180deg, rgba(28, 20, 16, 0.30) 0%, transparent 25%, transparent 70%, rgba(28, 20, 16, 0.40) 100%);
  pointer-events: none;
}

/* ---------- Text panel ---------- */
.stage-panel {
  order: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 80px);
  position: relative;
}

/* ---------- Top: wordmark + badge ---------- */
.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-family: var(--serif);
  font-size: clamp(22px, 2.1vw, 30px);
  letter-spacing: 0.2px;
  color: var(--light);
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
.wordmark-paren {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  font-size: 0.78em;
  letter-spacing: -0.5px;
  margin-right: 1px;
}
.wordmark-name {
  font-style: italic;
  font-weight: 400;
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--light-rule);
  background: rgba(244, 239, 233, 0.04);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--light);
  white-space: nowrap;
}
.stage-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(196, 137, 106, 0.55);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(196, 137, 106, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(196, 137, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 137, 106, 0); }
}

/* ---------- Centered content ---------- */
.stage-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 560px;
  padding: 48px 0;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: inline-block;
}

h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.6px;
  color: var(--light);
  margin-bottom: 32px;
  text-wrap: balance;
}
h1 em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  font-family: var(--sans);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  color: var(--light-soft);
  max-width: 440px;
  text-wrap: pretty;
}

/* ---------- Footer ---------- */
.stage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--light-rule);
  font-size: 12.5px;
  color: var(--light-faint);
  letter-spacing: 0.2px;
}
.stage-foot nav {
  display: flex;
  gap: 22px;
}
.stage-foot a {
  transition: color 160ms ease;
}
.stage-foot a:hover { color: var(--light); }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .stage {
    grid-template-columns: 1fr 0.85fr;
  }
  .stage-panel {
    padding: 28px 36px;
  }
  .stage-content { padding: 32px 0; }
}

/* ---------- Mobile: stack photo above ---------- */
@media (max-width: 720px) {
  .stage {
    grid-template-columns: 1fr;
    grid-template-rows: 46vh 1fr;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .stage-photo {
    order: 1;
  }
  .stage-photo img {
    object-position: 50% 30%;
  }
  .stage-photo-tint {
    background:
      linear-gradient(180deg, rgba(28, 20, 16, 0.20) 0%, transparent 30%, transparent 60%, rgba(28, 20, 16, 0.85) 100%);
  }
  .stage-panel {
    order: 2;
    padding: 24px 24px 28px;
    grid-template-rows: auto 1fr auto;
  }
  .stage-top {
    margin-top: -42px;
    position: relative;
    z-index: 2;
  }
  .wordmark { font-size: 24px; }
  .stage-content {
    padding: 24px 0;
    align-items: flex-start;
  }
  .eyebrow {
    font-size: 10.5px;
    letter-spacing: 2.6px;
    margin-bottom: 18px;
  }
  h1 {
    font-size: clamp(38px, 9vw, 52px);
    margin-bottom: 22px;
  }
  .lede { font-size: 15px; }
  .stage-foot {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding-top: 14px;
  }
}

@media (max-width: 380px) {
  .stage-badge { display: none; }
}

/* ============================================================
   Legal pages (privacy / terms / delete-account)
   ============================================================ */

body.legal {
  height: auto;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(196, 137, 106, 0.08), transparent 60%),
    var(--bg-deep);
}

.legal-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(28, 20, 16, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--light-rule);
}
.legal-nav-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
}
.legal-nav .wordmark { font-size: 22px; }
.legal-nav .back {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--light-faint);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 160ms ease;
}
.legal-nav .back:hover { color: var(--light); }

.legal-doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
  color: var(--light);
}

.legal-doc .eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-block;
}

.legal-doc h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
  color: var(--light);
  text-wrap: balance;
}

.legal-doc .updated {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--light-faint);
  margin-bottom: 48px;
  letter-spacing: 0.2px;
}

.legal-doc h2 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--light);
  margin-top: 48px;
  margin-bottom: 12px;
}
.legal-doc h2:first-of-type { margin-top: 0; }

.legal-doc p,
.legal-doc li {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--light-soft);
}
.legal-doc p { margin-bottom: 16px; }

.legal-doc ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.legal-doc ul li {
  position: relative;
  padding: 4px 0 4px 22px;
}
.legal-doc ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.legal-doc strong { color: var(--light); font-weight: 600; }

.legal-doc a {
  color: var(--accent);
  border-bottom: 1px solid rgba(196, 137, 106, 0.3);
  transition: border-color 160ms ease;
}
.legal-doc a:hover { border-bottom-color: var(--accent); }

.legal-doc hr {
  border: none;
  border-top: 1px solid var(--light-rule);
  margin: 48px 0;
}

.legal-doc .callout {
  background: rgba(196, 137, 106, 0.06);
  border: 1px solid rgba(196, 137, 106, 0.18);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 24px 0;
}
.legal-doc .callout p:last-child { margin-bottom: 0; }

.legal-doc .btn-mailto {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  border: none;
  text-decoration: none;
  margin-top: 8px;
  transition: transform 140ms ease, box-shadow 200ms ease, background 200ms ease;
  box-shadow: 0 8px 22px rgba(196, 137, 106, 0.25);
}
.legal-doc .btn-mailto:hover {
  background: #A66E50;
  transform: translateY(-1px);
  border: none;
}

.legal-foot {
  border-top: 1px solid var(--light-rule);
  padding: 32px 24px;
  text-align: center;
  font-size: 12.5px;
  color: var(--light-faint);
  letter-spacing: 0.2px;
}
.legal-foot a {
  color: var(--light-faint);
  margin: 0 10px;
  transition: color 160ms ease;
}
.legal-foot a:hover { color: var(--light); }

/* Legal: tables (sub-processors) */
.legal-doc .table-wrap {
  overflow-x: auto;
  margin: 16px -4px 24px;
  border-radius: 12px;
}
.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
  background: rgba(244, 239, 233, 0.03);
  border: 1px solid var(--light-rule);
  border-radius: 12px;
  overflow: hidden;
}
.legal-doc thead th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 14px 16px;
  border-bottom: 1px solid var(--light-rule);
  background: rgba(196, 137, 106, 0.05);
}
.legal-doc tbody td {
  padding: 14px 16px;
  color: var(--light-soft);
  border-bottom: 1px solid var(--light-rule);
  vertical-align: top;
  line-height: 1.55;
}
.legal-doc tbody tr:last-child td { border-bottom: none; }
.legal-doc tbody td:first-child { color: var(--light); font-weight: 500; }

.legal-doc h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--light);
  margin-top: 24px;
  margin-bottom: 8px;
  letter-spacing: -0.05px;
}

.legal-doc address {
  font-style: normal;
  color: var(--light-soft);
  line-height: 1.7;
}
