An asymptotic about Integral of Legendre Polynomials I want to show asymptotics of the following integral involving  Legendre Polynomial:
For $0<t<\theta<\frac\pi2$,
$$\Big|\int_0^\theta \frac{1}{\sqrt{\theta}+\sqrt{\theta-t}}  \frac{1-P_n(\cos t)}{t}dt \Big| \leq C \theta^{-\frac12} \cdot \log (n\theta),$$ where $C$ is the constant,  $P_n(x)$ is a Legendre Polynomial, $n$ is a positive integer.
I am trying to use Bernstein's inequality for trigonometric polynomials:
Since $P_n(1)=1$ and $|P_n(\cos t)|\leq 1$, $$|P_n(\cos t)-1|=|P_n(\cos t)-P_n(\cos 0)|\leq nt||P_n ||_{\infty}\leq nt.$$
Then I can only get the below estimate but I have no further idea $$\Big|\int_0^\theta \frac{1}{\sqrt{\theta}+\sqrt{\theta-t}}  \frac{1-P_n(\cos t)}{t}dt \Big| \leq  \int_0^\theta \frac{1}{\sqrt{\theta}+\sqrt{\theta-t}}  \frac{|1-P_n(\cos t)|}{t}dt \leq  \int_0^\theta \frac{1}{\sqrt{\theta}+\sqrt{\theta-t}}  \frac{nt}{t}dt=O(n).$$
Any suggestions are welcome! Thank you for your help!

First, suppose that $\frac{1}{n} <\theta <\frac{\pi}{2}$. We split the range of integration into two parts: $0<t<\frac{1}{n}$ and $\frac{1}{n}<t<\theta$, respectively. On the first interval, we use the known limiting relation between the Legendre polynomials and the Bessel function of the first kind $J_0$:
\begin{align*}
&\int_0^{1/n} {\frac{1}{{\sqrt \theta   + \sqrt {\theta  - t} }}\frac{{1 - P_n (\cos t)}}{t}dt}  = \int_0^1 {\frac{1}{{\sqrt \theta   + \sqrt {\theta  - s/n} }}\frac{{1 - P_n \left( {\cos \left( {\frac{s}{n}} \right)} \right)}}{s}ds} \\ & \sim \int_0^1 {\frac{1}{{\sqrt \theta   + \sqrt {\theta  - s/n} }}\frac{{1 - J_0 (s)}}{s}ds}  \le K\int_0^1 {\frac{1}{{\sqrt \theta   + \sqrt {\theta  - s/n} }} s ds}  \le \frac{K}{2}\theta ^{ - 1/2} 
\end{align*}
with a suitable positive constant $K$ and large $n$. On the remaining interval, we have
\begin{align*}
\left| {\int_{1/n}^\theta  {\frac{1}{{\sqrt \theta   + \sqrt {\theta  - t} }}\frac{{1 - P_n (\cos t)}}{t}dt} } \right| & \le \theta ^{ - 1/2} \int_{1/n}^\theta  {\left| {\frac{{1 - P_n (\cos t)}}{t}} \right|dt} \\ & \le 2\theta ^{ - 1/2} \int_{1/n}^\theta  \frac{{dt}}{t} = 2\theta ^{ - 1/2} \log (n\theta ) .
\end{align*}
Thus, there is a constant $C >0$ such that
$$
\left| {\int_0^\theta  {\frac{1}{{\sqrt \theta   + \sqrt {\theta  - t} }}\frac{{1 - P_n (\cos t)}}{t}dt} } \right| \le C \theta ^{ - 1/2} \max(1,\log (n\theta )).
$$
If  $0 <\theta <\frac{1}{n}$, then
\begin{align*}
& \int_0^\theta  {\frac{1}{{\sqrt \theta   + \sqrt {\theta  - t} }}} \frac{{1 - P_n (\cos t)}}{t}dt \le \theta ^{ - 1/2} \int_0^\theta  {\frac{{1 - P_n (\cos t)}}{t}dt}  \\ & \le \theta ^{ - 1/2} \int_0^{1/n} {\frac{{1 - P_n (\cos t)}}{t}dt}   \sim \theta ^{ - 1/2} \int_0^1 {\frac{{1 - J_0 (s)}}{s}ds} \\ & \le K\theta ^{ - 1/2} \int_0^1 {sds}  = \frac{K}{2}\theta ^{ - 1/2} .
\end{align*}
In summary, there is a constant $C >0$ such that
$$
\left| {\int_0^\theta  {\frac{1}{{\sqrt \theta   + \sqrt {\theta  - t} }}\frac{{1 - P_n (\cos t)}}{t}dt} } \right| \le C \theta ^{ - 1/2} \max(1,\log (n\theta )).
$$
