The Discrimination Act

The Discrimination Act (Diskrimineringslag) is the law that aims to combat discrimination and in other ways promote equal rights and opportunities regardless of sex, transgender identity or expression, ethnicity, religion or other belief, disability, sexual orientation or age.

The Act defines discrimination, harassment and sexual harassment. It prohibits discrimination in work life and education, as well as many other aspects of society, and lays out the responsibilities to investigate and take measures against harassment. 

Some contexts where the law explicitly addresses discrimination are, for example, labour market policy activities and employment services not under public contract, running a business and professional recognition,  membership in organizations, access goods, services, housing etc., access to healthcare, social security, study support, unemployment etc., military and civilian service and more. 

A contract or agreement cannot restrict your rights under this law.  You can find the text of the law here and an unofficial English translation here.