how does the salinity of the ocean decrease
Because salinity (in concert with temperature) affects the density of seawater, it can play a role in its vertical stratification. Essentially, lower salinity water (= lower density) floats on top of higher salinity water (= higher density).