Paying lower social contributions? Is that even legal?

No problem: you are well within the rules. The scheme for reduced social contributions on student labour is an exemption that is provided in the law.

Still not convinced? Read it for yourself: here is the link to the official legal text.