Goals, means and results of procedural and legal regulation: the general theoretical aspect