AMENDED AND RESTATED TERM LOAN AGREEMENT dated as of March 20, 2024