/* ===========================================
   LEGAL PAGES STYLES
   Estilos compartidos para páginas legales
   (Aviso de Privacidad, Términos y Condiciones)
   =========================================== */

/* --- LAYOUT --- */
.legal-page {
    padding-top: 140px;
    padding-bottom: 80px;
    background: var(--color-white);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
.legal-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--color-secondary);
}

.legal-header h1 {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.legal-header .last-update {
    color: #666;
    font-size: 0.95rem;
}

.legal-header .subtitle {
    color: var(--color-secondary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.legal-header .intro {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 20px;
}

/* --- TABLE OF CONTENTS --- */
.table-of-contents {
    background: var(--color-light);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.table-of-contents h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

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

.table-of-contents li {
    margin-bottom: 10px;
}

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

.table-of-contents a:hover {
    color: var(--color-secondary);
}

.table-of-contents a i {
    color: var(--color-secondary);
    font-size: 0.8rem;
}

/* --- SECTIONS --- */
.legal-section {
    margin-bottom: 45px;
    scroll-margin-top: 120px;
}

.legal-section h2 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-light);
}

.legal-section h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.legal-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--color-text);
}

.legal-section ul,
.legal-section ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.legal-section li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* --- HIGHLIGHT BOXES --- */

/* Green box for general highlights */
.highlight-box {
    background: #e8f5e9;
    border-left: 4px solid var(--color-secondary);
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
}

.highlight-box strong {
    color: var(--color-primary);
}

.highlight-box a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
}

.highlight-box a:hover {
    color: var(--color-secondary);
}

/* Blue box for information */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
}

.info-box strong {
    color: var(--color-primary);
}

/* Orange box for warnings */
.warning-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
}

.warning-box strong {
    color: #e65100;
}

/* Primary colored box for contact info */
.contact-box {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.contact-box h3 {
    color: var(--color-white);
    margin-bottom: 15px;
}

.contact-box a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* --- NAVIGATION --- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.back-link:hover {
    transform: translateX(-5px);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .legal-page {
        padding-top: 110px;
    }

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

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

@media (max-width: 480px) {
    .legal-page {
        padding-top: 100px;
    }
}
