-message");
    userBubble.innerHTML = `<p style="color:white;">${userMessage}</p>`;
    chatContainer.appendChild(userBubble);

    chatContainer.scrollTop = chatContainer.scrollHeight;
    loadingText.style.display = "block";

    fetch("/explainTermsChat", {
        method: "POST",
        headers: { "Content-Type": "application/json" },
        body: JSON.stringify({
            message: userMessage,
            conversationContext: conversationContext
        }),
    })
        .then(response => respon