Yeah most places have “Romeo and Juliet” laws, where an 18 year old can sleep with someone 1-3 years younger than them and not face charges. It’s common sense, no judge wants to ruin some 18 year old high school senior’s life because they were a teenager with hormones and slept with their 16 year old s/o that they’ve been dating for two years.
And those laws are just in place for having sex. Dating =/= sex.