when a woman lies with a man, and there is an emission of semen, they shall bathe in water, and be unclean until evening.
Leviticus 15:18
HEB: אֲשֶׁ֨ר יִשְׁכַּ֥ב אִ֛ישׁ אֹתָ֖הּ שִׁכְבַת־
NAS: If a man lies with a woman
KJV: The woman also with whom man shall lie
INT: after lies A man for emission
ish: man
Original Word: אִישׁ
Part of Speech: Noun Masculine
Transliteration: ish
Phonetic Spelling: (eesh)
Definition: man
Leviticus 20:13
"If a man lies with a male as he lies with a woman, both of them have committed an abomination. They shall surely be put to death. Their blood shall be upon them.
A male
https://biblehub.com/hebrew/zachar_2145.htm
Leviticus 20:13
HEB: יִשְׁכַּ֤ב אֶת־ זָכָר֙ מִשְׁכְּבֵ֣י אִשָּׁ֔ה
NAS: lies with a male as those who lie
KJV: also lie with mankind, as he lieth
INT: lies with A male lie A woman
zakar: male
Original Word: זָכָר
Part of Speech: noun masculine; Adjective
Transliteration: zakar
Phonetic Spelling: (zaw-kawr')
Definition: male
Leviticus 18:22
"You shall not lie with a male as with a woman. It is an abomination. Nor shall you mate with any animal, to defile yourself with it. Nor shall any woman stand before an animal to mate with it. It is perversion."
https://biblehub.com/text/leviticus/18-22.htm
There is no confinement to a young male, it is any male human.