/* =======================================================
   LEGAL PAGES GLOBAL STYLES (Privacy, Terms, Cookies)
   ======================================================= */

/* --- HERO REUSE (Architectural Tech) --- */
.legal-hero-modern {
  position: relative;
  padding: 140px 0 80px;
  background-color: #050C18;
  overflow: hidden;
}

.hero-tech-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(23, 60, 122, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 60, 122, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
}

.hero-split-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.hero-eyebrow .line {
  width: 40px;
  height: 2px;
  background-color: var(--color-orange);
}

.hero-eyebrow .text {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #94A3B8;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  color: #fff;
  margin-bottom: 25px;
}

.hero-title .text-yellow {
  color: var(--color-yellow);
}

.legal-doc-badge {
  background: rgba(16, 42, 86, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(10px);
}

.legal-doc-badge span.material-symbols-rounded {
  font-size: 2.5rem;
  color: var(--color-yellow);
}

.badge-text strong {
  display: block;
  font-size: 0.7rem;
  color: #94A3B8;
  letter-spacing: 1px;
}

.badge-text span {
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

/* --- MAIN CONTENT LAYOUT --- */
.legal-main-content {
  padding: 100px 0;
  background-color: #0F172A;
}

.legal-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  align-items: flex-start;
}

/* Sidebar TOC */
.legal-sidebar {
  position: sticky;
  top: 120px;
}

.toc-wrapper h4 {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 25px;
  border-left: 3px solid var(--color-orange);
  padding-left: 15px;
}

.toc-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toc-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.3s;
  padding: 5px 0;
}

.toc-links a:hover {
  color: var(--color-yellow);
  transform: translateX(5px);
}

/* Text Content */
.legal-text-body {
  max-width: 850px;
}

.legal-block {
  margin-bottom: 60px;
}

.legal-block h2 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.legal-block p {
  color: #CBD5E1;
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.legal-block strong {
  color: #fff;
}

/* Cards inside text */
.legal-sub-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  padding: 30px;
  margin: 25px 0;
  border-left: 4px solid var(--color-blue);
}

.legal-sub-card h3 {
  color: var(--color-yellow);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.legal-block ul,
.legal-block ol {
  margin-left: 20px;
  color: #94A3B8;
}

.legal-block li {
  margin-bottom: 12px;
  line-height: 1.6;
}

/* Special Highlight Block (For SAMI) */
.legal-block.highlight {
  background: rgba(23, 60, 122, 0.1);
  border: 1px solid rgba(23, 60, 122, 0.3);
  padding: 40px;
  border-radius: 30px;
  position: relative;
}

.legal-block.highlight span.material-symbols-rounded {
  font-size: 3rem;
  color: var(--color-yellow);
  opacity: 0.2;
  position: absolute;
  top: 20px;
  right: 30px;
}

/* Contact Box */
.contact-box-minimal {
  background: #050C18;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #CBD5E1;
  line-height: 1.8;
}

.contact-box-minimal a {
  color: var(--color-yellow);
  text-decoration: none;
  font-weight: 700;
}

/* List with Dots */
.check-list {
  list-style: none !important;
  margin-left: 0 !important;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-list .dot {
  width: 8px;
  height: 8px;
  background: var(--color-orange);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    display: none;
  }

  /* Ocultar TOC en tablet/móvil para simplificar */
  .hero-split-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .legal-doc-badge {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .legal-main-content {
    padding: 60px 0;
  }

  .legal-block h2 {
    font-size: 1.5rem;
  }

  .legal-block p {
    font-size: 1rem;
  }
}