If Clinton is convicted before the election, whether or not she is in jail, she can still be President, if that is the will of the citizen electorate.
Not if it is for a violation of the FOIA.
The law specifically prohibits being elected to a federal office.
It was intended to be a political death penalty.