at 12 years old:
https://en.wikipedia.org/wiki/List_of_countries_by_age_of_consent
So, the government setting brightlines can provide less protection to children than a case-by-case analysis on consent and capacity to consent.
See why I don't want to answer generally?