Thanks for the code snippets to achieve the required functionality.
In the Dawn theme, please look for the other matching files as mentioned below:
- cart.js INSTEAD OF theme.js or theme.js.liquid
- main-cart-footer.liquid INSTEAD OF cart-template.liquid or cart.liquid
Also, use <a href=“/pages/terms-and-conditions” target=“_blank”> INSTEAD OF just so that the original cart page is intact. And, the terms & conditions page opens up in a new window, which could be closed after reading and still the cart window is available for the customer to checkout.
All this worked for me in Debut theme. I believe this information would help!