conceptualising the principles of legality