How does CBD oil help alleviate pain and inflammation in the body?

How does CBD oil help alleviate pain and inflammation in the body?