Legal insurance (Rechtsschutzversicherung) is an insurance for legal costs.

If you need a lawyer, legal insurance pays for it. If you go to court, your legal insurance pays for all the legal costs, even if you lose.

For more information, read this guide.