It doesn't have to be court-enforceable. It just has to be scary enough that the customer will self-enforce. Usually the worst thing that happens if you put something invalid in a contract is that it's as if you didn't write it. Which is fine because that's what you would have done anyway.