/* ===== PRIVACY CONTROL SYSTEM STYLES ===== */
/* GDPR, CCPA, and HIPAA Compliant Privacy Management */

/* Privacy Consent Banner */
.privacy-consent-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%) !important;
    color: #ffffff !important;
    z-index: 10002 !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(15px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    transform: translateY(100%) !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    display: block !important;
}

.privacy-consent-banner.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

.privacy-consent-banner.hiding {
    transform: translateY(100%) !important;
    opacity: 0 !important;
}

.privacy-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.privacy-consent-content {
    display: grid;
    gap: 1.5rem;
}

.privacy-consent-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.privacy-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.privacy-title h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.privacy-subtitle {
    font-size: 0.875rem;
    color: #34d399;
    font-weight: 600;
    background: rgba(52, 211, 153, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.privacy-consent-body .privacy-notice {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.privacy-consent-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.consent-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.consent-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 0.125rem;
    accent-color: #3b82f6;
    cursor: pointer;
}

.consent-checkbox:disabled {
    opacity: 0.6;
}

.consent-text {
    flex: 1;
}

.consent-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.consent-text small {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* Privacy Action Buttons */
.privacy-consent-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

.privacy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-family: var(--font-primary);
    min-height: 44px;
    background: none;
}

.privacy-btn--primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border-color: transparent;
}

.privacy-btn--primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.privacy-btn--success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-color: transparent;
}

.privacy-btn--success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.privacy-btn--secondary {
    background: rgba(107, 114, 128, 0.2);
    color: #e5e7eb;
    border-color: rgba(107, 114, 128, 0.4);
}

.privacy-btn--secondary:hover {
    background: rgba(107, 114, 128, 0.3);
    border-color: rgba(107, 114, 128, 0.6);
}

.privacy-btn--outline {
    background: transparent;
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.5);
}

.privacy-btn--outline:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.8);
}

/* Privacy Footer */
.privacy-consent-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.privacy-link {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.privacy-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.privacy-compliance-badges {
    display: flex;
    gap: 0.75rem;
}

.compliance-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    background: rgba(34, 197, 94, 0.2);
    color: #34d399;
    border-radius: 4px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Privacy Center Modal */
.privacy-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-modal-container.hidden {
    display: none;
}

.privacy-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(4px);
}

.privacy-modal {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--gray-300);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    max-width: 800px;
    max-height: 90vh;
    width: 95%;
    overflow: hidden;
    z-index: 10002;
}

.privacy-modal-header {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.privacy-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.privacy-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.privacy-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.privacy-modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.privacy-modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--gray-300);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: rgba(55, 65, 81, 0.3);
}

/* Privacy Sections */
.privacy-section {
    margin-bottom: 2rem;
}

.privacy-section h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.privacy-section-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Privacy Toggle System */
.privacy-toggle-group {
    display: grid;
    gap: 1rem;
}

.privacy-toggle-item {
    background: var(--bg-card);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 1.5rem;
}

.privacy-toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.privacy-toggle-info {
    flex: 1;
}

.privacy-toggle-info strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.privacy-toggle-info p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

.privacy-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    flex-shrink: 0;
}

.privacy-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.privacy-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #6b7280;
    transition: all 0.3s ease;
    border-radius: 34px;
}

.privacy-toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.privacy-toggle-input:checked + .privacy-toggle-slider {
    background-color: #3b82f6;
}

.privacy-toggle-input:disabled + .privacy-toggle-slider {
    background-color: #22c55e;
    opacity: 0.6;
    cursor: not-allowed;
}

.privacy-toggle-input:checked + .privacy-toggle-slider:before {
    transform: translateX(26px);
}

/* Data Controls */
.privacy-data-controls {
    display: grid;
    gap: 1rem;
}

.privacy-control-item {
    background: var(--bg-card);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 1.25rem;
}

.privacy-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.privacy-control-header strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.privacy-value {
    font-size: 0.875rem;
    color: #3b82f6;
    font-weight: 500;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.privacy-control-item p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Privacy Rights Grid */
.privacy-rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.privacy-right-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: var(--font-primary);
    color: var(--text-color);
}

.privacy-right-btn:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
}

.privacy-right-btn i {
    font-size: 1.5rem;
    color: #3b82f6;
}

.privacy-right-btn span {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Compliance Information */
.privacy-compliance-info {
    background: var(--bg-card);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 1.25rem;
}

.compliance-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.compliance-item:last-child {
    margin-bottom: 0;
}

.compliance-item strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Data Processing Notices */
.privacy-data-notice {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1rem 0;
}

.privacy-notice-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #3b82f6;
}

.privacy-notice-content p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.privacy-details summary {
    cursor: pointer;
    font-size: 0.875rem;
    color: #3b82f6;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.privacy-processing-list {
    margin-left: 1rem;
    margin-top: 0.75rem;
}

.privacy-processing-list li {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Communication Preferences */
.communication-preferences {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1rem 0;
}

.comm-prefs-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.comm-prefs-header p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.comm-prefs-options {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.comm-pref-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.comm-pref-label:hover {
    background: rgba(16, 185, 129, 0.1);
}

.comm-pref-label input {
    width: 18px;
    height: 18px;
    margin-top: 0.125rem;
    accent-color: #10b981;
}

.comm-pref-label span {
    font-size: 0.875rem;
    color: var(--text-color);
    line-height: 1.4;
}

.comm-prefs-note {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
}

.comm-prefs-note i {
    color: #10b981;
}

/* Privacy Notifications */
.privacy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10003;
    background: var(--bg-secondary);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    min-width: 300px;
    max-width: 400px;
}

.privacy-notification.active {
    transform: translateX(0);
}

.privacy-notification--success {
    border-left: 4px solid #10b981;
}

.privacy-notification--info {
    border-left: 4px solid #3b82f6;
}

.privacy-notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-color);
}

.privacy-notification-content i {
    font-size: 1rem;
}

.privacy-notification--success i {
    color: #10b981;
}

.privacy-notification--info i {
    color: #3b82f6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .privacy-consent-container {
        padding: 1.5rem 1rem;
    }
    
    .privacy-consent-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .privacy-consent-categories {
        grid-template-columns: 1fr;
    }
    
    .privacy-consent-actions {
        flex-direction: column;
    }
    
    .privacy-btn {
        width: 100%;
        justify-content: center;
    }
    
    .privacy-consent-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .privacy-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .privacy-rights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .privacy-toggle-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .privacy-toggle-switch {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .privacy-rights-grid {
        grid-template-columns: 1fr;
    }
    
    .privacy-consent-banner {
        max-height: 95vh;
    }
    
    .privacy-control-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .privacy-links {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .privacy-compliance-badges {
        justify-content: center;
        width: 100%;
    }
}