Brazil has a federal presidential constitutional republic type of government. It is based on representative democracy with three independent branches: executive, legislative, and judicial. The President of Brazil serves as both the head of state and head of government and is elected through a two-round direct election process. The legislative power is vested in the National Congress, which has two chambers: the Federal Senate and the Chamber of Deputies. The judiciary is independent and headed by the Supreme Federal Court. This structure ensures federalism with powers divided between the federal government and the states, and it operates under a constitution adopted in 1988 that defines the organization and function of the government branches.