Legal age for consent and age for buying pornography materials are two things.
18 is in most countries legal age for buying alcohol, cigarettes and erotic material, but for individual sexual intercourse is lower, mainly on the end of elementary school 9.grade.
Its very similarly close on both...