Generally, a free statement to police isn't inherently illegal, but its acceptance in court is a tricky matter. The essential factor is whether it was obtained legally. Police must adhere to specific procedures, https://panchanandshaw.com/blog/contested-divorce-vs-mutual-divorce/