Binding-induced folding of a natively unstructured transcription factor