A law firm has found TikTok—the app known for short videos of people dancing, singing, playing with pets and doing almost anything else—to be a remarkably effective marketing tool.