Theoretical foundations for the design of legal means of counteracting corruption