There are ways to lay out rules and world build without info dumping. Info dumping is just the least talented way to do it. It can be incorporated into the story in ways that make sense and are interesting.
The court scene is mimicking Ace Attorney (which is confined by the author), which takes place in a Japanese court. But there’s more to it than just legal rules. There are many logical inconsistencies. It’s still an overall good story. I look forward to the changes that will come.