Yes, it is legal and allowed to be used in the US. If you are living in the US, then you can simply get it from the Mojang website.