I can’t believe no one mentioned Perry Mason (Earl Stanley Gardner), seem they would fit your description of what you are looking for.
Good idea. I have read some, but perhaps not all of the Perry Mason books. My husband and I, being old fogeys, still watch some of the Perry Mason reruns on MeTV. :-)