/* ==========================================
   ESTILOS PARA PÁGINAS LEGALES
   ========================================== */

.legal-page {
    background-color: #f8f9fa;
    padding: 60px 0;
    min-height: 100vh;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* Header de la página legal */
.legal-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #8B4513;
}

.legal-header h1 {
    color: #8B4513;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.legal-header .last-updated {
    color: #666;
    font-size: 0.95rem;
    font-style: italic;
}

/* Contenido legal */
.legal-content {
    color: #333;
    line-height: 1.8;
}

.legal-content h2 {
    color: #8B4513;
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.legal-content h3 {
    color: #5d3a1a;
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content h4 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 12px;
}

.legal-content p {
    margin-bottom: 18px;
    text-align: justify;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.legal-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.legal-content strong {
    color: #8B4513;
    font-weight: 600;
}

/* Cajas de destacado */
.highlight-box {
    background: #fff5e6;
    border-left: 4px solid #8B4513;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.highlight-box strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Cajas de información */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

/* Cajas de advertencia */
.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

/* Tabla de contenidos */
.table-of-contents {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.table-of-contents h3 {
    color: #8B4513;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.table-of-contents li:last-child {
    border-bottom: none;
}

.table-of-contents a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.table-of-contents a:hover {
    color: #8B4513;
}

/* Sección de contacto */
.contact-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 50px;
    text-align: center;
}

.contact-section h3 {
    color: #8B4513;
    margin-bottom: 20px;
}

.contact-section .contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.contact-section i {
    color: #8B4513;
    margin-right: 8px;
}

/* Botón volver */
.btn-back {
    display: inline-block;
    padding: 12px 30px;
    background: #8B4513;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 40px;
    transition: background 0.3s;
}

.btn-back:hover {
    background: #5d3a1a;
    color: white;
}

/* Tablas */
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.legal-content table th,
.legal-content table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.legal-content table th {
    background: #8B4513;
    color: white;
    font-weight: 600;
}

.legal-content table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-container {
        padding: 30px 20px;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    .legal-content h3 {
        font-size: 1.2rem;
    }
}