You should watch The Boys. It’s a superhero show that addresses this exact issue. It’s nothing like the Marvel universe, the superheroes are pretty sinister in this universe.
Captain America respects the law, it’s kind of his thing. Not saying he’s never broken a law, but it’s not his first choice. Unless it’s the laws of physics, but that’s a convention of the genre which he’s upholding.