Legal considerations for real estate purchase