Given the logarithmic equation \[\log_7 (x^2 - 1) - \log_{49} (x - 1) + \log_{343} (x + 1) = \log_7 2,\] find the value of \(x\). Let's think step by step and output the final answer within \boxed{}.
user