/* ========================================
   ESTILOS PARA PÁGINAS LEGALES
   Política de Privacidad, Condiciones, etc.
   ======================================== */

/* Estilos específicos para contenido legal */
.legal-content {
    color: var(--text-dark);
    line-height: 1.8;
}

.legal-content h2 {
    color: var(--primary-color);
    font-family: "Noto Serif", serif;
    font-size: 1.8rem;
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: 600;
}

.legal-content h3 {
    color: var(--text-dark);
    font-family: "Noto Serif", serif;
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 15px;
    text-align: justify;
    color: var(--text-dark);
}

.legal-content ul {
    margin: 20px 0 20px 30px;
    color: var(--text-dark);
    list-style: none;
}

.legal-content ul li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: var(--text-dark);
    padding-left: 20px;
    position: relative;
}

.legal-content ul li::before {
    content: '▪';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1rem;
    position: absolute;
    left: 0;
    top: 0.4rem;
}

.legal-content ol {
    margin: 20px 0 20px 30px;
    color: var(--text-dark);
    list-style-type: decimal;
}

.legal-content ol li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Listes imbriquées */
.legal-content ul ul {
    margin-left: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.legal-content ul ul li::before {
    content: '◦';
    color: var(--secondary-color);
    font-size: 1rem;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.legal-content a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
}

.legal-content table thead {
    background-color: var(--primary-color);
    color: white;
}

.legal-content table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.legal-content table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    color: var(--text-dark);
}

.legal-content table tbody tr:hover {
    background-color: rgba(38, 208, 206, 0.05);
}

/* Cajas de información */
.legal-content > div[style*="background"] {
    border-radius: 8px !important;
    background-color: rgba(38, 208, 206, 0.1) !important;
    border-left: 4px solid var(--primary-color) !important;
}

.legal-content small {
    color: #666;
    font-size: 0.9rem;
}

/* Estilos para tablas de cookies */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
}

.cookie-table thead {
    background-color: var(--primary-color);
    color: white;
}

.cookie-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.cookie-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    color: var(--text-dark);
}

/* Breadcrumb personalizado */
.breadcrumb {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Page hero para páginas legales */
.page-hero {
    background: linear-gradient(135deg, rgba(38, 208, 206, 0.95) 0%, rgba(255, 107, 53, 0.85) 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 0;
    text-align: center;
    margin-top: 80px;
}

.page-hero .container {
    max-width: 900px;
}

.page-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-content h2 {
        font-size: 1.5rem;
        margin-top: 25px;
    }

    .legal-content h3 {
        font-size: 1.1rem;
        margin-top: 20px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .legal-content table {
        font-size: 0.9rem;
    }

    .legal-content table th,
    .legal-content table td {
        padding: 8px;
    }
}

/* Impresión */
@media print {
    .page-hero {
        background: white;
        color: var(--text-dark);
        border-bottom: 2px solid var(--primary-color);
    }

    .page-title {
        color: var(--text-dark);
    }

    .breadcrumb {
        display: none;
    }
}
