how brazilian legal system works