(a) No declaration or other governing document shall include a restrictive covenant in violation of Section 12955 of the Government Code.
(b) Notwithstanding any other provision of law or provision of the governing documents, the board, without approval of the members, shall amend any declaration or other governing document that includes a restrictive covenant prohibited by this section to delete the restrictive covenant, and shall restate the declaration or other governing document without the restrictive covenant but with no other change to the declaration or governing document.
(c) If the declaration is amended under this section, the board shall record the restated declaration in each county in which the common interest development is located. If the articles of incorporation are amended under this section, the board shall file a certificate of amendment with the Secretary of State pursuant to Section 7814 of the Corporations Code.
(d) If after providing written notice to an association, pursuant to Section 4035, requesting that the association delete a restrictive covenant that violates subdivision (a), and the association fails to delete the restrictive covenant within 30 days of receiving the notice, the Department of Fair Employment and Housing, a city or county in which a common interest development is located, or any person may bring an action against the association for injunctive relief to enforce subdivision (a). The court may award attorney's fees to the prevailing party.