Mercedes to accept legal responsibility for accidents involving self-driving cars