
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;

    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: linear-gradient(145deg, #141414 0%, #0a0a0a 100%);
    border: 1px solid rgba(180, 144, 58, 0.3);
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(180, 144, 58, 0.1);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.modal__header {
    padding: 30px 35px 25px;
    border-bottom: 1px solid rgba(180, 144, 58, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal__title {
    font-family: var(--font-family-bold), 'MSI Bold', sans-serif;
    font-size: clamp(20px, 3vw, 28px);
    background: linear-gradient(135deg, #c4e5ee 0%, #acdfec 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}


/* Modal Body */
.modal__body {
    padding: 30px 35px;
    overflow-y: auto;
    flex: 1;
}

.modal__body::-webkit-scrollbar {
    width: 6px;
}

.modal__body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.modal__body::-webkit-scrollbar-thumb {
    background: #5c777e;
    border-radius: 3px;
}

.modal__body::-webkit-scrollbar-thumb:hover {
    background: #5c777e;
}

/* Terms Content Styles */
.tandc-content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.8;
}

.tandc-content__intro {
    padding: 20px 25px;
    background: rgba(180, 144, 58, 0.08);
    border-left: 3px solid #5c777e;
    border-radius: 0 8px 8px 0;
    margin-bottom: 30px;
    font-size: 15px;
}

.tandc-content__section {
    margin-bottom: 30px;
}

.tandc-content__section-title {
    font-size: 16px;
    font-weight: 600;
    color: #c0e4ee;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(180, 144, 58, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tandc-content__section-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #c0e4ee, #5c777e);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.tandc-content__text {
    margin-bottom: 15px;
}

.tandc-content__list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.tandc-content__list-item {
    position: relative;
    padding: 10px 0 10px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tandc-content__list-item:last-child {
    border-bottom: none;
}

.tandc-content__list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 6px;
    height: 6px;
    background: #5c777e;
    border-radius: 50%;
}

.tandc-content__sublist {
    list-style: none;
    padding: 10px 0 0 20px;
    margin: 0;
}

.tandc-content__sublist-item {
    position: relative;
    padding: 8px 0 8px 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.tandc-content__sublist-item::before {
    content: '–';
    position: absolute;
    left: 0;
    color: #5c777e;
}

.tandc-content__highlight {
    background: rgba(180, 144, 58, 0.1);
    padding: 15px 20px;
    border-radius: 6px;
    margin: 15px 0;
    border: 1px solid rgba(180, 144, 58, 0.15);
}

.tandc-content__product {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 254, 166, 0.15) 0%, rgba(180, 144, 58, 0.15) 100%);
    border: 1px solid rgba(180, 144, 58, 0.3);
    border-radius: 4px;
    color: #c0e4ee;
    font-weight: 600;
    margin: 10px 0;
}

.tandc-content__note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-top: 10px;
}

.tandc-content__legal {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal Footer */
.modal__footer {
    padding: 20px 35px 25px;
    border-top: 1px solid rgba(180, 144, 58, 0.2);
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.modal__footer-btn {
    padding: 14px 40px;
    background: linear-gradient(135deg, #c0e4ee 0%, #5c777e 100%);
    color: #000;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal__footer-btn:hover {
    background: linear-gradient(135deg, #ffffc0 0%, #c9a54a 100%);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 15px;
    }
    
    .modal {
        max-height: 90vh;
    }
    
    .modal__header {
        padding: 20px 20px 18px;
    }
    
    .modal__body {
        padding: 20px;
    }
    
    .modal__footer {
        padding: 15px 20px 20px;
    }
    
    .tandc-content {
        font-size: 13px;
    }
}
