; and (E) nothing in this subsection waives any legal requirement under any Federal or State law. (i) Matching contributions (1) Except as provided in paragraph (2), the Secretary shall require that each coastal state that receives a grant under this section, or a qualified holder designated by that coastal state under subsection (h), shall provide matching funds in an amount equal to at least 25 percent of the total cost of the project carried out with the grant. (2) The Secretary may waive the application of paragraph (1) for any qualified holder that is an underserved community, a community that has an inability to draw on other sources of funding because of the small population or low income of the community, or for other reasons the Secretary considers appropriate. (3) A local community designated as a qualified holder under subsection (h) may utilize funds or other in-kind contributions donated by a nongovernmental partner to satisfy the matching funds requirement under this subsection. (4) As a condition of receipt of a grant under this section, the Secretary shall require that a coastal state provide to the Secretary such assurances as the Secretary determines are sufficient to demonstrate that the share of the cost of each eligible project that is not funded by the grant awarded under this section has been secured. (5) If financial assistance under this section represents only a portion of the total cost of a project, funding from other Federal sources may be applied to the cost of the project. Each portion shall be subject to match requirements under the applicable provision of law. (6) The Secretary shall treat as non-Federal match the value of a working waterfront or interest in a working waterfront, including conservation and other easements, that is held in perpetuity by a qualified holder, if the working waterfront or interest is identified in the application for the grant and acquired by the qualified holder within 3 years of the grant award date, or within 3 years after the submission of the