legal machinery