The fact that everybody is equal in front of justice and that justice should be independent, two of the basics tenet of the rule of law, were hated by the Nazis and called 'jewish law', and were targeted. Lawyers and judges were increasingly close to the Nazi party. The same crime by a party member didn't had the same consequence.
I think the Nazis pamphlet said that 'roman law follow the materialistic world order, and should be replaced by German law'. Where materialistic was a dogwhistle for Marxism, and world order for Judaism.
What did help Nazis was that older judges and lawyers were often aristocrats who didn't really love the republic, and new one were petty bourgeoisie where Nazism had a lot of supporters. They helped put a staunch conservative (who later joined the Nazis) at the head of the German supreme court before 1933. The man blocked socdems appointments, and changed how the German law was interpreted (basically pushing intent of the law vs letter of the law, where intent weirdly always aligned with Nazi ideology).
Then, once they had power, the first thing they did after the conservative Hindenburg (may he be remembered as Hitler first collaborator) declared a 'state of emergency was to suspend judiciary oversight over arrest and imprisonment.