From global to local behind the relationship between the economy and the environment