Why is legal due diligence important in real estate?