The legal expenses insurance contract stipulates that any sum obtained in reimbursement of the costs and fees incurred in settling the dispute shall be paid first to the insured person for the expenses remaining at his expense and, secondarily, to the insurer, up to the limit of the sums it has incurred.