/* ==== assets/css/40-legal.css ==== */
/* Organic Pet · páginas legales /legal/<slug>/ (bundle «legal»). Dueño: extras.
   Lectura cómoda (columna de 860 px, 15,5 px / 1,75) con la paleta de la landing:
   navy #12384F, teal #16B6BE / #087B81, lima #CAF56B, tarjetas blancas de radio 20 px. */

.opleg-cuerpo {
  /* cabecera · contenido (ocupa el alto sobrante) · pie */
  grid-template-rows: auto 1fr auto;
}

.opleg {
  --opleg-navy: #12384F;
  --opleg-teal: #16B6BE;
  --opleg-teal-osc: #087B81;
  --opleg-lima: #CAF56B;
  --opleg-texto: #3D4F5A;
  --opleg-suave: #5A6B76;
  --opleg-borde: #DCEAED;
  --opleg-menta: #E0F4F3;
  background: #F6FAFB;
  color: var(--opleg-texto);
  font-family: Poppins, sans-serif;
  letter-spacing: .01em;
  padding: 22px 0 56px;
}

.opleg:focus,
.opleg:focus-visible { outline: none; box-shadow: none; }
.opleg *, .opleg *::before, .opleg *::after { box-sizing: border-box; }

.opleg-ancho {
  max-width: 892px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- migas ---------- */
.opleg-migas ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--opleg-suave);
}

.opleg-migas li + li::before {
  content: "›";
  margin-right: 8px;
  color: #9AB0B8;
}

.opleg-migas a { color: var(--opleg-teal-osc); text-underline-offset: 3px; }

/* ---------- documento ---------- */
.opleg-documento {
  padding: 26px 18px 30px;
  border: 1.5px solid var(--opleg-borde);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(18, 56, 79, .07);
}

.opleg-encabezado {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid #EDF3F4;
}

.opleg-etiqueta {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--opleg-menta);
  color: var(--opleg-teal-osc);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.opleg-titulo {
  margin: 0 0 8px;
  color: var(--opleg-navy);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.01em;
}

.opleg-fecha {
  margin: 0;
  color: var(--opleg-suave);
  font-size: 13.5px;
}

/* ---------- resumen ---------- */
.opleg-resumen {
  margin: 0 0 26px;
  padding: 16px 18px;
  border: 1.5px solid #B8E4E3;
  border-radius: 16px;
  background: #F2FBFA;
}

.opleg-resumen__titulo {
  margin: 0 0 8px;
  color: var(--opleg-navy);
  font-size: 15px;
  font-weight: 700;
}

.opleg-resumen ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.opleg-resumen li {
  position: relative;
  margin: 0 0 6px;
  padding-left: 28px;
  font-size: 14.5px;
  line-height: 1.6;
}

.opleg-resumen li:last-child { margin-bottom: 0; }

.opleg-resumen li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--opleg-lima) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312384F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

.opleg-resumen strong { color: var(--opleg-navy); }

/* ---------- texto ---------- */
.opleg-texto {
  font-size: 15.5px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.opleg-texto > :first-child { margin-top: 0; }

.opleg-intro {
  font-size: 16px;
  color: var(--opleg-navy);
}

.opleg-texto h2 {
  margin: 34px 0 10px;
  padding-top: 24px;
  border-top: 1px solid #EDF3F4;
  color: var(--opleg-navy);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  scroll-margin-top: 140px;
}

.opleg-texto > h2:first-child,
.opleg-texto > .opleg-intro + h2,
.opleg-texto > .opleg-boton-fila + h2 { margin-top: 26px; }

.opleg-texto p { margin: 0 0 12px; }

.opleg-texto ul {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.opleg-texto ul li {
  position: relative;
  margin: 0 0 7px;
  padding-left: 22px;
}

.opleg-texto ul li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--opleg-teal);
}

.opleg-texto strong { color: var(--opleg-navy); font-weight: 700; }

.opleg-texto a {
  color: var(--opleg-teal-osc);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.opleg-texto a:hover { color: var(--opleg-navy); }

/* Datos del comerciante */
.opleg-texto ul.opleg-datos {
  padding: 14px 16px;
  border: 1px solid #E5EEF0;
  border-radius: 14px;
  background: #FAFCFD;
}

.opleg-texto ul.opleg-datos li { padding-left: 0; margin-bottom: 4px; }
.opleg-texto ul.opleg-datos li::before { display: none; }

/* Marcador visible de dato faltante */
.opleg-pendiente {
  display: inline;
  padding: 1px 6px;
  border: 1px dashed #C99A00;
  border-radius: 6px;
  background: #FFF1B8;
  color: #6B4E00;
  font-size: .92em;
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Botón de WhatsApp (contacto) */
.opleg-boton-fila { margin: 18px 0 8px; }

.opleg-texto a.opleg-boton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  background: #25D366;
  color: #0D2B3E;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(37, 211, 102, .25);
}

.opleg-texto a.opleg-boton:hover { background: #3BE07A; color: #0D2B3E; }
.opleg-texto a.opleg-boton svg { flex: 0 0 auto; }

/* ---------- otras políticas ---------- */
.opleg-otras { margin-top: 28px; }

.opleg-otras__titulo {
  margin: 0 0 12px;
  color: var(--opleg-navy);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.opleg-otras ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.opleg-otras a {
  display: inline-block;
  padding: 9px 15px;
  border: 1.5px solid var(--opleg-borde);
  border-radius: 999px;
  background: #fff;
  color: var(--opleg-navy);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.opleg-otras a:hover { border-color: var(--opleg-teal); }

.opleg-otras a[aria-current="page"] {
  border-color: var(--opleg-navy);
  background: var(--opleg-navy);
  color: #fff;
}

/* ---------- escritorio ---------- */
@media screen and (min-width: 750px) {
  .opleg { padding: 32px 0 80px; }
  .opleg-ancho { padding: 0 32px; }
  .opleg-documento { padding: 44px 56px 48px; }
  .opleg-titulo { font-size: 36px; }
  .opleg-texto h2 { font-size: 21px; }
  .opleg-resumen { padding: 18px 22px; }
}

@media print {
  .opleg { background: #fff; padding: 0; }
  .opleg-documento { border: 0; box-shadow: none; padding: 0; }
  .opleg-otras, .opleg-migas { display: none; }
}
