/* ESTILOS PARA PAGINAS LEGALES - DOMUS-IA ESPANA */
/* Version: 2.0.0 — Light Theme */
/* Diseno profesional y legible para politicas legales */

:root {
    --gold-primary: #2563eb;
    --gold-dark: #1d4ed8;
    --silver-primary: #C0C0C0;
    --silver-dark: #a0a0a0;
    --red-accent: #ef4444;
    --dark-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8fafc;
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

/* HEADER LEGAL */
.legal-header {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 1rem;
    text-align: center;
}

.legal-header .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.legal-header .logo-container img {
    height: 48px;
    width: auto;
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #2563eb 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.legal-header .subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

.legal-header .last-update {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.25rem;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
    color: #2563eb;
}

/* CONTENIDO PRINCIPAL */
.legal-content {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1.5rem 3rem;
}

.legal-content section {
    margin-bottom: 3rem;
}

.legal-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: justify;
}

.legal-content ul, 
.legal-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-content a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.legal-content a:hover {
    border-bottom-color: #2563eb;
}

/* TABLAS */
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.legal-content th {
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.legal-content td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-secondary);
}

/* CAJAS DE INFORMACION */
.info-box {
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    border-left: 4px solid #2563eb;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.info-box p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.info-box strong {
    color: #1e40af;
}

/* FOOTER LEGAL */
.legal-footer {
    background: #f1f5f9;
    border-top: 1px solid var(--border-color);
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 4rem;
}

.legal-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.legal-footer .footer-links a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.legal-footer .footer-links a:hover {
    color: #1d4ed8;
}

.legal-footer .copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* BOTON VOLVER */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .legal-header h1 {
        font-size: 1.75rem;
    }
    
    .legal-content {
        padding: 0 1rem 2rem;
        margin: 2rem auto;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    .legal-content h3 {
        font-size: 1.125rem;
    }
    
    .legal-content ul, 
    .legal-content ol {
        margin-left: 1.5rem;
    }
    
    .legal-footer .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .legal-content table {
        font-size: 0.875rem;
    }
    
    .legal-content th,
    .legal-content td {
        padding: 0.75rem;
    }
}

/* ANIMACIONES */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-content section {
    animation: fadeIn 0.6s ease-out;
}

/* SMOOTH SCROLL */
html {
    scroll-behavior: smooth;
}

/* INDICE DE CONTENIDOS */
.table-of-contents {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0 3rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.table-of-contents h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    border-bottom: none;
}

.table-of-contents ul {
    list-style: none;
    margin-left: 0;
}

.table-of-contents li {
    margin-bottom: 0.75rem;
}

.table-of-contents a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-of-contents a:hover {
    color: #2563eb;
    border-bottom: none;
}

.table-of-contents a::before {
    content: '\2192';
    color: #2563eb;
    font-weight: bold;
}
