The depositary is obliged to keep the thing safely and to return it, when required, to the depositor, or to his heirs and successors, or to the person who may have been designated in the contract. His responsibility, with regard to the safekeeping and the loss of the thing, shall be governed by the provisions of Title I of this Book.
If the deposit is gratuitous, this fact shall be taken into account in determining the degree of care that the depositary must observe. (1766a)