Let's say I generate a new address and by some miracle it has Bitcoin already in it belonging to somebody else. Is it legal to just take it? I understand those odds are very low, no need to lecture me, I'm just interested.
Yes, stealing is illegal activity, so bitcoins stealing is illegal too, it is quite bad idea to steal them as it is pretty hard if you don't have skills, even if it is hard to prove that you stole