She had gathered these things from time to time when she had gone to the Sunday-school with the children, and had laid them up in her memory more carefully than she had done with those other words and phrases; and she had studied them deeply, for her good and ours. One may see by this that she had a wise and thoughtful head, for all there was so much lightness and vanity in it. (Mark Twain, A Dog's Tale)
Does for here mean despite? and Does lightness here mean 'light-minded'?