Cal. Civ. Proc. Code § 736
(b) The damages a secured lender may recover pursuant to subdivision (a) shall be limited to reimbursement or indemnification of the following:
(4) Attorneys’ fees and costs incurred by the secured lender relating to the breach.
The damages a secured lender may recover pursuant to subdivision (a) shall not include (i) any part of the principal amount or accrued interest of the secured obligation, except for any amounts advanced by the secured lender to cure or mitigate the breach of the environmental provision that are added to the principal amount, and contractual interest thereon, or (ii) amounts which relate to a release which was knowingly permitted, caused, or contributed to by the secured lender or any affiliate or agent of the secured lender.
(c) A secured lender may not recover damages against a borrower pursuant to subdivision (a) for amounts advanced or obligations incurred for the cleanup or other remediation of real property security, and related attorneys’ fees and costs, if all of the following are true:
(f) For purposes of this section:
(3) “Hazardous substance” means any of the following: