/* =====================================================
   18. PÁGINAS LEGALES
   ===================================================== */
.legal-page {
    padding: 8rem 0 4rem;
    min-height: 80vh;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
}

.legal-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-meta {
    color: var(--text-secondary);
    font-size: 1rem;
}

.legal-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    padding-left: 1rem;
}

.legal-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content ul li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    position: relative;
}

.legal-content ul li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-alert {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(18, 140, 126, 0.1) 100%);
    border-left: 4px solid var(--whatsapp-green);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin: 2rem 0;
}

.legal-alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-left-color: #ffc107;
}

.legal-alert-info {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 88, 203, 0.1) 100%);
    border-left-color: #0d6efd;
}

.legal-alert h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Tarjetas de proceso para data-deletion */
.deletion-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.deletion-step {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.deletion-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--whatsapp-green);
}

.deletion-step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.deletion-step h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Template de email */
.email-template {
    background: #f8f9fa;
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-sm);
    padding: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 2rem 0;
    position: relative;
}

.copy-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Navegación legal (breadcrumb) */
.legal-nav {
    background: white;
    border-radius: var(--radius-sm);
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    box-shadow: var(--shadow-sm);
}

.legal-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-nav a:hover,
.legal-nav a.active {
    color: var(--whatsapp-green);
}

/* Responsive */
@media (max-width: 768px) {
    .legal-content {
        padding: 2rem 1.5rem;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .deletion-steps {
        grid-template-columns: 1fr;
    }
    
    .legal-nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}