body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}
.header {
    background-color: #ffffff;
    text-align: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header h1 {
    color: #000000;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
.main-title {
    font-size: 18px;
    font-weight: 900;
    color: #1877F2;
    margin-bottom: 5px;
    margin-top: 0;
}
.date {
    font-size: 12px;
    color: gray;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 20px;
}
.section-title {
    font-size: 15px;
    font-weight: 900;
    color: #000000;
    margin-top: 15px;
    margin-bottom: 8px;
}
.subsection-title {
    font-size: 14px;
    font-weight: bold;
    color: #424242; /* Similar a Colors.grey.shade800 */
    margin-top: 10px;
    margin-bottom: 5px;
}
p {
    font-size: 14px;
    color: #1f1f1f; /* Similar a Colors.black87 */
    margin-top: 0;
    margin-bottom: 12px;
}
.rich-text {
    font-size: 14px;
    color: #1f1f1f;
    margin-bottom: 10px;
}
.rich-text strong {
    font-weight: bold;
}
hr {
    border: 0;
    border-top: 1px solid #eeeeee;
    margin: 20px 0;
}
.divider-thick {
    border-top: 2px solid #e0e0e0;
    margin: 25px 0;
}
.footer {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
}
.footer span {
    color: #bdbdbd; /* Similar a Colors.grey.shade400 */
    font-size: 14px;
    font-weight: bold;
}

/* Contenedor principal análogo al SingleChildScrollView con su padding */
.terms-container {
  padding: 10px 20px;
  background-color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}

/* Títulos principales (Color 0xFF1877F2 y FontWeight.w900) */
.main-title {
  font-size: 18px;
  font-weight: 900;
  color: #1877F2;
  margin-top: 0;
  margin-bottom: 5px;
}

/* Fecha de actualización (gris e itálica) */
.date-text {
  font-size: 12px;
  color: #9e9e9e; /* Equivale a Colors.grey en Flutter */
  font-style: italic;
  margin-top: 0;
  margin-bottom: 20px;
}

/* Títulos de sección (_buildSectionTitle) */
.section-title {
  font-size: 15px;
  font-weight: 900;
  color: #000000;
  margin-top: 15px;
  margin-bottom: 8px;
}

/* Subtítulos de sección (_buildSubSectionTitle) */
.subsection-title {
  font-size: 14px;
  font-weight: bold;
  color: #424242; /* Equivale a Colors.grey.shade800 */
  margin-top: 10px;
  margin-bottom: 5px;
}

/* Párrafos normales (_buildParagraph) */
.paragraph-text {
  font-size: 14px;
  line-height: 1.5; /* Altura de línea para mejorar legibilidad */
  color: #212121; /* Equivale a Colors.black87 */
  margin-top: 0;
  margin-bottom: 12px;
}

/* Contenedor para texto enriquecido (_buildRichText) */
.rich-text-container {
  font-size: 14px;
  line-height: 1.5;
  color: #212121;
  margin-bottom: 10px;
}

/* Parte en negrita del texto enriquecido */
.bold-text {
  font-weight: bold;
}

/* Línea divisoria normal (Divider de altura 40) */
.divider {
  border: 0;
  border-top: 1px solid #e0e0e0;
  margin: 20px 0; /* Espaciado similar al height: 40 en Flutter */
}

/* Línea divisoria gruesa (Divider de altura 50 y thickness 2) */
.divider-thick {
  border: 0;
  border-top: 2px solid #e0e0e0;
  margin: 25px 0; /* Espaciado similar al height: 50 en Flutter */
  margin-bottom: 35px; /* Espaciado extra antes del siguiente título */
}

/* Texto del footer (ExaVant © 2025) */
.footer-text {
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: #bdbdbd; /* Equivale a Colors.grey.shade400 */
  margin-top: 40px;
  margin-bottom: 30px;
}
/* Las secciones ocultas por defecto (opcional, tu JS ya lo maneja bien, pero es buena práctica) */
#seccion-privacidad,
#seccion-terminos {
    display: none;
    width: 100%; /* Asegura que el contenedor invisible ocupe toda la pantalla */
}

/* El contenedor que centra el texto */
.terms-container {
    max-width: 800px; /* Ancho máximo para que parezca un documento formal */
    margin: 0 auto;   /* ¡La magia! Centra la caja horizontalmente */
    padding: 30px 20px; /* Espacio interno para que el texto respire */
    background-color: #ffffff;
    box-sizing: border-box;
}