Mac

is it ok to buy the refurbished Mac from Apple?  my main concern is the quality and warranty