Explain the key differences between a democracy and a republic, focusing on the role of elected officials and the protection of individual rights. Your response should contain at least 3 sentences. Highlight at least 2 sections in your answer with markdown, i.e. *highlighted section*.

user