/* Estilos para páginas legales */

.legal-container {
    padding: 120px 0 60px;
    background: #f8f9fa;
    min-height: 100vh;
}

.legal-container .container {
    max-width: 900px;
}

.legal-container h1 {
    color: #0056a3;
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #0056a3;
}

.legal-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.legal-content section:last-child {
    margin-bottom: 0;
}

.legal-content h2 {
    color: #0056a3;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ffa500;
}

.legal-content h3 {
    color: #003d75;
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.legal-content p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-content li {
    color: #333;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.legal-content strong {
    color: #0056a3;
    font-weight: 600;
}

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

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

.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #0056a3;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #0056a3;
    font-weight: 600;
}

.acceptance-notice {
    background: #fff3cd;
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid #ffa500;
    margin-top: 2rem;
}

.acceptance-notice h2 {
    color: #0056a3;
    border-bottom: none;
    margin-bottom: 1rem;
}

.acceptance-notice p {
    color: #333;
    font-size: 1.05rem;
}

.legal-footer {
    text-align: center;
    padding: 2rem 0 1rem;
}

.legal-footer p {
    font-size: 1.1rem;
}

.legal-footer a {
    color: #0056a3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.legal-footer a:hover {
    color: #ffa500;
}

/* Navegación activa en header */
nav a.active {
    color: #ffa500;
    font-weight: 700;
    position: relative;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffa500;
}

/* Tabla de contenidos (opcional para futuras mejoras) */
.table-of-contents {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #0056a3;
}

.table-of-contents h3 {
    color: #0056a3;
    margin-top: 0;
    margin-bottom: 1rem;
}

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

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

.table-of-contents a {
    color: #0056a3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: #ffa500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-container {
        padding: 100px 0 40px;
    }

    .legal-container h1 {
        font-size: 2rem;
    }

    .legal-content {
        padding: 2rem 1.5rem;
    }

    .legal-content h2 {
        font-size: 1.5rem;
    }

    .legal-content h3 {
        font-size: 1.2rem;
    }

    .legal-content ul,
    .legal-content ol {
        margin-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .legal-container h1 {
        font-size: 1.7rem;
    }

    .legal-content {
        padding: 1.5rem 1rem;
    }

    .legal-content h2 {
        font-size: 1.3rem;
    }

    .legal-content h3 {
        font-size: 1.1rem;
    }

    .contact-info,
    .acceptance-notice {
        padding: 1rem;
    }

    .legal-content ul,
    .legal-content ol {
        margin-left: 1rem;
    }
}

/* Animación de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Estilo para secciones destacadas */
.highlight-box {
    background: #e7f3ff;
    border-left: 4px solid #0056a3;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* Estilo para notas importantes */
.important-note {
    background: #fff3cd;
    border-left: 4px solid #ffa500;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.important-note strong {
    color: #856404;
}

/* Estilo para listas numeradas personalizadas */
.legal-content ol {
    counter-reset: item;
    list-style: none;
}

.legal-content ol > li {
    counter-increment: item;
    position: relative;
    padding-left: 2rem;
}

.legal-content ol > li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: #0056a3;
    font-weight: bold;
}
