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).
I guess laws in my state laws are different. Theft is illegals, as is trespassing on private property.