Generally, a voluntary confession to officers isn't immediately unlawful, but its acceptance in court is a tricky matter. The key factor is whether it was obtained legally. Investigators must adhere to specific rules, https://panchanandshaw.com/blog/court-fee-refund-explained/