Costa Rican Law 9406 prohibits a person 18 years of age or older from having sexual relations with another person under the age of 15 if the older party is five years of age or older than the minor. If the youngest sexual partner is between 15 and 17 years old, the maximum age difference is seven years. In Mexico, criminal legislation is shared between the federal and state governments. Federal law sets 12 as the minimum age of consent, while the age beyond which there are no restrictions on consensual sexual activity is 18 (sexual relations with a person between the ages of 12 and 18 are not illegal per se, but can still be prosecuted in certain circumstances). State local laws may take precedence over federal law. In practice, the decision whether or not to prosecute is left to the State authorities, regardless of the age of the youngest person. At the state level, the minimum age of consent ranges from 12 (and puberty in some states) to 15, while the age at which there are no restrictions on consensual sexual activity ranges from 16 to 18 (most often 18). In other words, a person must be at least 16 years of age to legally consent to sexual activity. Another article, 266 bis, provides for an additional penalty of up to half in certain circumstances – (a) if there are several offenders; (b) if the offence is committed by a parent, guardian, stepfather or “companion” (amasio) of the mother; (c) in the event of abuse of authority by a person as a public servant; (d) if the offence is committed by a person who keeps the minor in custody, custody or training, or nevertheless by breach of trust.
Contrary to what one might think, the absence of “no” in the context of sexual consent does not mean “yes”. In a legal sense, consent is voluntary consent to sexual activity. Anything other than such an agreement does not constitute consent. Different ages may apply when one partner is in a position of power or authority over the other, such as the teacher, manager, coach, parent or step-parent. For example, in Indiana, the age of consent is 16, but it is illegal for a person over the age of 18 to have sex with someone under the age of 18 if they work at their school, if they are their parents or step-parent, or if they are recruiting to join the military. In North America, the legal age of consent to sexual activity varies by province or territory. Historically, the age of consent applied to relations between men and women; Same-sex relations were often illegal, regardless of the age of the participants. Modern laws vary, and there may be several ages that apply in each jurisdiction. For example, different ages may apply if the relationship is between same-sex partners or if the sexual contact is not strictly vaginal. In Canada, it is legal to engage in sexual activity with a person between the ages of 14 and 15, under two conditions: The age of consent is the age at which a young person can legally consent to sexual activity. The age of consent applies to all forms of sexual activity, from kissing and fondling to sexual intercourse.
The age of consent or “age of consent” is the age at which a young person can legally consent to sexual activity. In Canada, this age is 16. That is, as long as a person is 16 years old and the sexual activity is consensual, there is no criminal responsibility. Sexual contact with people under this age can be criminal, with a few exceptions. When a person reaches the age of consent in Canada, they can legally consent to sexual activity. Meanwhile, the criminal law provides for severe penalties for those who engage in sexual activity with youth under the age of consent, and punishes such activities by Canadians both in Canada and abroad. The age of consent in Mexico is complex. Typically, Mexican states have a “primary” age of consent (up to 12), and sexual behavior with people below that age is still illegal.
Sexual relations that occur between adults and adolescents under the age of 18 are legally ambiguous: laws against corruption of minors, as well as Estupro laws, can be applied to such acts at the discretion of the prosecutor`s office. These laws are situational and open to interpretation. The general age of consent in Mexico is 17.  Article 169 makes it illegal to “promote, facilitate, administer, finance, incitement or in any way, publicly or privately, the use of persons under the age of eighteen in sexual or erotic acts.” Articles 163 and 154 of the Criminal Code (Código Penal) deal with estupro and make it illegal to use deception (engaño) or exploit its superiority (superioridad) resulting from a relationship in order to gain sexual access to young people between the ages of 15 and 18. In the United States, age of consent laws are enacted at the state, territorial and federal county levels. There are several federal laws to protect minors from sexual predators, but none of them set an age limit for sexual acts. 16 million In June 2003, heterosexual and homosexual sodomy was prosecuted in all United States states, territories and Columbia districts under the United States Supreme Court decision Lawrence v. Texas (between consenting, non-commercial adults in a private room). In State v. Limon (2005), the Kansas Supreme Court used Lawrence as a precedent to repeal the state`s “Romeo and Juliet” law, which prohibits harsher sentences for heterosexuals than for homosexuals convicted of similar ages of consent offenses.  The age of consent is the age at which a person is deemed to have the legal capacity to consent to sexual acts.
Both partners must be of legal age to give consent, although in some jurisdictions there are exceptions to the age of consent law if the minor and their partner are under a certain number of years old or if a minor is married to their partner. The law prohibits persons under the age of consent, and sexual relations involving such persons may be criminalized by penalties similar to those provided for rape or sexual assault. Non-violent sexual contact with persons under the age of consent may be punished with varying degrees of severity, ranging from an offence punishable by a simple fine to a crime punishable by a penalty equivalent to rape. Section 262 provides another crime for consensual sexual relations with adolescents between the ages of 12 and 18 when consent is obtained by deception. The penalty is 3 months to 4 years in prison. However, this offence may be prosecuted only by complaint by the minor or his parents or guardians in accordance with article 263. Since it is illegal to have sexual contact with a person under the age of consent, such contact is considered legal rape. Persons 16 years of age and older are considered legally capable of giving informed consent, except in certain circumstances. The law allows 14- and 15-year-olds, under certain conditions, to legally consent to sexual touching or sexual intercourse with someone under the age of four years older than them. Im 19. In the nineteenth century, the age of consent for heterosexual vaginal sex was 12.
In 1890, Parliament raised the age of consent to 14.  Anyone who had sexual intercourse with a person under the age of 14 was life imprisonment and flogging, while the penalty for anyone attempting to seduce a minor girl was two years` imprisonment and flogging.  Canada also had laws against “seduction” of underage girls over the age of consent. In 1886, a law was passed that made the “seduction” of a girl over the age of 12 and under the age of 16 “of a previously chaste character” a criminal offence; The “seduction” of a woman under the age of 18 “under promise of marriage” was also declared illegal in 1886 and amended in 1887 to apply to women under the age of 21.  After raising the age of consent to 14, laws against “seduction” of underage girls were amended to apply to persons over the age of 14, and various such laws remained in force until the 20th century.  The age of consent was raised from 14 to 16 in the spring of 2008 when the Tackling Violent Crime Act came into force. The new measures still provide for exceptions between 12 and 16 years: if there is no more than two years difference for 12 and 13 years or five years for 14 and 15 years. With the passage of the Protection of Communities and Exploited Persons Act, also known as Bill C-36, the purchase of sexual services is illegal in Canada. Sexual services include not only sexual intercourse, but also knee dancing, masturbation and other types of sexual activities, for example, paid sex over the Internet in front of a webcam. In Panama, the age of consent is generally 18, although sexual conduct with children between the ages of 14 and 18 is not always illegal.  For the protection of children and youth, the Canadian Criminal Code considers that persons under the age of 16 are incapable of giving consent: the age of 16 is therefore the legal age of consent.
In the Bahamas, the age of consent for opposite-sex activities is 16 and the age of consent for homosexual activity is 18. Homosexuality was legalized in 1991, but “public homosexuality” is a criminal offense punishable by 20 years in prison without parole.  [needs to be updated] Article 167 makes it illegal “to encourage or facilitate the corruption of a person under the age of eighteen (…) by various sexual acts of carnal knowledge, even if the victim agrees to participate.” It is illegal for parents and guardians to obtain their child under the age of 18 for illegal sexual activity or for owners, occupiers or managers of premises to allow a person under the age of 18 to remain on such premises to engage in illegal sexual activity.