It is legal to buy Minecraft accounts as long as the account holder has given their permission for the account to be sold. If an account is found to have been created using someone else's personal information without their consent, then the account will be banned. It is also important to note that any purchasedMinecraftaccounts are non-transferable and cannot be refunded.