Cal. Civ. Proc. Code § 128.7
(b) By presenting to the court, whether by signing, filing, submitting, or later advocating, a pleading, petition, written notice of motion, or other similar paper, an attorney or unrepresented party is certifying that to the best of the person’s knowledge, information, and belief, formed after an inquiry reasonable under the circumstances, all of the following conditions are met:
(c) If, after notice and a reasonable opportunity to respond, the court determines that subdivision (b) has been violated, the court may, subject to the conditions stated below, impose an appropriate sanction upon the attorneys, law firms, or parties that have violated subdivision (b) or are responsible for the violation. In determining what sanctions, if any, should be ordered, the court shall consider whether a party seeking sanctions has exercised due diligence.
(d) A sanction imposed for violation of subdivision (b) shall be limited to what is sufficient to deter repetition of this conduct or comparable conduct by others similarly situated. Subject to the limitations in paragraphs (1) and (2), the sanction may consist of, or include, directives of a nonmonetary nature, an order to pay a penalty into court, or, if imposed on motion and warranted for effective deterrence, an order directing payment to the movant of some or all of the reasonable attorney’s fees and other expenses incurred as a direct result of the violation.