The szlachta ([ˈʂlaxta] ( listen), exonym: Nobility) was a legally privileged noble class with origins in the Kingdom of Poland. Under whos' reign did the szlachta gain institutional privileges?