/* Terms of Use Popup */
.terms-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.terms-popup-overlay.terms-popup-closing {
    animation: fadeOut 0.3s ease;
}

.terms-popup {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.terms-popup-large {
    max-width: 800px;
}

.terms-scrollable {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.terms-scrollable h3 {
    margin: 20px 0 10px 0;
    color: #1a472a;
    font-size: 18px;
    font-weight: 600;
}

.terms-popup h2 {
    margin: 0 0 20px 0;
    color: #1a472a;
    font-size: 24px;
    font-weight: 600;
}

.terms-content {
    margin-bottom: 25px;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

.terms-content p {
    margin: 0 0 15px 0;
}

.terms-content ul {
    margin: 10px 0 15px 20px;
    padding: 0;
}

.terms-content li {
    margin: 5px 0;
}

.terms-content a,
.view-terms-link {
    color: #2e7d32;
    text-decoration: underline;
    cursor: pointer;
}

.terms-content a:hover,
.view-terms-link:hover {
    color: #1b5e20;
}

.terms-content small {
    color: #666;
    font-size: 13px;
}

.terms-accept-btn {
    width: 100%;
    padding: 15px 30px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.terms-accept-btn:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.terms-accept-btn:active {
    transform: translateY(0);
}

.terms-close-btn {
    width: 100%;
    padding: 12px 30px;
    background: #666;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.terms-close-btn:hover {
    background: #444;
}

.terms-close-btn:active {
    transform: translateY(0);
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

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

/* Mobile responsive */
@media (max-width: 600px) {
    .terms-popup {
        padding: 20px;
        width: 95%;
        max-height: 85vh;
    }

    .terms-popup h2 {
        font-size: 20px;
    }

    .terms-content {
        font-size: 14px;
    }

    .terms-accept-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}
