Community-based environmental protection in the Brazilian Amazon: recent history, legal landmarks and expansion across protected areas