loss of liberty in a criminal or delinquency proceeding