/**
 * Footer Legal Section Styles
 * INSTANET-EC S.A.S.
 * 
 * Estilos para la sección legal del footer
 * Cumplimiento LOPDP Ecuador
 * 
 * @package wellonly
 * @version 1.0.0
 */

/* ==========================================================================
   FOOTER LEGAL SECTION
   ========================================================================== */

.footer-legal-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 60px 0 30px;
    border-top: 4px solid #2563eb;
    position: relative;
}

.footer-legal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.5), transparent);
}

.footer-legal-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   LEGAL LINKS ROW
   ========================================================================== */

.legal-links-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.legal-links-column {
    min-width: 0;
}

/* ==========================================================================
   TITLES
   ========================================================================== */

.legal-links-title {
    color: #60a5fa;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(96, 165, 250, 0.2);
}

.legal-links-title i {
    font-size: 1rem;
    opacity: 0.9;
}

/* ==========================================================================
   LINKS LIST
   ========================================================================== */

.legal-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-links-list li {
    margin-bottom: 12px;
}

.legal-links-list a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 6px 0;
}

.legal-links-list a i {
    font-size: 0.85rem;
    width: 20px;
    text-align: center;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.legal-links-list a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.legal-links-list a:hover i {
    opacity: 1;
    color: #60a5fa;
}

/* ==========================================================================
   COMPANY INFO
   ========================================================================== */

.legal-company-info {
    font-size: 0.9rem;
    line-height: 1.8;
}

.legal-company-info p {
    margin: 6px 0;
    color: rgba(255, 255, 255, 0.75);
}

.legal-company-info p:first-child {
    color: #ffffff;
    font-size: 1rem;
}

.legal-company-info a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-company-info a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* ==========================================================================
   COMPLIANCE BADGES
   ========================================================================== */

.compliance-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.compliance-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(37, 99, 235, 0.15);
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 3px solid #2563eb;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.compliance-badge:hover {
    background: rgba(37, 99, 235, 0.25);
    transform: translateX(3px);
}

.compliance-badge i {
    color: #10b981;
    font-size: 1rem;
}

.compliance-badge span {
    flex: 1;
}

/* ==========================================================================
   LEGAL AUTHORITY
   ========================================================================== */

.legal-authority {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-authority small {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.legal-authority a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-authority a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* ==========================================================================
   COPYRIGHT
   ========================================================================== */

.footer-legal-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal-copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ==========================================================================
   LOPDP COMPLIANCE BANNER
   ========================================================================== */

.lopdp-compliance-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
}

.lopdp-compliance-banner i {
    font-size: 1.5rem;
    color: #10b981;
}

.lopdp-compliance-banner span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.lopdp-compliance-banner a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.lopdp-compliance-banner a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .legal-links-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-legal-section {
        padding: 40px 0 20px;
    }
    
    .legal-links-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .legal-links-column {
        text-align: center;
    }
    
    .legal-links-title {
        justify-content: center;
    }
    
    .legal-links-list a {
        justify-content: center;
    }
    
    .legal-links-list a:hover {
        transform: none;
    }
    
    .legal-company-info {
        text-align: center;
    }
    
    .compliance-badges {
        align-items: center;
    }
    
    .compliance-badge {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .legal-authority {
        text-align: center;
    }
    
    .lopdp-compliance-banner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .footer-legal-section {
        padding: 30px 0 15px;
    }
    
    .legal-links-title {
        font-size: 1rem;
    }
    
    .legal-links-list a {
        font-size: 0.9rem;
    }
    
    .compliance-badge {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .footer-legal-section {
        background: white !important;
        color: black !important;
        border-top: 2px solid #000;
        padding: 20px 0;
    }
    
    .legal-links-title {
        color: #000 !important;
    }
    
    .legal-links-list a,
    .legal-company-info p,
    .compliance-badge span {
        color: #333 !important;
    }
    
    .compliance-badge {
        background: #f5f5f5 !important;
        border-left-color: #333 !important;
    }
}

/* ==========================================================================
   DARK MODE ADJUSTMENTS
   ========================================================================== */

[data-theme="dark"] .footer-legal-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.legal-links-list a:focus,
.compliance-badge:focus,
.legal-company-info a:focus,
.legal-authority a:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .legal-links-list a,
    .compliance-badge {
        transition: none;
    }
    
    .legal-links-list a:hover,
    .compliance-badge:hover {
        transform: none;
    }
}
