I mean legality doesnt mean much when youre talking about unwanted colonialist rule
And 100% all of this stems from zionism. They had to live in the holy land, people were there already, so they killed or exiled hundreds of thousands of people from their homes.