/* Privacy Policy Popup - GDPR/CCPA Compliant */
.privacy-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto;
    max-width: 420px;
    margin: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 24px;
    z-index: 10000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    transform: translateY(150%);
    transition: transform 0.4s ease-out;
}

.privacy-popup.show {
    transform: translateY(0);
}

.privacy-popup.hidden {
    display: none;
}

.privacy-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.privacy-popup-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0066ff, #6366f1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.privacy-popup-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.privacy-popup-text {
    color: #475569;
    margin-bottom: 16px;
}

.privacy-popup-text a {
    color: #0066ff;
    text-decoration: none;
    font-weight: 500;
}

.privacy-popup-text a:hover {
    text-decoration: underline;
}

.privacy-popup-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.privacy-popup-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    flex: 1;
    min-width: 120px;
}

.privacy-popup-btn-primary {
    background: linear-gradient(135deg, #0066ff, #6366f1);
    color: white;
}

.privacy-popup-btn-primary:hover {
    background: linear-gradient(135deg, #0052cc, #4f46e5);
    transform: translateY(-1px);
}

.privacy-popup-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.privacy-popup-btn-secondary:hover {
    background: #e2e8f0;
}

.privacy-popup-preferences {
    margin: 16px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.privacy-popup-preferences h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #0f172a;
}

.privacy-popup-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.privacy-popup-option:last-child {
    border-bottom: none;
}

.privacy-popup-option-text {
    flex: 1;
}

.privacy-popup-option-label {
    font-weight: 500;
    color: #0f172a;
    display: block;
}

.privacy-popup-option-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
}

.privacy-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    background: #cbd5e1;
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
}

.privacy-toggle.active {
    background: #0066ff;
}

.privacy-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.privacy-toggle.active .privacy-toggle-slider {
    transform: translateX(22px);
}

.privacy-popup-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.75rem;
    color: #64748b;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .privacy-popup {
        right: 12px;
        left: 12px;
        bottom: 12px;
        max-width: none;
        padding: 20px;
    }
    
    .privacy-popup-buttons {
        flex-direction: column;
    }
    
    .privacy-popup-btn {
        width: 100%;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .privacy-popup {
        background: #1e293b;
        border-color: #334155;
        color: #f1f5f9;
    }
    
    .privacy-popup-title {
        color: #f1f5f9;
    }
    
    .privacy-popup-text {
        color: #94a3b8;
    }
    
    .privacy-popup-preferences {
        background: #0f172a;
    }
    
    .privacy-popup-option {
        border-color: #334155;
    }
    
    .privacy-popup-option-label {
        color: #f1f5f9;
    }
    
    .privacy-popup-btn-secondary {
        background: #334155;
        color: #f1f5f9;
    }
    
    .privacy-popup-btn-secondary:hover {
        background: #475569;
    }
    
    .privacy-popup-footer {
        border-color: #334155;
        color: #64748b;
    }
}