whether the transaction is in some way legally? I just know that expensive items are often processed through lawyers.
Not only expensive purchases...
Any ownership must necessarily be certified officially. Maybe in the future smart contracts will replace the role of a lawyer.
You are right, otherwise, if you do not conclude an agreement among themselves, this will already be prosecuted by law and large fines for illegal actions are possible.