That's in the TOS, yes. Or actually, a lot more broader: activities "that may be harmful to others, our operations or reputation," are reasons for termination. (EDIT: I now actually wonder if they grant large customers with specially negotiated deals explicit changes to these terms - if you do a large multi-year contract, surely your lawyers would want some more security on that)
Re your example, at least from a quick look at the search results, the versions of "Mein Kampf" Amazon.de offers are all legal to sell in Germany. (Its legal status was and is ... somewhat complicated, changed in recent years due to copyright expiring, and "it's banned" is not quite accurate)
In the meantime, the Bavarian state has brought it to market again in a commented form. The original text is reproduced together with comments on the text. This issue is freely traded and even used in historical education at schools.