Q1: What is expected term of service for a moderator?
Q2: If one were at risk of being completely offline the week of July 21, does this hamper one's election chances?
Moderators are elected to serve until they choose to step down. It's up to them to decide how long to serve. It's completely voluntary and you are encouraged to take breaks and to step down if it ever becomes a burden.
The timeline for the election is as follows:
This means that if you were going to be offline for the week of 7/21 you'd miss the end of the primary phase and most of the election. However, this basically only hampers your ability to participate in any candidate chats that might happen, you won't miss the opportunity to respond to comments on your nomination or answer question on meta (as that will be open the entire election period, maybe even the entire primary period as well, not sure on that).