Pedophilia is defined as attraction to a victim under the age of consent.
No age of consent varies from place to place. Pedo is a medical term with a precise meaning that doesn't vary from jurisdiction and carries the same definition you originally listed.
We impose restrictions both legally, ethically, morally and socially beyond the minimum has has hair and boobs because we care about people being emotionally healthy first with legal penalties and then social ones.
In many places a 40 year old could interact with a 17-18 year old legally without going to jail but would experience shame social consequences and friction designed to encourage people not to be assholes.
Sometimes this even works.