I can’t imagine any law firm putting provisions into an HOA that actually violates state or federal laws anyway, so that kinda goes without saying. My understanding was that they could dictate how the property was maintained and what the property could be used for. This has been eye-opening!
There are also ordinances from county and Cities that HOA rules are trumped by.
They hate that usually and will still try to make rules that go against the zoning for a place