Laws from Brazil apply to you while you are in Brazil - even if temporality - regardless of your nationality.