Valid time is the entire legal interval in which prayer can be performed, such as Maghrib from sunset until twilight ends.
Preferred time is a recommended portion of that valid interval, such as prompt Maghrib or delaying Dhuhr in extreme summer heat.
The legal time may still remain after the preferred part has passed. These two categories should not be confused.