Age Restrictions in Community Associations

Many communities were marketed as 'adult communities' and the governing documents contain provisions prohibiting permanent occupancy by children.  Are they legal or enforceable?  Joseph Adams provides a brief explanation.