﻿/* =========================================
   Contenedor Principal y Tipografía
   ========================================= */

.modern-privacy {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

/* Limitador de ancho para que el texto no se expanda demasiado en pantallas grandes */
.privacy-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================================
   Hero Section (Encabezado)
   ========================================= */

.privacy-hero {
    background: linear-gradient(135deg, #f8f5f0 0%, #e8e2d6 100%);
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid #e0d8cc;
    display: flex;
    justify-content: center;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    padding: 0 1.5rem;
    text-align: center;
}

.privacy-title {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(45deg, #b8860b, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.privacy-subtitle {
    font-size: 1.3rem;
    color: #5d6d7e;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.last-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e0d8cc;
}

/* =========================================
   Tabla de Contenidos (TOC)
   ========================================= */

.privacy-toc-wrapper {
    margin-bottom: 3rem;
}

.privacy-toc {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

    .privacy-toc h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        color: #2c3e50;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .privacy-toc ul {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 1.5rem;
        list-style: none;
        padding: 0;
    }

    .privacy-toc li {
        margin: 0;
    }

    .privacy-toc a {
        text-decoration: none;
        color: #2c3e50;
        padding: 0.8rem 1.2rem;
        background: #f8f5f0;
        border-radius: 8px;
        transition: all 0.3s ease;
        border: 1px solid transparent;
        display: inline-block;
    }

        .privacy-toc a:hover {
            background: #e8e2d6;
            transform: translateY(-2px);
            border-color: #d4af37;
        }

/* =========================================
   Secciones Generales
   ========================================= */

.privacy-section {
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
}

    .privacy-section h2 {
        color: #2c3e50;
        margin-bottom: 1.5rem;
        font-size: 1.8rem;
        border-bottom: 2px solid #f0f0f0;
        padding-bottom: 0.5rem;
    }

    .privacy-section h3 {
        color: #34495e;
        margin-top: 2rem;
        margin-bottom: 1rem;
        font-size: 1.3rem;
    }

    .privacy-section ul {
        padding-left: 1.5rem;
        margin: 1rem 0;
    }

    .privacy-section li {
        margin-bottom: 0.75rem;
        line-height: 1.7;
    }

/* =========================================
   Grillas y Tarjetas (Principles, Security, Rights)
   ========================================= */

.principles-grid,
.security-grid,
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.principle-card,
.security-card,
.right-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

    .principle-card:hover,
    .security-card:hover,
    .right-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

    .principle-card i,
    .security-card i,
    .right-card i {
        font-size: 2rem;
        color: #d4af37;
        margin-bottom: 1rem;
        display: block;
    }

    .principle-card h3,
    .security-card h3,
    .right-card h3 {
        color: #2c3e50;
        font-size: 1.2rem;
        margin: 0.5rem 0;
    }

    .principle-card p,
    .security-card p,
    .right-card p {
        color: #5d6d7e;
        font-size: 0.95rem;
        margin: 0;
        line-height: 1.6;
    }

/* =========================================
   Cajas de Información
   ========================================= */

.info-box,
.contact-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid #d4af37;
    margin: 1.5rem 0;
}

    .info-box p,
    .contact-box p {
        margin: 0.5rem 0;
    }

    .info-box strong,
    .contact-box strong {
        color: #2c3e50;
    }

    .contact-box ul {
        list-style: none;
        padding: 0;
        margin: 1rem 0;
    }

    .contact-box li {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1rem;
        color: #34495e;
    }

    .contact-box i {
        color: #d4af37;
        font-size: 1.2rem;
        width: 24px;
        flex-shrink: 0;
    }

/* =========================================
   Tablas
   ========================================= */

.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
}

.legal-basis-table,
.cookies-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

    .legal-basis-table thead,
    .cookies-table thead {
        background: #2c3e50;
        color: white;
    }

    .legal-basis-table th,
    .cookies-table th {
        padding: 1rem;
        text-align: left;
        font-weight: 600;
        font-size: 0.95rem;
    }

    .legal-basis-table td,
    .cookies-table td {
        padding: 1rem;
        border-bottom: 1px solid #eee;
        font-size: 0.95rem;
    }

        .legal-basis-table td i,
        .cookies-table td i {
            margin-right: 0.5rem;
        }

    .legal-basis-table tr:hover,
    .cookies-table tr:hover {
        background: #f8f9fa;
    }

    .legal-basis-table tr:last-child td,
    .cookies-table tr:last-child td {
        border-bottom: none;
    }

/* =========================================
   Notas y Alertas
   ========================================= */

.note,
.alert {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.alert-info {
    background: #e8f4f8;
    border-left: 4px solid #17a2b8;
}

.alert-warning {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
}

.note i,
.alert i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.alert-info i {
    color: #17a2b8;
}

.alert-warning i {
    color: #f39c12;
}

/* =========================================
   Closing Message
   ========================================= */

.closing-message {
    background: linear-gradient(135deg, #f8f5f0 0%, #e8e2d6 100%);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
    border: 1px solid #e0d8cc;
}

    .closing-message p {
        margin: 0.5rem 0;
        color: #2c3e50;
        font-size: 1.05rem;
    }

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 768px) {
    .privacy-section {
        padding: 1.5rem;
    }

    .privacy-title {
        font-size: 2rem;
    }

    .privacy-toc ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .principles-grid,
    .security-grid,
    .rights-grid {
        grid-template-columns: 1fr;
    }

    .table-responsive {
        font-size: 0.85rem;
    }

    .legal-basis-table th,
    .legal-basis-table td,
    .cookies-table th,
    .cookies-table td {
        padding: 0.75rem 0.5rem;
    }
}
