/* Shared styles for legal pages — Privacy, Terms, Data Deletion.
   Mirrors the landing page's brand language: warm cream bg, serif display,
   sans body, soft warm shadows. Pure CSS — no JS required.
*/

:root {
  --brand-yellow: #f4c849;
  --brand-red: #d64129;
  --brand-gold: #c89432;
  --brand-brown-dark: #3a2e1f;
  --brand-brown-mid: #5d4a2e;
  --brand-cream: #fdfaf3;
  --brand-cream-soft: #fff8e8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--brand-cream);
  color: var(--brand-brown-dark);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.font-display {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-feature-settings: "liga", "dlig";
}

.font-hand {
  font-family: "Caveat", cursive;
}

.font-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* ============ LAYOUT ============ */
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HEADER ============ */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 250, 243, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(93, 74, 46, 0.08);
}
.legal-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(93, 74, 46, 0.15));
}
.brand .wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand .wordmark .name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--brand-brown-dark);
}
.brand .wordmark .tag {
  margin-top: 3px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-brown-mid);
  opacity: 0.7;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-brown-mid);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.back-link:hover {
  background: var(--brand-cream-soft);
  color: var(--brand-brown-dark);
}

/* ============ HERO BANNER ============ */
.legal-hero {
  position: relative;
  padding: 80px 0 56px;
  background:
    radial-gradient(
      circle at 80% 0%,
      rgba(244, 200, 73, 0.22),
      transparent 55%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(200, 148, 50, 0.12),
      transparent 50%
    ),
    var(--brand-cream);
  overflow: hidden;
  border-bottom: 1px solid rgba(93, 74, 46, 0.07);
}
.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(93, 74, 46, 0.05) 1px,
    transparent 1px
  );
  background-size: 3px 3px;
  opacity: 0.5;
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-gold);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brand-gold);
  opacity: 0.7;
}
.legal-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--brand-brown-dark);
  margin: 18px 0 14px;
  max-width: 14ch;
}
.legal-hero h1 em {
  font-style: italic;
  color: var(--brand-gold);
}
.legal-hero .lede {
  font-size: 18px;
  color: var(--brand-brown-mid);
  max-width: 56ch;
  margin: 0 0 24px;
}
.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-cream-soft);
  border: 1px solid rgba(200, 148, 50, 0.25);
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--brand-brown-mid);
}
.last-updated .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-gold);
}

/* ============ MAIN CONTENT ============ */
.legal-main {
  padding: 56px 0 80px;
  position: relative;
}
.legal-content {
  font-size: 16.5px;
  color: var(--brand-brown-dark);
}
.legal-content section {
  margin-bottom: 40px;
  scroll-margin-top: 90px;
}
.legal-content section:last-child {
  margin-bottom: 0;
}
.legal-content h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--brand-brown-dark);
  margin: 0 0 12px;
  position: relative;
  padding-left: 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.legal-content h2 .num {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--brand-gold);
  font-weight: 600;
  flex: none;
  width: 28px;
}
.legal-content h2 .title {
  flex: 1;
}
.legal-content h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--brand-brown-dark);
  margin: 24px 0 8px;
  letter-spacing: -0.005em;
}
.legal-content p {
  margin: 0 0 14px;
  color: var(--brand-brown-mid);
  line-height: 1.7;
}
.legal-content p strong,
.legal-content li strong {
  color: var(--brand-brown-dark);
  font-weight: 600;
}
.legal-content ul {
  margin: 0 0 14px;
  padding-left: 0;
  list-style: none;
}
.legal-content ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--brand-brown-mid);
  line-height: 1.6;
}
.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--brand-gold);
}
.legal-content a {
  color: var(--brand-brown-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 148, 50, 0.5);
  transition: color 0.15s ease, border-color 0.15s ease;
  font-weight: 500;
}
.legal-content a:hover {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}

/* Cards inside content */
.contact-card {
  margin: 28px 0 8px;
  padding: 24px 26px;
  background: var(--brand-cream-soft);
  border-left: 3px solid var(--brand-gold);
  border-radius: 16px;
  display: grid;
  gap: 10px;
}
.contact-card .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 6px;
}
.contact-card .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 15px;
  color: var(--brand-brown-dark);
}
.contact-card .row > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contact-card .row strong {
  font-weight: 600;
  color: var(--brand-brown-mid);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* note callout */
.note {
  margin: 18px 0;
  padding: 16px 20px;
  background: var(--brand-cream-soft);
  border-radius: 14px;
  font-size: 14.5px;
  color: var(--brand-brown-mid);
  border: 1px dashed rgba(200, 148, 50, 0.35);
}
.note strong {
  color: var(--brand-brown-dark);
}

/* TOC */
.toc {
  margin: 0 0 24px;
  padding: 22px 24px;
  background: var(--brand-cream);
  border: 1px solid rgba(93, 74, 46, 0.1);
  border-radius: 18px;
}
.toc .toc-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 12px;
}
.toc ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  counter-reset: toc;
}
@media (min-width: 640px) {
  .toc ol {
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
  }
}
.toc ol li {
  counter-increment: toc;
  position: relative;
  padding-left: 32px;
  font-size: 14.5px;
}
.toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--brand-gold);
  font-weight: 600;
}
.toc ol li a {
  color: var(--brand-brown-mid);
  text-decoration: none;
  border-bottom: none;
  font-weight: 500;
  transition: color 0.15s ease;
  display: inline-block;
  padding: 4px 0;
}
.toc ol li a:hover {
  color: var(--brand-brown-dark);
}

/* CTA strip near bottom */
.cta-strip {
  margin: 48px 0 0;
  padding: 28px 28px;
  background: var(--brand-yellow);
  border-radius: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 30px -12px rgba(93, 74, 46, 0.18);
}
.cta-strip .left {
  flex: 1;
  min-width: 240px;
}
.cta-strip h3 {
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--brand-brown-dark);
}
.cta-strip p {
  margin: 0;
  font-size: 14px;
  color: var(--brand-brown-dark);
  opacity: 0.8;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.btn-primary {
  background: var(--brand-brown-dark);
  color: var(--brand-cream);
}
.btn-primary:hover {
  background: #2a2014;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -10px rgba(58, 46, 31, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--brand-brown-dark);
  border: 1px solid rgba(58, 46, 31, 0.2);
}
.btn-ghost:hover {
  background: rgba(58, 46, 31, 0.04);
}

/* ============ FOOTER ============ */
.legal-footer {
  background: var(--brand-brown-dark);
  color: var(--brand-cream);
  padding: 56px 0 28px;
}
.legal-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-footer .footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(253, 250, 243, 0.1);
}
.legal-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.legal-footer .footer-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.legal-footer .footer-brand .name {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.legal-footer .footer-brand .tag {
  display: block;
  font-size: 13px;
  margin-top: 2px;
  opacity: 0.7;
  font-style: italic;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13.5px;
}
.footer-contact a {
  color: var(--brand-cream);
  opacity: 0.85;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.footer-contact a:hover {
  color: var(--brand-yellow);
  opacity: 1;
}
.legal-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 12.5px;
  color: rgba(253, 250, 243, 0.6);
}
.legal-footer .footer-bottom .links {
  display: flex;
  gap: 22px;
}
.legal-footer .footer-bottom .links a {
  color: rgba(253, 250, 243, 0.65);
  text-decoration: none;
  transition: color 0.15s ease;
}
.legal-footer .footer-bottom .links a:hover {
  color: var(--brand-yellow);
}
.legal-footer .footer-bottom .links a.active {
  color: var(--brand-yellow);
}

/* Tiny floating ornament */
.corner-ornament {
  position: absolute;
  pointer-events: none;
  opacity: 0.55;
  user-select: none;
}

@media (max-width: 640px) {
  .legal-hero {
    padding: 56px 0 40px;
  }
  .legal-main {
    padding: 40px 0 56px;
  }
  .legal-content section {
    margin-bottom: 32px;
  }
  .legal-content h2 {
    font-size: 24px;
    gap: 10px;
  }
  .cta-strip {
    padding: 22px;
  }
  .contact-card {
    padding: 20px;
  }
  .brand .wordmark .tag {
    display: none;
  }
}
