Legally and morally are two different things.
The law is not ethical, or moral, or good, or true. It just is.
It’s questionable whether Bezos is acting morally.
As far as I know, at least within reason, he is acting legally.
Asking whether something is legal or not is nonsensical.
Was it productive, fully informed (transparent), warrantied, voluntary, and without imposition of costs against the investments of others? If yes then it is ethical, moral, and hopefully legal.
https://www.quora.com/Do-you-think-the-world’s-first-trillionaire-will-have-earned-the-money-legally