You're confusing the declaration of independence, a fluff document, with the Constitution, a legal document. Fluffy language aside, in the Anglo-American tradition, rights derive from legal documents (or precedents), and the right to habeas corpus or a jury trial derives from the Constitution and is circumscribed the the territorial jurisdiction of the Constitution.