Question: is as such grammatically correct?
Answer: I'm glad you asked. Literature and speech abound with dangling usage of this phrase. “As such” is not a substitute for “therefore.” Rather, “such” must refer to an antecedent noun or noun phrase in order for “as such” to make grammatical sense (and yes, it's a matter of grammar).