Hmmmm. Can having a TOS document that people sign off on supersede the law? My understanding is that it can’t.
It’s considered a legal contract, as long as it doesn’t break the law.
Nothing they (Amazon) did appears to break the law (specifically, COPYRIGHT LAW, which is notoriously protective of the copyright holder).