The Ethics of AI: How Technology Shapes Democracy