Is it a gated community, or set of properties owned by a landlord? If so, it’s a completely different matter. You entered into an agreement willingly. Totally different than the government mandating morality from on high, which has been a problem since the world was created.
No, it is not a gated community. It is a town that I pay property taxes to.