(a)
No policy of insurance shall provide, or be construed to provide, any coverage or indemnity for the payment of any fine, penalty, or restitution in any criminal action or proceeding or in any action or proceeding brought pursuant to Chapter 5 (commencing with Section 17200) of Part 2 of, or Chapter 1 (commencing with Section 17500) of Part 3 of, Division 7 of the Business and Professions Code by the Attorney General, any district attorney, any city prosecutor, or any county counsel, notwithstanding whether the exclusion or exception regarding this type of coverage or indemnity is expressly stated in the policy.
(b)
No policy of insurance shall provide, or be construed to provide, any duty to defend, as defined in subdivision (c), any claim in any criminal action or proceeding or in any action or proceeding brought pursuant to Chapter 5 (commencing with Section 17200) of Part 2 of, or Chapter 1 (commencing with Section 17500) of Part 3 of, Division 7 of the Business and Professions Code in which the recovery of a fine, penalty, or restitution is sought by the Attorney General, any district attorney, any city prosecutor, or any county counsel, notwithstanding whether the exclusion or exception regarding the duty to defend this type of claim is expressly stated in the policy.
(c)
For the purpose of this section, “duty to defend” means the insurer’s right or obligation to investigate, contest, defend, control the defense of, compromise, settle, negotiate the compromise or settlement of, or indemnify for the cost of any aspect of defending any claim in any criminal action or proceeding or in any action or proceeding brought pursuant to Chapter 5 (commencing with Section 17200) of Part 2 of, or Chapter 1 (commencing with Section 17500) of Part 3 of, Division 7 of the Business and Professions Code in which the insured expects or contends that (1) the insurer is liable or is potentially liable to make any payment on behalf of the insured or (2) the insurer will provide a defense for a claim even though the insurer is precluded by law from indemnifying that claim.
(d)
Any provision in a policy of insurance which is in violation of subdivision (a) or (b) is contrary to public policy and void.