/* ============================================================
   MIGA LAB — estilos para páginas legales (privacidad, términos, seguridad)
   ============================================================ */

.legal-page {
  background: #fafaf6;
  color: #1a1a1a;
}

.legal {
  padding: clamp(2rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
}

.legal__article {
  max-width: 760px;
  margin: 0 auto;
}

.legal__header {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(24, 84, 42, 0.18);
}

.legal__kicker {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #18542A;
  margin: 0 0 0.5rem;
}

.legal__title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: #18542A;
}

.legal__meta {
  font-size: 0.9rem;
  color: #6a6a6a;
  margin: 0;
}

.legal__section {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.legal__section h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.85rem;
  color: #1a1a1a;
}

.legal__section p {
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 1rem;
  color: #2a2a2a;
}

.legal__section a {
  color: #18542A;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal__section a:hover {
  color: #D52518;
}

.legal__list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal__list li {
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 0.5rem;
  color: #2a2a2a;
}

.legal__section--note {
  margin-top: 3rem;
  padding: 1.5rem 1.75rem;
  background: rgba(255, 201, 38, 0.18);
  border-left: 4px solid #FFC926;
  border-radius: 8px;
}

.legal__section--note p {
  margin: 0;
}

.legal__footer {
  border-top: 1px solid rgba(24, 84, 42, 0.18);
  padding: 2rem 0;
  background: #fff;
}

.legal__footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.legal__footer p {
  margin: 0;
  font-size: 0.9rem;
  color: #4a4a4a;
}

.legal__footer nav {
  display: flex;
  gap: 1.5rem;
}

.legal__footer nav a {
  font-size: 0.9rem;
  color: #4a4a4a;
  text-decoration: none;
}

.legal__footer nav a:hover {
  color: #18542A;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .legal__footer .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   Banner de consentimiento de cookies (Google Consent Mode v2)
   ============================================================ */

.consent-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border: 1px solid rgba(24, 84, 42, 0.2);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  font-family: "Inter", system-ui, sans-serif;
  display: none;
}

.consent-banner[data-visible="true"] {
  display: block;
}

.consent-banner__title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #18542A;
}

.consent-banner__text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #2a2a2a;
  margin: 0 0 1rem;
}

.consent-banner__text a {
  color: #18542A;
  text-decoration: underline;
}

.consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.consent-banner__btn {
  flex: 1 1 auto;
  min-width: 140px;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, background 0.12s ease;
}

.consent-banner__btn--accept {
  background: #18542A;
  color: #fff;
}

.consent-banner__btn--reject {
  background: #f0f0e8;
  color: #1a1a1a;
}

.consent-banner__btn--config {
  background: transparent;
  color: #4a4a4a;
  text-decoration: underline;
  border: none;
  padding: 0.7rem 0.5rem;
  flex: 0 0 auto;
}

.consent-banner__btn:hover {
  transform: translateY(-1px);
}
