totality-of-the-circumstances analysis — Legal Definition, Examples & Cases