The nucleoid as a smart polymer