/* ============================================
   INFO MODAL - PRIVACY POLICY, TERMS, HELP
   Version: 2.21
   Date: January 14, 2026
   ============================================ */

/* Modal Overlay */
.info-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

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

/* Modal Content */
.info-modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

/* Modal Header */
.info-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.info-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.info-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.info-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.info-modal-close:active {
    transform: scale(0.9) rotate(90deg);
}

/* Modal Body */
.info-modal-body {
    padding: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

.info-modal-body h4 {
    color: #667eea;
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px 0;
}

.info-modal-body h4:first-child {
    margin-top: 0;
}

.info-modal-body p {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    margin: 12px 0;
}

.info-modal-body ul {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    margin: 12px 0;
    padding-left: 24px;
}

.info-modal-body li {
    margin: 8px 0;
}

.info-modal-body strong {
    color: #1f2937;
    font-weight: 600;
}

.info-modal-body a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.info-modal-body a:hover {
    text-decoration: underline;
}

/* Scrollbar Styling */
.info-modal-body::-webkit-scrollbar {
    width: 8px;
}

.info-modal-body::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.info-modal-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.info-modal-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Dark Theme Support */
body.dark-theme .info-modal-content {
    background: #1f2937;
}

body.dark-theme .info-modal-header {
    border-bottom-color: #374151;
}

body.dark-theme .info-modal-body h4 {
    color: #818cf8;
}

body.dark-theme .info-modal-body p,
body.dark-theme .info-modal-body ul,
body.dark-theme .info-modal-body li {
    color: #d1d5db;
}

body.dark-theme .info-modal-body strong {
    color: #f3f4f6;
}

body.dark-theme .info-modal-body a {
    color: #818cf8;
}

body.dark-theme .info-modal-body::-webkit-scrollbar-track {
    background: #374151;
}

body.dark-theme .info-modal-body::-webkit-scrollbar-thumb {
    background: #4b5563;
}

body.dark-theme .info-modal-body::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

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

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

/* Mobile Responsive */
@media (max-width: 640px) {
    .info-modal.active {
        padding: 0;
        align-items: flex-end;
    }

    .info-modal-content {
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
        max-width: 100%;
    }

    .info-modal-header {
        padding: 16px 20px;
    }

    .info-modal-header h3 {
        font-size: 18px;
    }

    .info-modal-body {
        padding: 20px;
    }

    .info-modal-body h4 {
        font-size: 16px;
    }

    .info-modal-body p,
    .info-modal-body ul,
    .info-modal-body li {
        font-size: 14px;
    }
}
