/* ==========================================================================
   LINX GROUP — Estilo Oficial de Páginas Legales
   URL de Referencia: https://linx-group.com/legal/privacidad-condiciones
   Colores Oficiales:
   - Azul Linx: #005897
   - Naranja Linx: #f19001
   - Naranja Hover: #e08001
   - Fondo: #ffffff
   - Texto principal: #374151 (gray-700)
   - Texto secundario: #6b7280 (gray-500)
   - Tipografía: Montserrat, sans-serif
   ========================================================================== */

:root {
  --linx-blue: #005897;
  --linx-orange: #f19001;
  --linx-orange-hover: #e08001;
  --linx-text: #374151;
  --linx-muted: #6b7280;
  --linx-light-bg: #f9fafb;
  --linx-border: #e5e7eb;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
  color: var(--linx-text);
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAVBAR LINX GROUP */
.linx-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--linx-border);
  z-index: 50;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  height: 64px;
  text-decoration: none;
}

.navbar-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
}

/* CONTENEDOR PRINCIPAL LEGAL */
.legal-main-wrapper {
  padding-top: 8rem; /* pt-32 */
  padding-bottom: 6rem; /* pb-24 */
  background-color: #ffffff;
  min-height: 100vh;
  flex: 1;
}

.legal-container {
  max-width: 56rem; /* max-w-4xl = 896px */
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ENCABEZADO DE PÁGINA */
.page-title {
  font-size: 2rem;
  line-height: 2.25rem;
  font-weight: 700;
  color: var(--linx-blue);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

.last-updated {
  color: var(--linx-muted);
  margin-bottom: 3rem;
  font-style: italic;
  font-size: 0.95rem;
}

/* SECCIONES Y TIPOGRAFÍA LEGAL EXACTA */
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.lead-text {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--linx-text);
}

.section-block {
  margin-top: 1rem;
}

.section-heading-h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  color: var(--linx-blue);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--linx-orange);
  padding-bottom: 0.5rem;
}

.subsections-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.subsection-heading-h3 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-semibold: 600;
  color: var(--linx-blue);
  margin-bottom: 0.75rem;
}

.subsection-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--linx-text);
  margin-bottom: 0.5rem;
}

/* LISTAS CON VIÑETAS */
.styled-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--linx-text);
}

.styled-list li {
  line-height: 1.6;
}

.styled-list strong {
  color: #111827;
}

/* TABLAS ESTILO LINX */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--linx-border);
  border-radius: 0.5rem;
}

.linx-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.linx-table th {
  background-color: #f3f4f6;
  color: var(--linx-blue);
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--linx-border);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.linx-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--linx-border);
  color: var(--linx-text);
  vertical-align: top;
  line-height: 1.5;
}

.linx-table tr:last-child td {
  border-bottom: none;
}

.linx-table tr:hover td {
  background-color: #f9fafb;
}

.table-term {
  font-weight: 600;
  color: #111827;
}

/* CAJA DE DESTACADO LINX (como en 1.4 de la web original) */
.linx-alert-box {
  background-color: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border-left: 4px solid var(--linx-orange);
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.linx-alert-box p {
  color: var(--linx-text);
  line-height: 1.6;
}

.linx-alert-box strong {
  color: #111827;
}

.link-blue {
  color: var(--linx-blue);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-blue:hover {
  color: var(--linx-orange);
  text-decoration: underline;
}

/* SECCIÓN DE CONTACTO FINAL (como en sección 3 de linx-group.com) */
.contact-section-linx {
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid var(--linx-border);
  text-align: center;
}

.contact-email-large {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--linx-blue);
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  transition: all 0.2s ease;
}

.contact-email-large:hover {
  color: var(--linx-orange);
  text-decoration: underline;
}

/* FOOTER AZUL OFICIAL LINX GROUP (#005897) */
.linx-footer {
  background-color: var(--linx-blue);
  color: #ffffff;
  position: relative;
  margin-top: auto;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1rem 1.75rem;
}

.footer-mid-bar {
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-mid-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.footer-contact-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-contact-item a {
  color: #e5e7eb;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: #ffffff;
}

.footer-legal-link {
  border-top: 1px solid var(--linx-orange);
  padding-top: 1.5rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.footer-legal-link a {
  font-size: 0.875rem;
  color: #e5e7eb;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-link a:hover {
  color: var(--linx-orange);
}

.footer-bottom-copy {
  font-size: 0.875rem;
  color: #d1d5db;
  text-align: center;
}

/* MODO IMPRESIÓN */
@media print {
  .linx-navbar, .linx-footer, .no-print {
    display: none !important;
  }
  .legal-main-wrapper {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .page-title {
    color: #000000 !important;
  }
  .section-heading-h2 {
    color: #000000 !important;
    border-bottom: 2px solid #000000 !important;
  }
  .subsection-heading-h3 {
    color: #000000 !important;
  }
}
