/* Privacy Policy Modal Styles */

/* Modal Overlay - Higher z-index than navbar (1000) */
#privacy-policy-modal {
    backdrop-filter: blur(4px);
    transition: all 0.3s ease-in-out;
    z-index: 1100 !important; /* Higher than navbar z-[1000] */
}

/* Modal Content Container */
#privacy-policy-modal .bg-white {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease-in-out;
    animation: modalSlideIn 0.3s ease-out;
}

/* Modal Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Header Styling */
#privacy-policy-modal .sticky {
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.dark #privacy-policy-modal .sticky {
    background-color: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid rgba(75, 85, 99, 0.8);
}

/* Close Button Hover Effects */
#close-privacy-modal {
    transition: all 0.2s ease-in-out;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#close-privacy-modal:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: scale(1.1);
}

.dark #close-privacy-modal:hover {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Scrollbar Styling for Modal Content */
#privacy-policy-modal .overflow-y-auto {
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
}

#privacy-policy-modal .overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

#privacy-policy-modal .overflow-y-auto::-webkit-scrollbar-track {
    background: transparent;
}

#privacy-policy-modal .overflow-y-auto::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
    border-radius: 3px;
}

#privacy-policy-modal .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background-color: rgba(156, 163, 175, 0.7);
}

/* Typography Enhancements */
#privacy-policy-modal .prose h3 {
    color: #1f2937;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 8px;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.dark #privacy-policy-modal .prose h3 {
    color: #f9fafb;
    border-bottom: 2px solid #374151;
}

#privacy-policy-modal .prose h4 {
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.dark #privacy-policy-modal .prose h4 {
    color: #e5e7eb;
}

/* List Styling */
#privacy-policy-modal .prose ul {
    margin-left: 1rem;
}

#privacy-policy-modal .prose li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Important Text Highlighting */
#privacy-policy-modal .prose .text-center.font-bold {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.dark #privacy-policy-modal .prose .text-center.font-bold {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    border: 2px solid #60a5fa;
    color: #dbeafe;
}

/* Contact Info Box */
#privacy-policy-modal .bg-gray-100 {
    border-left: 4px solid #10b981;
    transition: all 0.2s ease-in-out;
}

#privacy-policy-modal .bg-gray-100:hover {
    border-left-color: #059669;
    transform: translateX(4px);
}

.dark #privacy-policy-modal .bg-gray-100:hover {
    border-left-color: #34d399;
}

/* Responsive Design */
@media (max-width: 768px) {
    #privacy-policy-modal {
        padding: 1rem;
    }
    
    #privacy-policy-modal .max-w-4xl {
        max-width: 100%;
        margin: 0;
    }
    
    #privacy-policy-modal .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #privacy-policy-modal .prose h3 {
        font-size: 1.25rem;
    }
    
    #privacy-policy-modal .prose h4 {
        font-size: 1.1rem;
    }
    
    #privacy-policy-modal .prose {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #privacy-policy-modal .max-h-\[90vh\] {
        max-height: 95vh;
    }
    
    #privacy-policy-modal .py-4 {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    #privacy-policy-modal .prose .text-center.font-bold {
        font-size: 0.8rem;
        padding: 0.75rem;
    }
}

/* Focus Accessibility */
#privacy-policy-link:focus,
#close-privacy-modal:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    #privacy-policy-modal {
        position: static !important;
        background: white !important;
        color: black !important;
    }
    
    #privacy-policy-modal .bg-black {
        display: none !important;
    }
    
    #close-privacy-modal {
        display: none !important;
    }
    
    #privacy-policy-modal .prose {
        color: black !important;
    }
    
    #privacy-policy-modal .prose h3,
    #privacy-policy-modal .prose h4 {
        color: black !important;
        break-after: avoid;
    }
}