The COS-legacy survey of C iv absorbers: properties and origins of the intervening systems