Companies are absolutely allowed to arbitrarily ban certain people or groups of people from using their services, and if you sign a contract attesting to you being allowed to use the service, you can absolutely be found guilty and/or liable of breach of contract.