“I’m no fan of most HOAs, but it seems ludicrous to use the authority of a state government to override legally binding real estate contracts.”
The HOA documents are not signed by the buyer.
HOA documents can be changed without the owner’s consent.
A lot of things aren’t signed by a homeowner. An easement on the property that existed before you moved in, for example. Or the local zoning code.