legally (合法的に): He immigrated to the country legally. (彼は合法的にその国に移住しました)

He immigrated to the country legally.