<human>:  How are the Indonesian economy and politics structured?
<bot>: The Indonesian economy and politics are structured in a unitary presidential republic, in which the president of Indonesia serves as both head of state and head of government. The economy is largely based on natural resources and agricultural commodities and is driven by exports, particularly agricultural and mineral products, as well as by foreign direct investment and tourism. The country is a member of the G20, the Organisation for Economic Co-operation and Development (OECD), the World Trade Organisation (WTO) and the Non-Aligned Movement (NAM). In terms of politics, Indonesia is a democratic state in which power is vested in the people and their representatives in the House of Representatives and the Regional Representatives Council, who are elected by popular vote. Additionally, the President is directly elected by the citizens. The government is based on the principles of the rule of law and equality, and the main source of political legitimacy is based on the Constitution of Indonesia.