A separation agreement is a legally binding paper that deals with all perspectives of separation like child support, property division, alimony, etc.
Meanwhile, legal separation is an alternative to divorce. Here you have to deal with all the formalities of a divorce, but you won’t end your marriage completely.