Acid-Base Interactions in Polymer Adsorption