What are the legal aspects of real estate investment?