(a) A member of an association may bring a civil action for declaratory or equitable relief for a violation of this article by the association, including, but not limited to, injunctive relief, restitution, or a combination thereof, within one year of the date the cause of action accrues.
(b) A member who prevails in a civil action to enforce the member’ s rights pursuant to this article shall be entitled to reasonable attorney’s fees and court costs, and the court may impose a civil penalty of up to five hundred dollars ($500) for each violation, except that each identical violation shall be subject to only one penalty if the violation affects each member equally. A prevailing association shall not recover any costs, unless the court finds the action to be frivolous, unreasonable, or without foundation.