.legal-text-container {
  max-width: 1440px;
  margin: 0 auto;
  margin-bottom: 4rem;
  padding: 4rem 1.25rem 2rem 1.25rem;
}
.legal-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3.56rem;
}

/* Sidebar */
.legal-text-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 20.93rem;
}

.legal-text-sidebar h1 {
  font-size: 1.87rem;
  font-weight: 600;
  line-height: 120%;
  color: var(--blue);
}

.legal-text-sidebar p {
  color: var(--gray-dark);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 100%;
}

/* Content */
.legal-text-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.legal-text-cards {
  display: flex;
  flex-direction: column;
  background: var(--gray-light);
  border-radius: 1rem;
  padding: 1.5rem 1rem 1rem 1rem;
  gap: 3.5rem;
}
.legal-text-card {
  display: flex;
  flex-direction: column;
  width: 18.93rem;
  gap: 1.5rem;
}

.legal-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 120%;
  color: var(--black);
}

.legal-card-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 100%;
  color: var(--gray-dark);
}
.legal-text-card p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 150%;
  color: var(--gray-dark);
  letter-spacing: 0px;
 
}


.legal-text-list {
  background-color: var(--white);
  border-radius: .5rem;
  padding: .69rem 1.13rem .69rem 1.13rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  list-style: disc inside;
  width: 18.93rem;
}

.legal-text-list li {
  width: 16.78rem;
  min-height: 4.5rem;
  border-bottom: 1px solid var(--gray-light);
  color: var(--gray-dark);
  border-radius: 6px;
  padding: .75rem 0.63rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0px;
  text-align: left;
}
.legal-sticky-banner {
  width: 100%;
  background: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  font-family: 'Montserrat', sans-serif;
  padding: .75rem .625rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  opacity: 1 ;
  visibility: visible ;
  pointer-events: auto ;
  transform: translateY(0) ;
}

.legal-sticky-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.legal-sticky-banner-content a {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.legal-sticky-banner-img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

/* Selector de idioma en el sticky-banner */
.legal-sticky-banner-language-selector {
  display: flex;
  align-items: center;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* Estilos para el selector de idioma WPML */
.legal-sticky-banner-language-selector .wpml-language-selector {
  display: flex;
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 2rem;
  padding: 0.25rem;
  box-shadow: 0 2px 8px rgba(67, 50, 255, 0.15);
  overflow: hidden;
}

.legal-sticky-banner-language-selector .wpml-lang-option {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  min-width: 3rem;
  text-align: center;
  position: relative;
  z-index: 2;
  text-decoration: none;
  color: var(--blue);
}

.legal-sticky-banner-language-selector .wpml-lang-option.wpml-lang-active {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 4px rgba(67, 50, 255, 0.3);
}

.legal-sticky-banner-language-selector .wpml-lang-option:hover:not(.wpml-lang-active) {
  background: var(--white-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(67, 50, 255, 0.2);
}

.legal-sticky-banner-language-selector .wpml-lang-option.wpml-lang-active:hover {
  background: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(67, 50, 255, 0.4);
}



/* Responsivo */
@media (max-width: 600px) {
  .legal-sticky-banner {
    padding: 2.25rem 1.25rem .75rem 1.25rem;
  }
  
  .legal-sticky-banner-content {
    justify-content: flex-start;
  }
  
  .legal-sticky-banner-img {
    max-height: 32px;
  }
  
  .legal-sticky-banner-language-selector {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .legal-sticky-banner-language-selector .wpml-language-selector {
    padding: 0.2rem;
  }
  
  .legal-sticky-banner-language-selector .wpml-lang-option {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    min-width: 2.5rem;
  }
}


@media (min-width: 768px) {
  .legal-text-container {
    padding: 4rem 5rem;
    gap: 2.5rem;
  }
  .legal-text-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .legal-text-sidebar {
    flex: 1;
    max-width: 25.81rem;
    height: fit-content;
    padding-top: 7rem;
    padding-bottom: 13.5rem;
    gap: 1.75rem;
  }
  .legal-text-sidebar h1 {
    font-size: 2.5rem;
    color: var(--blue);
    font-weight: 600;
    line-height: 120%;
  }
  .legal-text-sidebar p {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--gray-dark);
    line-height: 100%;
  }

  .legal-text-content {
    max-width: 51.18rem;
    height: fit-content;
    padding-top: 2.62rem;
    gap: 3.5rem;
    flex: 3;
  }
  .legal-text-cards {
    padding: 5rem;
  }
  .legal-text-card {
    gap: 1.5rem;
    width: 41.18rem;
  }
  
  .legal-text-card .legal-card-title {
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 120%;
    color: var(--black);
  }
  
  .legal-text-card .legal-card-subtitle {
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 100%;
    color: var(--gray-dark);
  }
  
  .legal-text-card p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 0px;
  }
  .legal-text-list {
    width: 41.18rem;
    padding: 1rem 1.75rem ;
    gap:1.5rem;
  }
  .legal-text-list li {
    width: 37.68rem;
    min-height: 3rem;
  }
}

/* Sticky sidebar para pantallas de 1024px en adelante */
@media (min-width: 1024px) {
  .legal-text-wrapper {
    height: 100vh;
    overflow: hidden;
  }

  .legal-text-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
    padding-top: 7rem;
    padding-bottom: 2rem;
  }

  .legal-text-content {
    height: 100vh;
    overflow-y: auto;
    padding-right: 1rem;
    /* Ocultar scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer y Edge */
  }

  /* Ocultar scrollbar en Webkit (Chrome, Safari) */
  .legal-text-content::-webkit-scrollbar {
    display: none;
  }
}