The rules around hiring workers under 18 are more specific — and more variable by state — than most payroll teams expect.