On the left, you should see a section labeled Visibility Options. You can still contact people when your profile is hidden but they won’t be able to look at your profile so that sort of defeats the purpose (so remember to make yourself visible if you start contacting people).