/* ============================================================
   Joya — Páginas legales (Privacidad / Términos y condiciones)
   Reutiliza el lenguaje visual de la home: caja central con
   blur + transparencia, marquees arriba/abajo, JOYA de fondo
   y grilla de puntos.
   ============================================================ */

/* Layout: caja centrada + links de pie debajo */
.page-wrap {
  flex-flow: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 24px 12px;
  display: flex;
}

/* Cualquier caja centrada dentro del wrapper (incluida la de la home) */
.page-wrap > .container {
  flex: 0 1 auto;
  min-height: 0;
  max-height: min(100%, 720px);
}

.container.is-legal {
  max-width: 420px;
}

.container.is-legal .marquee-text.swiper {
  max-width: 100%;
  flex: none;
}

.container.is-legal .marquee-text.swiper.last {
  margin-top: 0;
}

/* Área de texto scrolleable dentro de la caja */
.legal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  margin: 4px 0;
  padding-right: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.legal-scroll::-webkit-scrollbar {
  width: 4px;
}

.legal-scroll::-webkit-scrollbar-track {
  background: #0000;
}

.legal-scroll::-webkit-scrollbar-thumb {
  background: #00000026;
  border-radius: 4px;
}

.legal-scroll:hover::-webkit-scrollbar-thumb {
  background: #00000040;
}

.legal-scroll {
  scrollbar-width: thin;
  scrollbar-color: #00000026 transparent;
}

/* Tipografía del documento — misma familia punteada de los marquees */
.legal-title,
.legal-meta,
.legal-note,
.legal-heading,
.legal-text,
.legal-list {
  color: #000;
  font-family: Dotrice, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

.legal-title {
  margin-bottom: 14px;
}

.legal-meta {
  margin-bottom: 14px;
}

.legal-note {
  margin-bottom: 14px;
}

.legal-heading {
  margin-top: 20px;
  margin-bottom: 10px;
}

.legal-text {
  margin-bottom: 14px;
}

.legal-list {
  margin-bottom: 14px;
  padding-left: 0;
  list-style: none;
}

.legal-list li {
  margin-bottom: 4px;
}

.legal-text a,
.legal-list a {
  color: inherit;
  text-underline-offset: 2px;
}

.legal-text a:hover,
.legal-list a:hover {
  color: #ff23ff;
}

/* Bloque destacado (mismo rosa de la home) */
.legal-highlight {
  color: #fff;
  background-color: #ff23ff;
  margin: 0 0 14px;
  padding: 12px 14px;
  font-family: Dotrice, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
}

/* Links de pie: Privacidad · Términos y condiciones */
.legal-footer {
  z-index: 1;
  grid-column-gap: 40px;
  grid-row-gap: 8px;
  flex: none;
  flex-flow: row;
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
}

.legal-link {
  color: #b0b0b0;
  letter-spacing: -.02rem;
  font-family: PPNeueYork, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.legal-link:hover,
.legal-link.is-current {
  color: #000;
}

@media screen and (max-width: 479px) {
  .page-wrap {
    gap: 10px;
    padding: 12px 0 16px;
  }

  .page-wrap > .container {
    max-height: 100%;
  }

  .container.is-legal {
    max-width: 100%;
  }

  .legal-footer {
    grid-column-gap: 24px;
  }
}
