Actually, we have a legal system in which two counsel fights from opposite side. The counsel who is cleverer and more intelligent, will win the case. It means we don't have a system which we have designed to find the truth. In reality we have made a system where the quality of the counsel is the most important things. It depends on the ability of the counsel that he/she can make a criminal free and in other conditions he/she can bring death sentence to an innocent person as well.
So, this is the system where money matters the most. Justice has no place in such a system. I am not saying this about a particular country but, this is the common phenomenon all over the world.