Constitution of the Federative Republic of Brazil
TITLE ii - Fundamental Rights and Guarantees
CHAPTER i - individual and Collective Rights and Duties
Article 5. All persons are equal before the law, without any distinction whatsoever, Brazilians and foreigners residing in the country being ensured of inviolability of the right to life, to liberty, to equality, to security and to property, on the following terms:
...
lXv – illegal arrest shall be immediately remitted by the judicial authority;
lXvi – no one shall be taken to prison or held therein, when the law admits release on own recognizance, subject or not to bail;
Fair trial standards
Rights during investigation - arbitrary arrest or detention and deprivation of liberty
EDIT.