Embedded legal counsel