/* Modal Overlay */
.policy-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.policy-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Modal Container */
.policy-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Modal Header */
.policy-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.policy-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

/* Close Button */
.policy-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.policy-modal-close:hover {
    color: #333;
}

/* Modal Content */
.policy-modal-content {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.6;
    color: #555;
}

.policy-modal-content h1,
.policy-modal-content h2,
.policy-modal-content h3 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.policy-modal-content p {
    margin-bottom: 15px;
}

.policy-modal-content ul,
.policy-modal-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

/* Loading State */
.policy-modal-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .policy-modal {
        max-width: 100%;
        max-height: 90vh;
        margin: 10px;
    }
    
    .policy-modal-header {
        padding: 15px 20px;
    }
    
    .policy-modal-header h2 {
        font-size: 20px;
    }
    
    .policy-modal-content {
        padding: 20px;
    }
}

/* Scrollbar Styling (optional) */
.policy-modal-content::-webkit-scrollbar {
    width: 8px;
}

.policy-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.policy-modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.policy-modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}