/* CSS específico para la página Aviso Legal (pages/aviso-legal.html) */

/* Variables CSS basadas en el sistema de colores del sitio */
:root {
    /* Colores del sistema wsw-* consistentes con el sitio */
    --wsw-17: #ffffff;             /* Títulos principales - blanco */
    --wsw-33: #f4d03f;             /* Marca y destacados - dorado */
    --wsw-43: #e8c547;             /* Texto especial - dorado claro */
    --wsw-27: #d4af37;             /* Títulos especiales - dorado oscuro */
    --wsw-47: #c9a96e;             /* Texto de énfasis - dorado apagado */
    --wsw-23: #ffd700;             /* Color de acento adicional - dorado brillante */
    --wsw-13: #f8f9fa;             /* Color para elementos importantes */
    --wsw-09: #e9ecef;             /* Color para texto descriptivo */
    
    /* Colores base consistentes con el sitio */
    --color-text: #ffffff;
    --color-text-light: #cccccc;
    --color-background: #000000;
    --color-background-dark: #000000;
    --color-overlay-black: rgba(0, 0, 0, 0.6);
    
    /* Espaciado */
    --section-padding: 60px 0;
    --container-max-width: 1200px;
    --container-padding: 0 20px;
    
    /* Tipografía consistente con el sitio */
    --font-family: 'Raleway', sans-serif;
    --font-size-hero: 2.2rem;
    --font-size-subtitle: 1.2rem;
    --font-size-section: 1.5rem;
    --font-size-text: 1rem;
    --font-size-small: 0.9rem;
    --line-height-base: 1.6;
    --line-height-legal: 1.8;
    
    /* Responsive */
    --mobile-breakpoint: 37.5em; /* 600px */
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-background);
}

/* Container común */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* === MAIN CONTAINER === */
.legal-notice-main {
    margin-top: 0;
}

/* === SECCIÓN HERO === */
.legal-notice-hero {
    background-color: var(--color-background-dark);
    background-image: url('../img/Justicia_2.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    min-height: 50vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-notice-hero::before {
    content: '';
    background: var(--color-overlay-black);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 40px 20px;
}

.legal-notice-title {
    color: var(--wsw-17);
    font-size: var(--font-size-hero);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.legal-notice-subtitle {
    color: var(--wsw-17);
    font-size: var(--font-size-subtitle);
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* === SECCIÓN DE CONTENIDO LEGAL === */
.legal-notice-content {
    padding: var(--section-padding);
    background-color: var(--color-background);
}

.legal-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* === SECCIONES LEGALES === */
.legal-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.legal-section {
    background: #000000;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.legal-section-title {
    color: var(--wsw-27);
    font-size: var(--font-size-section);
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--wsw-33);
    position: relative;
}

.legal-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--wsw-23);
}

.legal-section-content {
    color: var(--color-text);
    font-size: var(--font-size-text);
    line-height: var(--line-height-legal);
}

/* === ELEMENTOS DE CONTENIDO LEGAL === */

/* Párrafos */
.legal-section-content p {
    margin-bottom: 15px;
    text-align: justify;
}

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

/* Listas ordenadas para secciones numeradas */
.legal-section-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.legal-section-content ol li {
    margin-bottom: 10px;
    line-height: var(--line-height-legal);
}

.legal-section-content ol li::marker {
    color: var(--wsw-27);
    font-weight: bold;
}

/* Listas no ordenadas */
.legal-section-content ul {
    margin: 20px 0;
    padding-left: 25px;
}

.legal-section-content ul li {
    margin-bottom: 8px;
    line-height: var(--line-height-legal);
}

.legal-section-content ul li::marker {
    color: var(--wsw-33);
}

/* Subtítulos dentro de secciones legales */
.legal-section-content h3 {
    color: var(--wsw-27);
    font-size: 1.2rem;
    font-weight: bold;
    margin: 25px 0 15px 0;
    padding-left: 15px;
    border-left: 3px solid var(--wsw-33);
}

.legal-section-content h4 {
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 10px 0;
}

/* Texto destacado y énfasis */
.legal-section-content strong {
    color: var(--wsw-27);
    font-weight: bold;
}

.legal-section-content em {
    font-style: italic;
    color: var(--color-text-light);
}

/* Enlaces */
.legal-section-content a {
    color: var(--wsw-33);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-section-content a:hover {
    color: var(--wsw-43);
    border-bottom-color: var(--wsw-43);
}

.legal-section-content a:focus {
    outline: 2px solid var(--wsw-33);
    outline-offset: 2px;
}

/* Citas y bloques destacados */
.legal-section-content blockquote {
    background: rgba(244, 208, 63, 0.05);
    border-left: 4px solid var(--wsw-33);
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--color-text-light);
}

/* Información de contacto destacada */
.legal-contact-info {
    background: rgba(244, 208, 63, 0.1);
    border: 1px solid var(--wsw-33);
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.legal-contact-info h4 {
    color: var(--wsw-27);
    margin-bottom: 10px;
}

.legal-contact-info p {
    margin-bottom: 5px;
}

/* Fechas y información temporal */
.legal-date {
    color: var(--color-text-light);
    font-size: var(--font-size-small);
    font-style: italic;
    text-align: right;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* === CLASES DE COLOR ESPECÍFICAS === */
.wsw-17 { color: var(--wsw-17) !important; }
.wsw-33 { color: var(--wsw-33) !important; }
.wsw-43 { color: var(--wsw-43) !important; }
.wsw-27 { color: var(--wsw-27) !important; }
.wsw-47 { color: var(--wsw-47) !important; }
.wsw-23 { color: var(--wsw-23) !important; }
.wsw-13 { color: var(--wsw-13) !important; }
.wsw-09 { color: var(--wsw-09) !important; }

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

/* Tablet */
@media screen and (max-width: 768px) {
    :root {
        --font-size-hero: 1.8rem;
        --font-size-subtitle: 1.1rem;
        --font-size-section: 1.3rem;
        --section-padding: 40px 0;
    }
    
    .hero-content {
        padding: 30px 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .legal-notice-hero {
        min-height: 40vh;
    }
    
    .legal-section {
        padding: 25px 20px;
    }
    
    .legal-sections {
        gap: 30px;
    }
}

/* Mobile */
@media screen and (max-width: 37.5em) {
    :root {
        --font-size-hero: 1.5rem;
        --font-size-subtitle: 1rem;
        --font-size-section: 1.2rem;
        --font-size-text: 0.95rem;
        --section-padding: 30px 0;
    }
    
    .legal-notice-hero {
        min-height: 35vh;
    }
    
    .hero-content {
        padding: 25px 15px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .legal-section {
        padding: 20px 15px;
        margin: 0 5px;
    }
    
    .legal-sections {
        gap: 25px;
    }
    
    .legal-section-content ol,
    .legal-section-content ul {
        padding-left: 20px;
    }
    
    .legal-section-content h3 {
        font-size: 1.1rem;
        margin: 20px 0 12px 0;
        padding-left: 12px;
    }
    
    .legal-contact-info {
        padding: 15px;
        margin: 15px 0;
    }
}

/* === ACCESIBILIDAD === */
@media (prefers-reduced-motion: reduce) {
    .legal-notice-hero {
        background-attachment: scroll;
    }
}

/* Estados de foco para accesibilidad */
.legal-section:focus-within {
    box-shadow: 0 0 0 2px var(--wsw-33);
}

/* === PRINT STYLES === */
@media print {
    .legal-notice-hero {
        background: none;
        color: black;
        min-height: auto;
        padding: 20px 0;
    }
    
    .legal-notice-hero::before {
        display: none;
    }
    
    .legal-notice-title,
    .legal-notice-subtitle {
        color: black !important;
        text-shadow: none;
    }
    
    .legal-section {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .legal-section-title {
        color: black !important;
        border-bottom-color: #ccc;
    }
    
    .legal-section-title::after {
        background: #ccc;
    }
    
    .legal-section-content strong,
    .legal-section-content h3,
    .legal-section-content h4 {
        color: black !important;
    }
    
    .legal-section-content a {
        color: black !important;
        text-decoration: underline;
    }
    
    /* Asegurar que todos los colores wsw-* se impriman en negro */
    .wsw-17, .wsw-33, .wsw-43, .wsw-27, .wsw-47, .wsw-23, .wsw-13, .wsw-09 {
        color: black !important;
    }
    
    .legal-contact-info {
        background: #f5f5f5 !important;
        border-color: #ccc !important;
    }
}

/* === MEJORAS ADICIONALES === */

/* Espaciado mejorado entre secciones */
.legal-section + .legal-section {
    margin-top: 0;
}

/* Efectos hover sutiles */
.legal-section {
    transition: box-shadow 0.3s ease;
}

.legal-section:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Mejorar la legibilidad de listas largas */
.legal-section-content ol li,
.legal-section-content ul li {
    padding-left: 5px;
}

/* Separadores visuales para secciones largas */
.legal-section-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--wsw-33), transparent);
    margin: 30px 0;
}

/* Animaciones sutiles para mejorar la experiencia */
@media (prefers-reduced-motion: no-preference) {
    .legal-section {
        animation: fadeInUp 0.6s ease-out;
    }
    
    .legal-section:nth-child(2) { animation-delay: 0.1s; }
    .legal-section:nth-child(3) { animation-delay: 0.2s; }
    .legal-section:nth-child(4) { animation-delay: 0.3s; }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* === COMPATIBILIDAD CON HEADER Y FOOTER EXISTENTES === */
main {
    margin-top: 0;
}

.legal-notice-hero {
    margin-top: 0;
    padding-top: 0;
}

/* Asegurar que el contenido no se superponga con header fijo si existe */
@media screen and (min-width: 769px) {
    .legal-notice-main {
        padding-top: 0;
    }
}