Real Estate and the Community: Legal Basis, Planning and Engagement