A legal approach to criminal proceedings regarding children