Act on Public Interest in the Youth Sector (Zakon o javnem interesu v mladinskem sektorju; entered into force on 12 June 2010) defines young people as all young people and young adults of both genders aged between 15 and 29. This Act does not define any other target groups of young people in relation to specific policy measures. Provisions affecting young people in the criminal (penal), civil and labour legislation differ from the above definition of young people.
Penal Code (Kazenski zakonik; entered into force on 1 November 2008) defines three groups of young minors. Any person who committed a criminal offence when he was under the age of 14 years (a child), cannot be a perpetrator of a criminal offence (see Article 21). The first group is younger minors, including young people from 14 to 16 years old. Younger minors who commit crime cannot be punished, against them only educational and security measures can be imposed. The second group is older minors including young people who are already 16 years old but not yet 18. They can be exceptionally imposed a fine or juvenile detention. The third group includes young adults older than 18 who have committed a criminal offense as an adult but have not yet reached the age of 21 years. These offenders are criminally responsible, but they might receive educational or security measures only.
Code of Obligations (Obligacijski zakonik; entered into force on 1 January 2002) and Marriage and Family Relations Law (Zakon o zakonski zvezi in družinskih razmerjih; entered into force on 23 March 2017) stipulate that a natural persons acquire full legal capacity at the age of eighteen years. A natural person can acquire full legal capacity before this age if he/she marries or becomes a parent. This is decided by the court in extrajudicial proceedings. When a young person reaches 15 years, they get a limited legal capacity.
Employment Relations Act (Zakon o delovnih razmerjih; entered into force on 12 April 2013) stipulates that a young person who have reached the age of 15 years can sign an employment contract. The employment contract with a person who has not attained 15 years of age is null and void (see Article 21). Young workers aged 15 to 18 enjoy special protection, such as special restrictions regarding hard work, night work, working time, annual leave.