California Family Code
Family Code section 2032
(a) The court may make an award of attorney's fees and costs under Section 2030 or 2031 where the making of the award, and the amount of the award, are just and reasonable under the relative circumstances of the respective parties.
(b) In determining what is just and reasonable under the relative circumstances, the court shall take into consideration the need for the award to enable each party, to the extent practical, to have sufficient financial resources to present the party's case adequately, taking into consideration, to the extent relevant, the circumstances of the respective parties described in Section 4320 . The fact that the party requesting an award of attorney's fees and costs has resources from which the party could pay the party's own attorney's fees and costs is not itself a bar to an order that the other party pay part or all of the fees and costs requested. Financial resources are only one factor for the court to consider in determining how to apportion the overall cost of the litigation equitably between the parties under their relative circumstances.
(c) The court may order payment of an award of attorney's fees and costs from any type of property, whether community or separate, principal or income.
(d) Either party may, at any time before the hearing of the cause on the merits, on noticed motion, request the court to make a finding that the case involves complex or substantial issues of fact or law related to property rights, visitation, custody, or support. Upon that finding, the court may in its discretion determine the appropriate, equitable allocation of attorney's fees, court costs, expert fees, and consultant fees between the parties. The court order may provide for the allocation of separate or community assets, security against these assets, and for payments from income or anticipated income of either party for the purpose described in this subdivision and for the benefit of one or both parties. Payments shall be authorized only on agreement of the parties or, in the absence thereof, by court order. The court may order that a referee be appointed pursuant to Section 639 of the Code of Civil Procedure to oversee the allocation of fees and costs.