Discrimination is further categorized into direct and indirect discrimination. Direct discrimination happens when someone is treated less favourably because of gender, marital status, pregnancy or breastfeeding. For example, sex discrimination occurs if an employer employs another person instead of you because of gender. Or if you are a pregnant single woman, and your employer only offers benefits to those who are legally married, then your employer would have committed an offence because of differential treatment based on marital status. Or if your employer terminates your employment after you finish your maternity leave, then the employer would have contravened the law because of differential treatment based on pregnancy.
Indirect discrimination happens when there is a policy or rule that applies to everyone, but in reality there are no fully justifiable reasons to impose such a policy or rule. Also, the policy and rule would disadvantage a group of people because of gender, marital status, pregnancy or breastfeeding. For example, your employer punishes you if you are pregnant and cannot work overtime. If the employer cannot provide fully justifiable reasons why overtime is required, then the punishment will constitute indirect discrimination.