/* ============================================
   PÁGINAS LEGALES — Lucas & Lola
   Self-contained · scope .ll-legal
   Reutilizable: Aviso legal, Privacidad, Cookies, Condiciones
   Fonts: Poppins (display) + Plus Jakarta Sans (body)
   Enqueue: functions.php → ll-legal (varias páginas)
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

.ll-legal {
  --plum: #781562;
  --plum-dark: #5e0f4d;
  --ink: #1A1A1A;
  --muted: #6b6b6b;
  --rose-soft: #fdeef0;
  --paper: #fbf7f4;
  --line: #ece4e9;
  --white: #ffffff;

  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
  line-height: 1.75;
  font-size: 15.5px;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
  -webkit-font-smoothing: antialiased;
}
.ll-legal * { box-sizing: border-box; }
.ll-legal h1, .ll-legal h2, .ll-legal h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
}
.ll-legal p { margin: 0 0 14px; color: var(--ink); }
.ll-legal p:last-child { margin-bottom: 0; }
.ll-legal a { color: var(--plum); text-decoration: none; font-weight: 600; }
.ll-legal a:hover { text-decoration: underline; }
.ll-legal strong { color: var(--ink); font-weight: 700; }

/* ---------- HEADER ---------- */
.ll-legal__header {
  padding: 50px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.ll-legal__eyebrow {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--plum);
  background: var(--rose-soft);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.ll-legal__title {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.ll-legal__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.ll-legal__meta svg { width: 15px; height: 15px; stroke: var(--plum); fill: none; }

/* ---------- ÍNDICE (ToC) ---------- */
.ll-legal__toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 44px;
}
.ll-legal__toc-title {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--plum);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 14px;
}
.ll-legal__toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 28px;
  counter-reset: toc;
}
.ll-legal__toc li { counter-increment: toc; }
.ll-legal__toc a {
  display: flex;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 5px 0;
}
.ll-legal__toc a::before {
  content: counter(toc) ".";
  color: var(--plum);
  font-weight: 700;
  flex-shrink: 0;
  min-width: 22px;
}
.ll-legal__toc a:hover { color: var(--plum); text-decoration: none; }

/* ---------- SECCIONES ---------- */
.ll-legal__section {
  margin-bottom: 36px;
  scroll-margin-top: 100px;
}
.ll-legal__section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--plum);
}
.ll-legal__section h2 .num { color: var(--plum); }

/* ---------- CAJA DE DATOS (titular / contacto) ---------- */
.ll-legal__data {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 18px 0;
}
.ll-legal__data dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 22px;
  margin: 0;
}
.ll-legal__data dt {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.ll-legal__data dd { margin: 0; font-size: 15px; color: var(--ink); }

/* ---------- NOTA DESTACADA ---------- */
.ll-legal__note {
  background: var(--rose-soft);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 18px 0;
  font-size: 14.5px;
  color: var(--plum-dark);
}
.ll-legal__note strong { color: var(--plum-dark); }

/* ---------- FOOTER ---------- */
.ll-legal__footer {
  margin: 44px 0 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 700px) {
  .ll-legal { font-size: 15px; line-height: 1.7; }
  .ll-legal__header { padding: 34px 0 24px; }
  .ll-legal__toc { padding: 20px 22px; }
  .ll-legal__toc ol { grid-template-columns: 1fr; }
  .ll-legal__data { padding: 20px 22px; }
  .ll-legal__data dl { grid-template-columns: 1fr; gap: 3px 0; }
  .ll-legal__data dt { margin-top: 10px; }
  .ll-legal__data dd { margin-bottom: 4px; }
}

/* ============================================
   LISTAS DENTRO DE SECCIONES
   ============================================ */
.ll-legal__section ul,
.ll-legal__section ol {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.ll-legal__section li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  line-height: 1.7;
}
.ll-legal__section ul li::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--plum);
}
.ll-legal__section ol { counter-reset: step; }
.ll-legal__section ol li { counter-increment: step; padding-left: 30px; }
.ll-legal__section ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--plum);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   FAQ (páginas legales con preguntas frecuentes)
   ============================================ */
.ll-legal__faq { margin: 48px 0 0; scroll-margin-top: 100px; }
.ll-legal__faq h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}
.ll-legal__faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.ll-legal__faq summary {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.ll-legal__faq summary::-webkit-details-marker { display: none; }
.ll-legal__faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--plum);
  flex-shrink: 0;
  line-height: 1;
}
.ll-legal__faq details[open] summary { color: var(--plum); }
.ll-legal__faq details[open] summary::after { content: '−'; }
.ll-legal__faq__answer { font-size: 14px; color: var(--muted); padding-top: 12px; line-height: 1.7; }