What some people are not realizing, some places spell out the rules and you have to agree to them.
I worked sales at a station. While they handed me enough active accounts to pay a commission equal to minimum wage, I was technically commission only. For the right to 'sell' the product, I had to agree to work certain hours, wear dress clothes and tie and there was a paragraph that said if I was found to be using illegal drugs, engaging in illegal activities, or got a DUI, for example, I was no longer a part of the station. The jocks only had the last part to agree to. I recall one jock, while still living in a motel with his wife, was let go because the cops were called out 3 times in a week because they were fighting and disturbing the peace.
A friend worked for a mega church. Part of the 'qualifications' was to become a member and regular attendee at church services. There was a clause than any portion of the employee's private life that would shed a bad light on the church was subject to immediate dismissal. My friend agreed to that and worked there several years. He liked the people he worked with. He said he was pretty good at reaching the goals they set for him (and the employees under him) and they almost always got a quarterly bonus. With the bonuses, he said the pay was pretty decent.
I'm not defending anyone, just saying some companies have some crazy requirements of their employees. If you agree to the rules, you shouldn't be shocked when something happens when you break the rules. I guess you could go to court, but why? If you win, you don't want to work for them and you'll likely never see any substantial money. I think most just go for another job where your personal life is not covered by the job description.