If you haven't read Accelerando by Charles Stross, you should check it out; that's one of the things it explores--laws, terms of use, and companies being carried out as programs. It's a super cool science fiction story that explores a ton of really out-there ideas, all pretty plausibly.
Just looked that one up, it's book 3/3 in a series, first two being Singular Sky and Iron Sunrise. Do they all touch on this topic? And if not, does Accelerando stand alone well enough to be read without the other two?