10.5Expenses; Indemnity.
(a) The Borrower agrees to pay all reasonable, documented and invoicedout-of-pocket fees and expenses (including the fees and expenses of counsel, subject to the limitations set forth herein) incurred by the Administrative Agent, the Collateral Agent, each L/C Issuer and each Arranger in connection with the preparation of this Agreement and the other Credit Documents, or by the Administrative Agent (and in the case of enforcement of this Agreement, the Administrative Agent, the Collateral Agent, the Lenders and L/C Issuers) in connection with the preparation, execution and delivery, amendment, modification, waiver or enforcement of this Agreement or in connection with the administration of this Agreement and any amendments, modifications or waivers of the provisions hereof or thereof (but limited, in the case of legal fees and expenses, to the reasonable, documented and invoiced fees, charges and disbursements of one primary outside U.S. counsel and one primary outside Canadian counsel for the Administrative Agent and the Arrangers (and in the case of enforcement of this Agreement, the Administrative Agent, the Lenders and L/C Issuers) and one primary outside U.S. counsel and one primary outside Canadian counsel for the Collateral Agent, one firm of local counsel in each appropriate jurisdiction for the Administrative Agent, each L/C Issuer and each Arranger, taken as a whole, one firm of local counsel in each appropriate jurisdiction for the Collateral Agent, and, in the case of any actual or perceived conflict of interest, one additional firm of counsel for such affected party.
(b) The Borrower agrees to indemnify and hold harmless each Agent, each Arranger, each Lender, each L/C Issuer, each of their respective Affiliates (including, without limitation, controlling persons) and each of their respective directors, officers, employees, agents,sub-agents, trustees, advisors, attorneys, controlling persons, equityholders, partners, members and other representatives and each of their respective successors and permitted assigns (each such Person being called an “Indemnitee”) against, and to hold each Indemnitee harmless from, any and all joint and several actions, suits, judgments and other proceedings, investigations, inquiry, losses, claims, damages, liabilities, obligations, penalties and reasonable and documentedout-of-pocket expenses, costs or disbursements (but limited, in the case of legal fees and expenses, to the reasonable, documented and invoiced fees, charges and disbursements of one primary outside U.S. counsel and one primary outside Canadian counsel for all Indemnitees, taken as a whole, and, if reasonably necessary, a single outside local counsel in each appropriate jurisdiction (which may include a single special counsel in multiple jurisdictions) for all Indemnitees taken as a whole (and, in the case of an actual or perceived conflict of interest, an additional counsel for all Indemnitees subject to such conflict taken as a whole); provided that notwithstanding the foregoing, the Collateral Agent shall be entitled to indemnity hereunder with respect to one primary outside U.S. counsel and one primary outside Canadian counsel for Collateral Agent, each of its respective Affiliates and each Indemnitee related thereto, taken as a whole, and, if reasonably necessary, a single outside local counsel in each appropriate jurisdiction (which may include a single special counsel in multiple jurisdictions) for all such Indemnitees taken as a whole), incurred by or asserted against any Indemnitee arising out of, in any way connected with, or as a result of (i) the execution, enforcement or delivery of this Agreement or any other Credit Document, the performance by the parties hereto and thereto of their respective obligations thereunder or the consummation of the Transactions and the other transactions contemplated hereby, (ii) the use or proposed use of the proceeds of the Loans or any Letter of Credit or (iii) any claim, litigation, investigation or proceeding relating to any of the foregoing, whether or not any Indemnitee is a party thereto and regardless of whether such matter is initiated by a third party or by the Borrower or any of its subsidiaries or Affiliates or Related Parties;provided that such indemnity shall not, as to any Indemnitee, be available to the extent that such losses, claims, damages, liabilities or related expenses (A) are determined by a final,non-appealable judgment of a court of competent jurisdiction to have resulted from (1) the gross negligence, bad faith or willful misconduct of such Indemnitee or any of its Related Parties or (2) a material breach of the obligations of such Indemnitee hereunder or (B) result from any proceeding solely between or among Indemnitees that does not involve an act or omission by the Borrower or the Restricted Subsidiaries (other than claims against any Agent or any Arranger in its capacity or in fulfilling its role as an Agent or an Arranger or any similar role hereunder (excluding its role as a Lender)). This Section 10.5(b) shall not apply to Taxes other than any Taxes that represent losses, damages, etc. from anynon-Tax claim.
(c) Subject to and without limiting the generality of the foregoing sentence, the Borrower agrees to indemnify each Indemnitee against, and hold each Indemnitee harmless from, any and all losses, claims, damages, liabilities and related expenses, (but limited, in the case of legal fees and expenses, to the reasonable, documented and invoiced fees, charges and disbursements of one firm of counsel for all Indemnitees, taken as a whole, and, if necessary, one firm of counsel in each appropriate jurisdiction (which may include a single special counsel in multiple jurisdictions) for all Indemnitees subject to such conflict taken as a whole (and, in the case of an actual or perceived conflict of interest, an additional counsel for all Indemnitees taken as a whole); provided that notwithstanding the foregoing, the Collateral Agent shall be entitled to indemnity hereunder with respect to one firm of counsel for Collateral Agent, each of its respective Affiliates and each Indemnitee related thereto, taken as a
147