/* ======== ESTILOS PARA PÁGINAS LEGALES ======== */

/* Variables */
:root {
    --legal-blue: #0C1A3A;
    --legal-gold: #C7A14A;
    --legal-text: #333;
    --legal-text-light: #666;
    --legal-bg: #f8f9fa;
    --legal-border: #e0e0e0;
}

/* Reset para páginas legales */
.legal-page {
    padding-top: 80px;
}

/* Contenido principal */
.legal-content {
    padding: 60px 0 80px;
    min-height: calc(100vh - 200px);
}

.legal-content .container {
    max-width: 900px;
}

/* Header de página legal */
.legal-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--legal-gold);
}

.legal-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: var(--legal-blue);
    margin-bottom: 15px;
}

.legal-update {
    color: var(--legal-text-light);
    font-size: 0.9rem;
    font-style: italic;
}

/* Secciones legales */
.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--legal-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--legal-border);
}

.legal-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--legal-blue);
    margin: 25px 0 15px;
}

.legal-section h4 {
    font-size: 1.1rem;
    color: var(--legal-blue);
    margin: 20px 0 10px;
}

.legal-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    text-align: justify;
}

.legal-section a {
    color: var(--legal-gold);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--legal-blue);
}

/* Texto de introducción */
.intro-text {
    font-size: 1.1rem;
    background: var(--legal-bg);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--legal-gold);
}

/* Listas legales */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.legal-list li {
    padding: 10px 0 10px 25px;
    position: relative;
    line-height: 1.7;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.legal-list li:last-child {
    border-bottom: none;
}

.legal-list li::before {
    content: '•';
    color: var(--legal-gold);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Cajas de información */
.info-box {
    background: var(--legal-bg);
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid var(--legal-border);
}

.info-box h4 {
    margin-top: 0;
    color: var(--legal-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box h4 i {
    color: var(--legal-gold);
}

.company-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.company-info li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.company-info li:last-child {
    border-bottom: none;
}

/* Caja de advertencia */
.warning-box {
    background: #fff8e6;
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.warning-box p:last-child {
    margin-bottom: 0;
}

/* Tabla de datos */
.data-table {
    overflow-x: auto;
    margin: 20px 0;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.data-table th,
.data-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--legal-border);
}

.data-table th {
    background: var(--legal-blue);
    color: white;
    font-weight: 600;
    width: 200px;
    vertical-align: top;
}

.data-table td {
    line-height: 1.6;
}

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

/* Grid de derechos */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.right-item {
    text-align: center;
    padding: 25px 15px;
    background: var(--legal-bg);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.right-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.right-item i {
    font-size: 2rem;
    color: var(--legal-gold);
    margin-bottom: 15px;
}

.right-item h4 {
    margin: 0 0 10px;
    color: var(--legal-blue);
}

.right-item p {
    font-size: 0.85rem;
    margin: 0;
    text-align: center;
}

/* Dos columnas */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 25px 0;
}

.column {
    background: var(--legal-bg);
    padding: 25px;
    border-radius: 10px;
}

.column h4 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.column h4 .fa-check-circle {
    color: #28a745;
}

.column h4 .fa-times-circle {
    color: #dc3545;
}

.column ul {
    margin: 0;
    padding-left: 20px;
}

.column li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Tipos de cookies */
.cookie-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.cookie-type {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.cookie-type:hover {
    transform: translateY(-5px);
}

.cookie-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cookie-icon i {
    font-size: 1.8rem;
    color: white;
}

.cookie-icon.necessary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cookie-icon.statistics {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.cookie-icon.marketing {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.cookie-type h4 {
    margin: 0 0 10px;
    color: var(--legal-blue);
}

.cookie-type p {
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
}

/* Opciones de consentimiento */
.consent-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.consent-option {
    text-align: center;
    padding: 25px 20px;
    background: var(--legal-bg);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.consent-option:hover {
    border-color: var(--legal-gold);
}

.consent-option i {
    font-size: 2rem;
    color: var(--legal-gold);
    margin-bottom: 15px;
}

.consent-option h4 {
    margin: 0 0 10px;
    color: var(--legal-blue);
}

.consent-option p {
    font-size: 0.85rem;
    margin: 0;
    text-align: center;
}

/* Links de navegadores */
.browser-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 25px 0;
}

.browser-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 25px;
    background: var(--legal-bg);
    border-radius: 10px;
    text-decoration: none;
    color: var(--legal-text);
    transition: all 0.3s ease;
    min-width: 100px;
}

.browser-link:hover {
    background: var(--legal-gold);
    color: white;
    transform: translateY(-3px);
}

.browser-link i {
    font-size: 2rem;
}

.browser-link span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Footer de página legal */
.legal-footer {
    margin-top: 50px;
    padding: 30px;
    background: var(--legal-bg);
    border-radius: 10px;
    text-align: center;
}

.legal-footer p {
    margin: 5px 0;
    text-align: center;
}

/* Footer de la página */
.legal-page-footer {
    background: var(--legal-blue);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover,
.footer-legal-links a.active {
    color: var(--legal-gold);
}

.footer-legal-links span {
    color: rgba(255,255,255,0.3);
}

.legal-page-footer .copyright {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin: 0;
}

/* Botón pequeño */
.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .rights-grid,
    .cookie-types,
    .consent-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .legal-page {
        padding-top: 70px;
    }
    
    .legal-content {
        padding: 40px 0 60px;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .legal-section p {
        text-align: left;
    }
    
    .rights-grid,
    .cookie-types,
    .consent-options {
        grid-template-columns: 1fr;
    }
    
    .data-table th {
        width: 120px;
        font-size: 0.9rem;
    }
    
    .data-table td {
        font-size: 0.9rem;
    }
    
    .browser-links {
        gap: 10px;
    }
    
    .browser-link {
        padding: 15px 20px;
        min-width: 80px;
    }
    
    .browser-link i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 1.7rem;
    }
    
    .intro-text {
        font-size: 1rem;
        padding: 15px;
    }
    
    .info-box {
        padding: 15px;
    }
    
    .right-item,
    .cookie-type,
    .consent-option {
        padding: 20px 15px;
    }
}
