Hi ,
Your order history says the Minecraft Bundle Java & Bedrock. If so, you'll need to contact Microsoft Support.
Legacy doesn't conflict with accounts. If it's telling you that you need to purchase the game, there's something wrong with your account.
The best way to contact Microsoft is through the Home chat. Access the link below and type "Windows." Below, there will be a Contact Support option. Enter your details to open the chat, and a Microsoft agent will come to assist you.
https://support.microsoft.com/home/contact
Give feedback if the information was useful or not.
Thanks