/*
 * CALLY - trang chính sách (frontend.home.partials.policy: điều khoản sử dụng, chính sách bảo mật)
 * Dùng biến màu/font trong site.css. Đơn vị px vì bootstrap 3 đặt html { font-size: 10px }.
 */

body{
	background: var(--cl-bg);
}
html{
	scroll-behavior: smooth;
}
@media(prefers-reduced-motion: reduce){
	html{
		scroll-behavior: auto;
	}
}
.pl-page{
	padding: 40px 0 72px;
	font-family: var(--cl-font);
	color: var(--cl-white);
	background: var(--cl-bg);
}
.pl-page *,
.pl-page *::before,
.pl-page *::after{
	box-sizing: border-box;
}
.pl-page h1,
.pl-page h2,
.pl-page p,
.pl-page ul,
.pl-page ol{
	margin: 0;
	padding: 0;
	font-family: var(--cl-font);
}
.pl-page ul,
.pl-page ol{
	list-style: none;
}
/* text.css đặt li { margin-left: 30px } */
.pl-page li{
	margin: 0;
}
.pl-page a{
	text-decoration: none;
}
.pl-page a:focus-visible{
	outline: 2px solid var(--cl-red);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ===== tiêu đề ===== */
.pl-head h1{
	font-weight: 700;
	font-size: 32px;
	line-height: 1.3;
	color: var(--cl-white);
}
.pl-head .pl-updated{
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--cl-text-dim);
}

/* ===== bố cục: mobile xếp dọc, desktop 2 cột ===== */
.pl-layout{
	display: flex;
	flex-direction: column;
	gap: 32px;
	margin-top: 32px;
}

/* ===== cột trái: danh sách chính sách + mục lục ===== */
.pl-docs li + li{
	margin-top: 4px;
}
.pl-docs a{
	display: flex;
	align-items: center;
	min-height: 44px;
	/* chữ thẳng mép tiêu đề, vạch đỏ nằm lùi ra ngoài như thiết kế */
	margin-left: -14px;
	padding: 0 0 0 11px;
	border-left: 3px solid transparent;
	font-size: 14px;
	line-height: 1.45;
	color: var(--cl-text-dim);
	transition: color .15s ease, border-color .15s ease;
}
.pl-docs a:hover,
.pl-docs a:focus{
	color: var(--cl-white);
}
.pl-docs a.is-active{
	border-left-color: var(--cl-red);
	font-weight: 600;
	color: var(--cl-white);
}
.pl-toc{
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--cl-border);
}
.pl-toc .pl-toc-title{
	font-weight: 600;
	font-size: 11px;
	line-height: 1.5;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--cl-text-dim);
}
.pl-toc ol{
	margin-top: 8px;
}
.pl-toc a{
	display: block;
	padding: 6px 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--cl-text-muted);
	transition: color .15s ease;
}
.pl-toc a:hover,
.pl-toc a:focus{
	color: var(--cl-white);
}

/* ===== nội dung ===== */
.pl-content{
	min-width: 0;
}
.pl-content .pl-intro{
	margin-bottom: 16px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--cl-text-muted);
}
.pl-section{
	/* khi bấm mục lục, chừa khoảng trống phía trên tiêu đề */
	scroll-margin-top: 24px;
}
.pl-content .pl-intro + .pl-section,
.pl-section + .pl-section{
	margin-top: 36px;
}
.pl-section h2{
	font-weight: 700;
	font-size: 20px;
	line-height: 1.4;
	color: var(--cl-white);
}
.pl-section p{
	margin-top: 10px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--cl-text-muted);
}
.pl-content a{
	color: var(--cl-red);
}
.pl-content a:hover,
.pl-content a:focus{
	color: var(--cl-red-hover);
	text-decoration: underline;
}

@media(prefers-reduced-motion: reduce){
	.pl-docs a,
	.pl-toc a{
		transition: none;
	}
}

@media(min-width: 768px){
	.pl-page{
		padding: 64px 0 120px;
	}
	.pl-head h1{
		font-size: 44px;
	}
	.pl-head .pl-updated{
		font-size: 14px;
	}
	.pl-layout{
		flex-direction: row;
		align-items: flex-start;
		gap: 48px;
		margin-top: 56px;
	}
	/* mục lục luôn trong tầm nhìn khi cuộn nội dung dài */
	.pl-aside{
		position: sticky;
		top: 24px;
		flex: 0 0 220px;
	}
	.pl-content{
		flex: 1 1 auto;
	}
	.pl-section h2{
		font-size: 24px;
	}
	.pl-section p,
	.pl-content .pl-intro{
		font-size: 16px;
	}
}

@media(min-width: 1200px){
	.pl-layout{
		gap: 88px;
	}
	.pl-aside{
		flex-basis: 240px;
	}
}
