/* =====================================================================
   3 GARRAFAS NEVERÍA — legal.css
   Estilos compartidos para privacidad.php y terminos.php
   Layout editorial/magazine con TOC sticky
   ===================================================================== */

.page-legal { padding-top: 106px; background: #fcf1d8; }

/* ═════ HERO ═════ */
.leg-hero {
  padding: 60px 0 44px;
  border-bottom: 1px solid rgba(107,64,35,0.12);
  position: relative;
  overflow: hidden;
}
.leg-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}
.leg-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Grift', 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #e95068;
  margin: 0 0 20px;
}
.leg-hero-eyebrow-dots {
  display: inline-flex;
  gap: 3px;
}
.leg-hero-eyebrow-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
}
.leg-hero-eyebrow-dots span:nth-child(1) { background: #ffd400; }
.leg-hero-eyebrow-dots span:nth-child(2) { background: #5448dd; }
.leg-hero-eyebrow-dots span:nth-child(3) { background: #e95068; }

.leg-hero-title {
  font-family: 'MidcentDisco', 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(46px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -1.5px;
  color: #6b4023;
  margin: 0 0 24px;
}
.leg-hero-updated {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #6b4023;
  color: #fcf1d8;
  border-radius: 100px;
  font-family: 'Grift', 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
}
.leg-hero-updated svg { flex-shrink: 0; }

/* Decoración */
.leg-hero-decor { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.leg-hero-decor-dot {
  position: absolute;
  border-radius: 50%;
}
.leg-hero-decor-dot--1 { width: 10px; height: 10px; top: 22%; right: 10%; background: #6b4023; }
.leg-hero-decor-dot--2 { width: 6px;  height: 6px;  top: 55%; right: 20%; background: #c22962; }
.leg-hero-decor-dot--3 { width: 14px; height: 14px; bottom: 15%; right: 6%; background: #3d33a8; }

/* ═════ BODY LAYOUT ═════ */
.leg-body { padding: 60px 0 100px; }
.leg-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 72px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  align-items: start;
}

/* ═════ TOC STICKY ═════ */
.leg-toc {
  position: sticky;
  top: 120px;
  align-self: start;
  padding: 24px 22px;
  background: #fff;
  border-radius: 18px;
  border: 2px solid #6b4023;
}
.leg-toc-label {
  display: block;
  font-family: 'Grift', 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e95068;
  margin: 0 0 14px;
}
.leg-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: toc;
}
.leg-toc-list li { counter-increment: toc; }
.leg-toc-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 4px 8px 8px;
  font-family: 'Grift', 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.35;
  color: #6b4023;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color .2s ease, border-color .2s ease, padding-left .2s ease;
}
.leg-toc-link::before {
  content: counter(toc, decimal-leading-zero);
  font-family: 'MidcentDisco', 'Fraunces', serif;
  font-weight: 400;
  font-size: 13px;
  color: #a8907d;
  flex-shrink: 0;
  letter-spacing: -0.2px;
}
.leg-toc-link:hover {
  color: #5448dd;
  padding-left: 12px;
}
.leg-toc-link.is-active {
  color: #5448dd;
  border-left-color: #5448dd;
}
.leg-toc-link.is-active::before { color: #5448dd; }

/* ═════ CONTENT ═════ */
.leg-content { max-width: 720px; }
.leg-section {
  padding: 40px 0 48px;
  border-bottom: 1px solid rgba(107,64,35,0.12);
  scroll-margin-top: 120px;
  counter-increment: section;
}
.leg-section:first-child { padding-top: 0; }
.leg-section:last-child { border-bottom: none; }

.leg-section-num {
  display: block;
  font-family: 'MidcentDisco', 'Fraunces', serif;
  font-weight: 400;
  font-size: 62px;
  line-height: 0.9;
  color: #6b4023;
  opacity: 0.18;
  margin: 0 0 14px;
  letter-spacing: -2px;
}
.leg-section h2 {
  font-family: 'MidcentDisco', 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1;
  letter-spacing: -0.6px;
  color: #6b4023;
  margin: 0 0 22px;
}
.leg-section h3 {
  font-family: 'MidcentDisco', 'Fraunces', serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.3px;
  color: #6b4023;
  margin: 26px 0 12px;
}
.leg-section p {
  font-family: 'Grift', 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #6b4023;
  opacity: 0.92;
  margin: 0 0 16px;
}
.leg-section p:last-child { margin-bottom: 0; }
.leg-section a {
  color: #5448dd;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.leg-section a:hover { color: #e95068; }
.leg-section strong { color: #6b4023; font-weight: 700; }

.leg-section ul,
.leg-section ol {
  padding-left: 22px;
  margin: 0 0 18px;
  font-family: 'Grift', 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #6b4023;
}
.leg-section li {
  margin-bottom: 8px;
  padding-left: 4px;
}
.leg-section ul li::marker { color: #e95068; }
.leg-section ol li::marker { color: #5448dd; font-weight: 700; }

/* Callout destacado — para datos del responsable, contacto derechos ARCO, etc. */
.leg-callout {
  background: #ffe066;
  border: 2px solid #6b4023;
  border-radius: 16px;
  padding: 26px 28px;
  margin: 22px 0;
  position: relative;
}
.leg-callout-label {
  display: inline-block;
  font-family: 'Grift', 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e95068;
  margin: 0 0 10px;
}
.leg-callout p { font-size: 15px; line-height: 1.6; margin: 0; }
.leg-callout p + p { margin-top: 8px; }
.leg-callout strong { color: #6b4023; }

.leg-callout--purple {
  background: #ede0f7;
  border-color: #5448dd;
}
.leg-callout--purple .leg-callout-label { color: #5448dd; }

.leg-callout--pink {
  background: #fce0e5;
  border-color: #e95068;
}

/* Datos de contacto en formato tabla */
.leg-contact-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-family: 'Grift', 'Manrope', sans-serif;
}
.leg-contact-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(107,64,35,0.12);
  vertical-align: top;
  font-size: 15px;
  color: #6b4023;
  line-height: 1.55;
}
.leg-contact-table td:first-child {
  font-weight: 700;
  width: 42%;
  color: #6b4023;
}
.leg-contact-table tr:last-child td { border-bottom: none; }

/* ═════ CTA FINAL ═════ */
.leg-cta-final {
  background: #6b4023;
  padding: 80px 0;
  color: #fcf1d8;
}
.leg-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.leg-cta-eyebrow {
  display: inline-block;
  font-family: 'Grift', 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ffd400;
  margin: 0 0 14px;
}
.leg-cta-title {
  font-family: 'MidcentDisco', 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(38px, 5.5vw, 56px);
  line-height: 1;
  letter-spacing: -1px;
  color: #ffd400;
  margin: 0 0 16px;
}
.leg-cta-sub {
  font-family: 'Grift', 'Manrope', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: #fcf1d8;
  opacity: 0.9;
  margin: 0 0 32px;
}
.leg-cta-btns {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.leg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 22px 15px 26px;
  border: none;
  border-radius: 100px;
  font-family: 'Grift', 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.6px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .3s ease, background-color .2s ease;
}
.leg-btn--primary { background: #ffd400; color: #6b4023; }
.leg-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(255,212,0,0.5); }
.leg-btn--ghost {
  background: transparent;
  color: #fcf1d8;
  border: 2px solid #fcf1d8;
}
.leg-btn--ghost:hover { background: #fcf1d8; color: #6b4023; }
.leg-btn-arrow {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #6b4023;
  color: #ffd400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.leg-btn:hover .leg-btn-arrow { transform: translateX(2px) rotate(-12deg); }
.leg-btn--primary .leg-btn-arrow { background: #6b4023; color: #ffd400; }

/* ═════ RESPONSIVE ═════ */
@media (max-width: 960px) {
  .leg-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .leg-toc {
    position: static;
    order: -1;
  }
  .leg-section-num { font-size: 52px; }
}
@media (max-width: 560px) {
  .page-legal { padding-top: 88px; }
  .leg-hero { padding: 44px 0 32px; }
  .leg-hero-inner { padding: 0 24px; }
  .leg-body { padding: 40px 0 70px; }
  .leg-layout { padding: 0 24px; gap: 24px; }
  .leg-toc { padding: 20px 18px; }
  .leg-section { padding: 32px 0 36px; }
  .leg-section-num { font-size: 42px; }
  .leg-section p, .leg-section ul, .leg-section ol { font-size: 15px; }
  .leg-callout { padding: 20px 22px; }
  .leg-contact-table td { padding: 10px 12px; font-size: 14px; }
  .leg-cta-final { padding: 60px 0; }
}
