doctrine of foreseeability — Legal Definition, Examples & Cases