You are mistaking geographical location with citizenship.
Laws from Brazil apply to you while you are in Brazil - even if temporality - regardless of your nationality.
Laws from Brazil apply to you while you are in Brazil - even if temporality - regardless of your nationality.