What is legal due diligence in a real estate transaction