for how long should the liability insurance coverage remain in effect?
As long as the registration of your vehicle remains valid.
Does this apply for motorcycles too?
There are some exceptions for motorcycles.