The absolute limits of terms of service aren't clear, but there have been tons of cases about website/software terms of service. A quick search of Westlaw finds hundreds of reported cases in my state alone. There are certain things like binding arbitration that courts have found unconscionable to be in a clickwrap agreement[0], but generally terms of service have been found fully enforceable. There's definitely been a lot of court testing.[1]