Detection of Na in WASP-21b's lower and upper atmosphere