I don’t think a private community with an HOA is a way around the new law that says you can put FOUR houses where there used to be ONE.
Some state laws overrule HOA rules, some do not. Offhand, I don’t know how this particular state law is written.