(a) For the purposes of this section, "personal agriculture" has the same definition as in Section 1940.10.
(b) Any provision of a governing document, as defined in Section 4150, shall be void and unenforceable if it effectively prohibits or unreasonably restricts the use of a homeowner's backyard for personal agriculture.
(1) This section does not apply to provisions that impose reasonable restrictions on the use of a homeowner's yard for personal agriculture.
(2) For the purposes of this section, "reasonable restrictions" are restrictions that do not significantly increase the cost of engaging in personal agriculture or significantly decreases its efficiency.
(d) This section applies only to yards that are designated for the exclusive use of the homeowner.
(e) This section shall not prohibit a homeowners' association from applying rules and regulations requiring that dead plant material and weeds, with the exception of straw, mulch, compost, and other organic materials intended to encourage vegetation and retention of moisture in the soil, are regularly cleared from the backyard.