/* ==========================================================================
   Estilos Profesionales para ServiClima Total - Política de Privacidad
   ========================================================================== */

/* Variables de Color y Tipografía */
:root {
    --primary-color: #0056b3;     /* Azul Corporativo Climatización */
    --secondary-color: #333333;   /* Gris Oscuro para Texto */
    --bg-light: #f8f9fa;          /* Fondo Claro para Contenedores */
    --border-color: #dee2e6;      /* Gris Claro para Bordes */
    --accent-color: #ffc107;      /* Toque de Alerta / Destacados */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset y Estilos Generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: #ffffff;
    padding: 20px;
}

/* Contenedor Principal (Optimizado para Lectura y SEO) */
.privacy-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Encabezados Semánticos */
h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Elementos de Texto */
p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

ul {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

li {
    margin-bottom: 0.5rem;
}

strong {
    color: #000000;
}

/* Tabla de Tratamiento de Datos (Estructura Limpia RGPD) */
.data-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

th, td {
    border: 1px solid var(--border-color);
    padding: 12px;
    text-align: left;
}

th {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #fdfdfd;
}

/* Zonas Destacadas / Alertas de Acción */
.highlight-box {
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* Campos pendientes de rellenar por el usuario */
.highlight-field {
    background-color: #fff3cd;
    color: #856404;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    border: 1px dashed #ffeeba;
}

/* Pie de Página / Enlaces */
footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    text-decoration: underline;
    color: #003d82;
}

/* Adaptabilidad Móvil (Responsive Design) */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .privacy-container {
        margin: 10px auto;
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    th, td {
        padding: 8px;
        font-size: 0.85rem;
    }
}