Quora Top Author, over a decade of startup experience, advises venture capital funds, angel investors, and accelerators. https://harveyesq.com
All good and practical answers, but if you want a different legal perspective, here is a good talk with a memorable title from an agency that has worked with many clients over the years (warning, there is some foul language):
Mike Monteiro is the design director at Mule Design Studio. During a seminar at CreativeMornings, Mike gave a really insightful and thorough speech about how a creative professional can protect his or her work and payment in the event that something goes wrong with the client or job. This video is long but it should at least make you aware of issues you might face on your journey, including:
Have you ever had a client dismiss a project after you have already put in hours of work?
What are you supposed to do when a client brings in a second professional to also work on your project?
What can you do if a client says your work isn't really what they were looking for (and doesn't want to pay you) after you have already delivered the final project?
Mike's conclusions: Hire an experienced lawyer, get your contracts drafted right from the beginning, and use pressure to get what you are entitled to. Don't be a bottom.
Ryan provides an excellent answer. You also need a contracts lawyer licensed in your jurisdiction. I would personally steer clear of mass consumer sites like LegalZoom or Avvo, and focus on more market related referral sites such as Clarity, UpCounsel, or Priori Legal. You will find they have a vetting process that is more rigorous than sites that anyone can be on, for the right amount of ad spend.