/* ==========================================================================
   LEGAL.CSS - Documentos estilo SaaS Premium (Adaptado al PHP actual)
   ========================================================================== */

/* Convertimos el contenedor principal directamente en la "Tarjeta" */
.legal-container {
    max-width: 800px;
    margin: 80px auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 60px;
    box-shadow: var(--shadow-sm);
}

.legal-header {
    margin-bottom: 50px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
}

.legal-header h1 {
    font-size: 3rem;
    color: var(--text-main);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.legal-header p {
    color: var(--text-muted);
    font-family: var(--font-titles);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Textos del Documento */
.legal-content {
    font-size: 1.15rem;
    line-height: 1.8; /* Interlineado alto para fácil lectura */
    color: var(--text-main);
}

.legal-content h2 {
    font-size: 1.6rem;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.legal-content h2:first-child {
    margin-top: 0; /* Quita el margen al primer h2 */
}

.legal-content h3 {
    font-size: 1.3rem;
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.legal-content p {
    margin-bottom: 25px;
    color: var(--text-muted);
}

/* Listas más limpias */
.legal-content ul, .legal-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
    color: var(--text-muted);
}

.legal-content li {
    margin-bottom: 12px;
}

.legal-content strong {
    color: var(--text-main);
    font-weight: 700;
}

/* Enlaces dentro de las políticas */
.legal-content a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(124, 58, 237, 0.3);
    transition: 0.2s ease;
}

.legal-content a:hover {
    text-decoration-color: var(--primary);
    background: rgba(124, 58, 237, 0.05);
    border-radius: 4px;
}

/* Adaptabilidad Móvil */
@media (max-width: 768px) {
    .legal-container {
        margin: 40px auto;
        padding: 30px 20px;
        border-radius: 12px;
        /* Reducimos el ancho para que no pegue con los bordes de la pantalla del móvil */
        width: calc(100% - 40px); 
    }
    
    .legal-header h1 {
        font-size: 2.2rem;
    }
}