/* Legal Pages Styles */

/* Header */
.legal-header {
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-claro) 100%);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.legal-title {
    font-family: 'Amaranth', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.legal-subtitle {
    font-family: 'Metrophobic', sans-serif;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Content */
.legal-content {
    background: var(--beige-claro);
    min-height: 60vh;
}

.legal-document {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px var(--shadow-light);
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-family: 'Amaranth', cursive;
    font-size: 1.8rem;
    color: var(--azul-oscuro);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--rojo-intenso);
    display: inline-block;
}

.legal-section h3 {
    font-family: 'Amaranth', cursive;
    font-size: 1.4rem;
    color: var(--azul-claro);
    margin: 2rem 0 1rem;
}

.legal-section h4 {
    font-family: 'Amaranth', cursive;
    font-size: 1.2rem;
    color: var(--azul-oscuro);
    margin: 1.5rem 0 1rem;
}

.legal-section p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: justify;
}

.legal-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.legal-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    color: #555;
    line-height: 1.6;
}

.legal-list li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--rojo-intenso);
    font-size: 0.8rem;
}

.legal-list li strong {
    color: var(--azul-oscuro);
}

/* Highlighted sections */
.legal-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--rojo-intenso);
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.legal-highlight i {
    color: var(--rojo-intenso);
    font-size: 1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.legal-highlight p {
    margin-bottom: 0;
    font-weight: 500;
}

.legal-highlight a {
    color: var(--azul-claro);
    text-decoration: none;
    font-weight: 600;
}

.legal-highlight a:hover {
    color: var(--rojo-intenso);
    text-decoration: underline;
}

/* Contact section */
.legal-contact {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-top: 3px solid var(--azul-claro);
}

.legal-contact h4 {
    color: var(--azul-oscuro);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.legal-contact p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.legal-contact a {
    color: var(--azul-claro);
    text-decoration: none;
}

.legal-contact a:hover {
    color: var(--rojo-intenso);
    text-decoration: underline;
}

/* Contact methods */
.contact-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: white;
    box-shadow: 0 5px 20px var(--shadow-light);
    transform: translateY(-2px);
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--rojo-intenso);
    width: 40px;
    text-align: center;
}

.contact-method h5 {
    font-family: 'Amaranth', cursive;
    color: var(--azul-oscuro);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-method p {
    margin-bottom: 0;
    text-align: left;
}

.contact-method a {
    color: var(--azul-claro);
    text-decoration: none;
}

.contact-method a:hover {
    color: var(--rojo-intenso);
}

/* Footer section */
.legal-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border-top: 3px solid var(--azul-claro);
    margin-top: 3rem;
}

.legal-footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

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

/* Links styling */
.legal-document a {
    color: var(--azul-claro);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.legal-document a:hover {
    color: var(--rojo-intenso);
    text-decoration: underline;
}

/* Table styles (if needed for some legal documents) */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-light);
}

.legal-table th,
.legal-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.legal-table th {
    background: var(--azul-claro);
    color: white;
    font-weight: 600;
}

.legal-table tr:hover {
    background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-header {
        padding: 100px 0 40px;
    }
    
    .legal-title {
        font-size: 2rem;
    }
    
    .legal-subtitle {
        font-size: 1rem;
    }
    
    .legal-document {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }
    
    .legal-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.3rem;
    }
    
    .legal-section p {
        text-align: left;
    }
    
    .legal-highlight {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .legal-highlight i {
        align-self: flex-start;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .contact-method i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .legal-document {
        padding: 1.5rem 1rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .legal-list li {
        padding-left: 1.5rem;
    }
    
    .legal-highlight {
        padding: 1rem;
    }
    
    .legal-contact {
        padding: 1rem;
    }
    
    .contact-methods {
        gap: 1rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .legal-header {
        display: none !important;
    }
    
    .legal-content {
        background: white !important;
        padding: 0 !important;
    }
    
    .legal-document {
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .legal-section {
        page-break-inside: avoid;
        border-bottom: 1px solid #ccc !important;
    }
    
    .legal-highlight {
        background: #f5f5f5 !important;
        border-left: 4px solid #333 !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}

/* Accessibility improvements */
.legal-document {
    font-size: 16px;
    line-height: 1.6;
}

.legal-section h2:focus,
.legal-section h3:focus,
.legal-section h4:focus {
    outline: 2px solid var(--rojo-intenso);
    outline-offset: 2px;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--azul-oscuro);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}