Understanding the Legal Aspects of Real Estate Investing: A Comprehensive Guide