It is legally binding. By accepting ToS, or using service with ToS, you are entering a legal contract. And as long as ToS isn't breaking laws (like Digital Services Act in EU, or Online Safety Act in the UK) it can be fully enforced.
Here is an example of ToS being enforced: https://kennedyslaw.com/en/thought-leadership/article/2023/n...
Another example https://www.internetlibrary.com/cases/lib_case392.cfm
TOS is a NOTICE, not a contract.
There's zero agreement happening when you visit a website.
Assuming you didn't do something actually illegal while using their service, without a contract the most they can do is ban you from the service, or try to.