The logic of personal and political liberty