The impact of law on human mobility in the Pacific