Self-regulation as a property of the legal system