The legal system upholds justice by establishing laws, ensuring fair trials, and protecting rights. Courts, judges, and law enforcement work together to resolve disputes and enforce laws. However, limitations such as systemic bias, unequal access to legal representation, and lengthy judicial processes can undermine justice. Reforms like legal aid programs, digitalization of courts, and stricter anti-corruption measures aim to address these issues and ensure fairness.