/* ============================================
   LEGAL PAGES · shared stylesheet
   Amar Sin Miedo · Quiero Amar Sin Miedo
   ============================================ */

/* === BRAND VARIABLES === */
:root {
  --cream: #f8f3ed;
  --cream-dark: #f0e8de;
  --peach-light: #e8cdb8;
  --peach: #d4a088;
  --terracotta: #c4836b;
  --terracotta-dark: #b8745e;
  --brown: #4a2e22;
  --brown-light: #5c3a2e;
  --brown-mid: #8b6952;
  --white: #fffcf8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--brown);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* === HEADER === */
.legal-header {
  background: var(--white);
  border-bottom: 1px solid rgba(212, 160, 136, 0.20);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 252, 248, 0.92);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brown-mid);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.legal-back:hover {
  color: var(--terracotta);
}

.legal-back svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.legal-back:hover svg {
  transform: translateX(-3px);
}

.legal-brand {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--brown);
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.legal-brand-mark {
  display: inline-flex;
  align-items: center;
}

.legal-brand-mark span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--peach);
  opacity: 0.85;
}

.legal-brand-mark span:last-child {
  background: var(--terracotta);
  margin-left: -4px;
}

/* === MAIN CONTENT === */
.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 28px 90px;
}

.legal-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 18px;
}

.legal-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 48px;
  color: var(--brown);
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  text-wrap: balance;
}

.legal-date {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--brown-mid);
  margin-bottom: 56px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--peach);
}

.legal-intro {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.5;
  color: var(--brown);
  margin-bottom: 50px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--peach);
  text-wrap: pretty;
}

.legal-section {
  margin-bottom: 48px;
}

.legal-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 28px;
  color: var(--brown);
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
  text-wrap: balance;
}

.legal-h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--brown);
  letter-spacing: 0.3px;
  margin: 22px 0 10px;
}

.legal-section p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--brown-mid);
  margin-bottom: 16px;
  text-wrap: pretty;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section p strong {
  color: var(--brown);
  font-weight: 500;
}

.legal-section p em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--brown);
  font-size: 18px;
}

.legal-section a {
  color: var(--terracotta);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 131, 107, 0.40);
  transition: border-color 0.2s ease;
  font-weight: 500;
}

.legal-section a:hover {
  border-color: var(--terracotta);
}

/* Lists */
.legal-section ul {
  list-style: none;
  margin: 14px 0 22px 0;
  padding: 0;
}

.legal-section ul li {
  position: relative;
  padding-left: 26px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--brown-mid);
  margin-bottom: 12px;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 10px;
  height: 1.5px;
  background: var(--terracotta);
  border-radius: 1px;
}

.legal-section ul li strong {
  color: var(--brown);
  font-weight: 500;
}

/* Definition-style rows (key: value pattern) */
.legal-section .legal-def {
  margin: 14px 0 18px;
  padding-left: 20px;
  border-left: 2px solid rgba(196, 131, 107, 0.30);
}

.legal-section .legal-def p {
  margin-bottom: 12px;
}

.legal-section .legal-def p:last-child {
  margin-bottom: 0;
}

/* Callout · important note */
.legal-callout {
  background: rgba(212, 160, 136, 0.10);
  border-left: 3px solid var(--terracotta);
  padding: 22px 26px;
  margin: 30px 0;
  border-radius: 4px;
}

.legal-callout p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--brown);
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

.legal-callout p strong {
  color: var(--brown);
  font-weight: 600;
}

/* Strong emphasis block · for critical statements */
.legal-emphasis {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--brown);
  line-height: 1.4;
  margin: 28px 0;
  text-align: center;
  padding: 24px 28px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid rgba(212, 160, 136, 0.25);
  text-wrap: balance;
}

.legal-emphasis em {
  font-style: italic;
  color: var(--terracotta);
}

/* Section divider */
.legal-divider {
  width: 60px;
  height: 1px;
  background: var(--peach);
  margin: 60px auto;
  opacity: 0.6;
  border: none;
}

/* ============================================
   RETURN TO SALES PAGE CTA · end of legal page
   Prominent block inviting the reader back to the offer
   ============================================ */
.return-cta {
  margin: 80px auto 0;
  padding: 48px 36px 44px;
  background: linear-gradient(135deg, var(--white) 0%, var(--cream-dark) 100%);
  border: 1px solid rgba(212, 160, 136, 0.30);
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(74, 46, 34, 0.08);
}

.return-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--peach) 0%, var(--terracotta) 50%, var(--peach) 100%);
  border-radius: 16px 16px 0 0;
}

.return-cta::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--peach);
  opacity: 0.10;
  pointer-events: none;
}

.return-cta-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.return-cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 28px;
  color: var(--brown);
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  text-wrap: balance;
  position: relative;
  z-index: 2;
}

.return-cta-title em {
  font-style: italic;
  color: var(--terracotta);
}

.return-cta-subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: var(--brown-mid);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.return-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--terracotta);
  color: var(--white);
  text-decoration: none;
  padding: 18px 36px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(196, 131, 107, 0.32), 0 2px 4px rgba(196, 131, 107, 0.15);
  position: relative;
  z-index: 2;
}

.return-cta-button:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(196, 131, 107, 0.42), 0 4px 6px rgba(196, 131, 107, 0.20);
}

.return-cta-button svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.return-cta-button:hover svg {
  transform: translateX(3px);
}

.return-cta-guarantee {
  margin-top: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--brown-mid);
  position: relative;
  z-index: 2;
}

/* === FOOTER (mirrors main page) === */
.legal-footer {
  background: var(--brown);
  color: var(--peach-light);
  padding: 70px 24px 50px;
  border-top: 1px solid rgba(212, 160, 136, 0.15);
}

.legal-footer-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.footer-crisis {
  background: rgba(212, 160, 136, 0.08);
  border: 1px solid rgba(212, 160, 136, 0.20);
  border-radius: 12px;
  padding: 24px 26px;
  margin: 0 auto 36px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  max-width: 720px;
}

.footer-crisis-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--peach);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}

.footer-crisis p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--peach-light);
  margin: 0;
  opacity: 0.92;
}

.footer-crisis p strong {
  color: var(--peach-light);
  font-weight: 500;
}

.footer-help {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--peach-light);
  margin-bottom: 20px;
  letter-spacing: 0.2px;
}

.footer-help a {
  color: var(--peach-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 205, 184, 0.45);
  transition: border-color 0.2s ease;
  font-style: normal;
}

.footer-help a:hover {
  border-color: var(--peach-light);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 32px;
}

.footer-links a {
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--peach);
  text-decoration: none;
  opacity: 0.85;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--peach-light);
}

.footer-links a.current {
  color: var(--peach-light);
  opacity: 1;
  border-bottom: 1px solid var(--peach);
  padding-bottom: 2px;
}

.footer-links-sep {
  font-size: 12px;
  color: var(--peach);
  opacity: 0.4;
  user-select: none;
}

.footer-divider {
  width: 80px;
  height: 1px;
  background: var(--peach);
  opacity: 0.25;
  margin: 0 auto 32px;
  border: none;
}

.footer-disclaimer {
  font-size: 11px;
  line-height: 1.65;
  color: var(--peach);
  opacity: 0.65;
  margin-bottom: 18px;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.footer-disclaimer a {
  color: var(--peach-light);
  text-decoration: underline;
  text-decoration-color: rgba(232, 205, 184, 0.4);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.footer-disclaimer a:hover {
  text-decoration-color: var(--peach-light);
}

.footer-copyright {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--peach);
  opacity: 0.55;
  font-weight: 500;
  margin-top: 32px;
}

/* === RESPONSIVE === */
@media (max-width: 700px) {
  .legal-header {
    padding: 16px 20px;
  }

  .legal-back {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .legal-brand {
    font-size: 18px;
  }

  .legal-brand-mark span {
    width: 10px;
    height: 10px;
  }

  .legal-main {
    padding: 50px 20px 70px;
  }

  .legal-h1 {
    font-size: 32px;
  }

  .legal-h2 {
    font-size: 22px;
  }

  .legal-intro {
    font-size: 18px;
  }

  .legal-section p,
  .legal-section ul li {
    font-size: 16px;
  }

  .legal-emphasis {
    font-size: 18px;
    padding: 20px 22px;
  }

  .return-cta {
    margin-top: 60px;
    padding: 36px 24px 32px;
  }

  .return-cta-title {
    font-size: 22px;
  }

  .return-cta-subtitle {
    font-size: 14px;
    margin-bottom: 22px;
  }

  .return-cta-button {
    padding: 16px 28px;
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  .legal-footer {
    padding: 50px 18px 40px;
  }

  .footer-crisis {
    padding: 20px 18px;
    gap: 12px;
  }

  .footer-crisis p {
    font-size: 12px;
  }

  .footer-help {
    font-size: 14px;
  }

  .footer-links {
    gap: 4px 10px;
  }

  .footer-links a {
    font-size: 11px;
  }

  .footer-disclaimer {
    font-size: 10.5px;
  }

  .footer-copyright {
    font-size: 10px;
    letter-spacing: 1.2px;
  }
}
