A contingency fee agreement is a contract between you and the law firm under which you pay legal fees as a percentage of the amount recovered as damages.