/* public/css/legal.css */

.legal-main-container {
    max-width: 900px;
    margin: 40px auto 100px auto; /* padding bottom extra para boton */
    padding: 20px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.legal-main-container h1 {
    text-align: center;
    color: #333;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.legal-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.03);
    
    /* Estado inicial para animacion (Intersection Observer) */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.legal-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.legal-section h2 {
    color: var(--loliando-primary, #624BFF); /* Use corporate color if variable exists, fallback to purple */
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(98, 75, 255, 0.1);
    padding-bottom: 10px;
}

.legal-section h3 {
    color: #444;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-section p, 
.legal-section ul, 
.legal-section ol {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 15px;
}

.legal-section ul, 
.legal-section ol {
    padding-left: 20px;
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-section strong {
    color: #333;
    font-weight: 600;
}

/* Specific styling for important clauses */
.wompi-clause {
    background: rgba(43, 80, 204, 0.05); /* Wompi blue tint */
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #2B50CC;
}

.mipaquete-clause {
    background: rgba(255, 107, 0, 0.05); /* Orange tint */
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #FF6B00;
}

@media (max-width: 768px) {
    .legal-main-container {
        margin-top: 20px;
        padding: 15px;
    }
    
    .legal-main-container h1 {
        font-size: 1.8rem;
    }
    
    .legal-section {
        padding: 20px;
        border-radius: 12px;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
}
