The legendary coach’s deal includes championship bonuses, academic incentives, and a roadmap to rebuild the Tar Heels.