How can CBD oil help with managing pain and inflammation?

How can CBD oil help with managing pain and inflammation?