At the age of 18, a person may legally agree to sexual activity. When a person under the age of 18 engages in sexual activity with another person, they risk being prosecuted under Article 505 or 509 of the Penal Code. If the offender is under the age of 15, the penalty is increased; if they are under the age of 12, the penalty is enhanced once more.