Labor contracts, equal treatment, and wage-unemployment dynamics