A former senior lawyer at Apple Inc., who handled some of the tech giant's top legal, privacy and security issues, has left the in-house world and returned to private practice.