From the sound of it, self-affirmation of age is sufficient for your needs.
I suspect something like the cookie consent banner could be adapted for this purpose.
If you only required age confirmation for creating an account, that could be a custom field.