You can have the nicest yard on the block and still end up in a fight over one small thing. Pet poop laws affect curb strips, shared lawns, sidewalks, parks, and sometimes your own front yard, depending on local rules. That matters now because cities and homeowners associations are getting stricter, and neighbors are quicker to complain. If you walk a dog, rent a house, or manage property, you need to know where the line is before a complaint turns into a fine. The rules are not always dramatic, but they are real. And yes, they can cost you money.
Look, the basic idea is simple. If your pet leaves waste somewhere other people use, you are usually expected to clean it up. That sounds obvious, but local ordinances can get very specific. Some cities also treat waste as a nuisance or sanitation issue, which gives code enforcement more teeth.