/* PÁGINAS LEGALES - DISEÑO COMÚN */

/* Contenedor principal */
.legal-page {
    background-color: #ffffff;
    min-height: 100vh;
    padding: 0px 0 80px;
}

/* Hero section para páginas legales */
.legal-hero {
    background: linear-gradient(135deg, #00699C 0%, #00B6DB 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
}

.legal-hero h1 {
    font-family: 'Highrise', 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.legal-hero p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    line-height: 1.4;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Contenedor del contenido legal */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navegación de páginas legales */
.legal-navigation {
    background-color: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 40px;
    border-radius: 8px;
}

.legal-nav-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.legal-nav-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #00699C;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.legal-nav-link:hover,
.legal-nav-link.active {
    background-color: #00699C;
    color: white;
    text-decoration: none;
}

/* Títulos */
.legal-content h2 {
    font-family: 'Highrise', 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 400;
    color: #00699C;
    margin: 50px 0 25px 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.legal-content h2:first-child {
    margin-top: 20px;
}

.legal-content h3 {
    font-family: 'Highrise', 'Montserrat', sans-serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 400;
    color: #00699C;
    margin: 35px 0 20px 0;
    line-height: 1.3;
}

.legal-content h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    color: #00699C;
    margin: 25px 0 15px 0;
    line-height: 1.4;
}

/* Párrafos */
.legal-content p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 400;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

/* Listas */
.legal-content ul,
.legal-content ol {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 400;
    color: #333;
    line-height: 1.6;
    margin: 20px 0;
    padding-left: 30px;
}

.legal-content li {
    margin-bottom: 10px;
    text-align: justify;
}

.legal-content li:last-child {
    margin-bottom: 0;
}

/* Enlaces dentro del contenido */
.legal-content a {
    color: #00699C;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #00B6DB;
}

/* Elementos destacados */
.legal-highlight {
    background-color: #f0f8ff;
    border-left: 4px solid #00699C;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.legal-highlight p {
    margin-bottom: 0;
    font-weight: 500;
}

/* Información de contacto */
.legal-contact {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
    text-align: center;
}

.legal-contact h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.legal-contact p {
    margin-bottom: 10px;
    text-align: center;
}

.legal-contact p:last-child {
    margin-bottom: 0;
}

/* Fecha de actualización */
.legal-update {
    background-color: #00699C;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 40px 0 20px 0;
    text-align: center;
}

.legal-update p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    color: white;
}

/* Botón de volver */
.legal-back-button {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #00699C;
    text-decoration: none;
    padding: 12px 30px;
    border: 2px solid #00699C;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin: 40px 0 20px 0;
}

.legal-back-button:hover {
    background-color: #00699C;
    color: white;
    text-decoration: none;
}

/* Separadores */
.legal-separator {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #00699C 50%, transparent 100%);
    margin: 50px 0;
    opacity: 0.3;
}

/* RESPONSIVE DESIGN */

/* Tablet */
@media (max-width: 768px) {
    .legal-hero {
        padding: 60px 0;
        margin-bottom: 40px;
    }
    
    .legal-content {
        padding: 0 15px;
    }
    
    .legal-navigation {
        padding: 20px 0;
        margin-bottom: 30px;
    }
    
    .legal-nav-list {
        gap: 15px;
        justify-content: center;
    }
    
    .legal-nav-link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .legal-content h2 {
        margin: 40px 0 20px 0;
    }
    
    .legal-content h3 {
        margin: 30px 0 15px 0;
    }
    
    .legal-content h4 {
        margin: 20px 0 12px 0;
    }
    
    .legal-highlight {
        padding: 15px;
        margin: 25px 0;
    }
    
    .legal-contact {
        padding: 25px 20px;
        margin: 30px 0;
    }
    
    .legal-update {
        margin: 30px 0 15px 0;
    }
}

/* Móvil */
@media (max-width: 480px) {
    .legal-page {
        padding: 20px 0 60px;
    }
    
    .legal-hero {
        padding: 40px 0;
        margin-bottom: 30px;
    }
    
    .legal-content {
        padding: 0 10px;
    }
    
    .legal-navigation {
        padding: 15px 0;
        margin-bottom: 25px;
    }
    
    .legal-nav-list {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .legal-nav-link {
        padding: 6px 12px;
        font-size: 0.85rem;
        width: 200px;
        text-align: center;
    }
    
    .legal-content ul,
    .legal-content ol {
        padding-left: 20px;
    }
    
    .legal-content p,
    .legal-content li {
        text-align: left;
    }
    
    .legal-highlight {
        padding: 12px;
        margin: 20px 0;
    }
    
    .legal-contact {
        padding: 20px 15px;
        margin: 25px 0;
    }
    
    .legal-back-button {
        padding: 10px 25px;
        margin: 30px 0 15px 0;
        font-size: 0.9rem;
    }
    
    .legal-separator {
        margin: 40px 0;
    }
}

/* Estados de focus para accesibilidad */
.legal-nav-link:focus,
.legal-back-button:focus {
    outline: 3px solid rgba(0, 105, 156, 0.3);
    outline-offset: 2px;
}

/* Animaciones suaves */
.legal-content h2,
.legal-content h3,
.legal-content p,
.legal-highlight {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}