/* LEGAL — aviso-legal.php, politica-cookies.php y politica-privacidad.php
   Las tres paginas eran la misma maqueta copiada tres veces con los nombres
   de clase cambiados (policy-*, privacy-*, legal-*). Unificadas el 20-08-2026
   sobre legal-*, .data-table y .destacado: 565 lineas pasan a una sola hoja. */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

.legal-container {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 40px;
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.legal-logo {
    width: 200px;
    margin-bottom: 20px;
}

h1 {
    color: #15554A;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.last-updated {
    color: #6b7280;
    font-size: 0.95rem;
}

h2 {
    color: #15554A;
    font-size: 1.8rem;
    margin-top: 35px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

h3 {
    color: #333;
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 12px;
}

p {
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 15px;
    text-align: justify;
}

ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

li {
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 8px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.data-table th {
    background: #15554A;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: #f0f0f0;
}

.destacado {
    background: linear-gradient(135deg, #15554A, #1f6b5f);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.destacado h3 {
    color: white;
    margin-top: 0;
}

.destacado p {
    color: white;
}

.destacado strong {
    color: white;
}

.destacado a {
    color: white;
    text-decoration: underline;
}

.destacado a:hover {
    color: #e0f2f1;
    text-decoration: underline;
}

.btn-container {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #15554A;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.btn:hover {
    background: #1f6b5f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 85, 74, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #15554A;
    border: 2px solid #15554A;
}

.btn-secondary:hover {
    background: #15554A;
    color: white;
}

@media (max-width: 768px) {
    .legal-container {
        margin: 20px;
        padding: 25px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .data-table {
        font-size: 0.85rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
    }
}

/* --- Reglas propias de alguna de las tres --- */

.destacado ul {
    color: white;
}

.destacado li {
    color: white;
}
