Looking for stories where strict rules are exploited to their fullest...

Scott Turow’s Presumed Innocent is a good variation on this theme. It’s a gripping courtroom drama where things unfold as they do pretty much because they have to, but still with some great twists and turns along the way.