Especially on Linux containers and VM, under EU GDPR the OS or Application might not be allowed to collect date of birth, age or anything that identifies EU citizens even if they live in the US.
If one country decide to outlaw OS age gate, it will a bigger legal nightmare.
Not all Linux installations are encrypted neither.