In Youform, you can add a consent block easily.
For this, you need to go to your form and search for the single select question block and there you can write your consent.
You can even include links. Make sure you keep only one option there, and you can make the option anything like "Yes, I accept". Also, make sure you make this field required.
Your users will only be able to proceed if they click on the "Yes, I accept" button.