/* 2D Tộc Shop - Policy pages */

.policy-page-2dtoc {
	--pol-navy: #102a56;
	--pol-blue: #4db8ff;
	--pol-soft: #eaf7ff;
	--pol-gray: #f6f8fb;
	--pol-text: #1f2937;
	--pol-muted: #667085;
	--pol-pink: #ff7bbf;
	--pol-purple: #8b5cf6;
	background: #fff;
	color: var(--pol-text);
	font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	overflow-x: clip;
}

.policy-page-2dtoc * {
	box-sizing: border-box;
}

.pol-container {
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
}

.pol-hero {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 54px 0 46px;
	background:
		radial-gradient(circle at 12% 20%, rgba(77, 184, 255, 0.18) 0 2px, transparent 2px 100%),
		linear-gradient(135deg, #ffffff 0%, #eaf7ff 54%, #f6f0ff 100%);
	background-size: 22px 22px, auto;
}

.pol-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 150px;
	align-items: center;
	gap: 28px;
}

.pol-kicker {
	display: inline-flex;
	margin-bottom: 12px;
	padding: 7px 12px;
	border: 1px solid rgba(77, 184, 255, 0.35);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: var(--pol-navy);
	font-size: 13px;
	font-weight: 700;
}

.pol-hero h1 {
	margin: 0;
	color: var(--pol-navy);
	font-size: clamp(30px, 4vw, 50px);
	line-height: 1.14;
	letter-spacing: 0;
}

.pol-hero p {
	max-width: 760px;
	margin: 14px 0 0;
	color: #475467;
	font-size: 17px;
	line-height: 1.75;
}

.pol-updated {
	display: inline-flex;
	margin-top: 20px;
	color: var(--pol-muted);
	font-size: 14px;
}

.pol-hero__icon {
	width: 132px;
	height: 132px;
	border-radius: 30px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--pol-blue), var(--pol-purple));
	color: #fff;
	box-shadow: 0 20px 50px rgba(16, 42, 86, 0.18);
}

.pol-hero__icon svg {
	width: 66px;
	height: 66px;
}

.pol-layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 36px;
	padding: 44px 0 64px;
}

.pol-toc {
	position: sticky;
	top: 156px;
	align-self: start;
	padding: 18px;
	border: 1px solid #e5edf8;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 12px 36px rgba(16, 42, 86, 0.08);
}

.pol-toc__toggle {
	width: 100%;
	border: 0;
	background: transparent;
	display: none;
	align-items: center;
	justify-content: space-between;
	padding: 0;
	color: var(--pol-navy);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.pol-toc__list {
	display: grid;
	gap: 6px;
}

.pol-toc__list a {
	display: block;
	padding: 10px 12px;
	border-radius: 14px;
	color: #344054;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.45;
	transition: background 0.2s, color 0.2s, transform 0.2s;
}

.pol-toc__list a:hover,
.pol-toc__list a.is-active {
	background: var(--pol-soft);
	color: var(--pol-navy);
	transform: translateX(2px);
}

.pol-main {
	min-width: 0;
}

.pol-box,
.pol-section,
.pol-cta,
.pol-related {
	border: 1px solid #e5edf8;
	border-radius: 26px;
	background: #fff;
	box-shadow: 0 12px 34px rgba(16, 42, 86, 0.06);
}

.pol-summary {
	padding: 24px 26px;
	background: linear-gradient(135deg, #ffffff, #f2fbff);
}

.pol-summary h2,
.pol-section h2,
.pol-related h2,
.pol-cta h2 {
	margin: 0 0 14px;
	color: var(--pol-navy);
	font-size: 24px;
	line-height: 1.25;
}

.pol-summary ul,
.pol-list {
	margin: 0;
	padding-left: 20px;
}

.pol-summary li,
.pol-list li {
	margin: 9px 0;
	line-height: 1.75;
}

.pol-section {
	margin-top: 22px;
	padding: 28px;
	scroll-margin-top: 170px;
}

.pol-section p {
	margin: 0 0 14px;
	color: #3f4b5f;
	font-size: 16px;
	line-height: 1.82;
}

.pol-section h3 {
	margin: 0 0 8px;
	color: var(--pol-navy);
	font-size: 18px;
}

.pol-notice {
	margin: 18px 0;
	padding: 18px 20px;
	border-left: 4px solid var(--pol-pink);
	border-radius: 18px;
	background: #fff6fb;
	color: #344054;
}

.pol-notice strong {
	display: block;
	margin-bottom: 6px;
	color: var(--pol-navy);
}

.pol-table-wrap {
	overflow-x: auto;
	margin: 16px 0;
	border: 1px solid #e5edf8;
	border-radius: 18px;
}

.pol-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 520px;
}

.pol-table th,
.pol-table td {
	padding: 14px 16px;
	border-bottom: 1px solid #eef3fa;
	text-align: left;
	vertical-align: top;
	line-height: 1.6;
}

.pol-table tr:last-child th,
.pol-table tr:last-child td {
	border-bottom: 0;
}

.pol-table th {
	width: 30%;
	background: #f8fbff;
	color: var(--pol-navy);
	font-weight: 800;
}

.pol-card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 18px 0;
}

.pol-mini-card {
	padding: 18px;
	border: 1px solid #e5edf8;
	border-radius: 22px;
	background: #fbfdff;
}

.pol-mini-card p {
	margin-bottom: 12px;
}

.pol-text-link {
	color: var(--pol-blue);
	font-weight: 800;
	text-decoration: none;
}

.pol-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-top: 16px;
}

.pol-step {
	padding: 18px;
	border-radius: 22px;
	background: var(--pol-gray);
}

.pol-step span {
	display: inline-flex;
	margin-bottom: 12px;
	color: var(--pol-blue);
	font-size: 24px;
	font-weight: 800;
}

.pol-support-form {
	display: grid;
	gap: 14px;
	padding: 20px;
	border-radius: 22px;
	background: var(--pol-gray);
}

.pol-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.pol-support-form label {
	display: grid;
	gap: 7px;
	color: var(--pol-navy);
	font-size: 14px;
	font-weight: 700;
}

.pol-support-form input,
.pol-support-form textarea {
	width: 100%;
	border: 1px solid #d8e4f2;
	border-radius: 14px;
	padding: 12px 14px;
	background: #fff;
	color: var(--pol-text);
	font: inherit;
}

.pol-support-form button,
.pol-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	padding: 13px 20px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.pol-support-form button,
.pol-btn--primary {
	background: linear-gradient(135deg, var(--pol-blue), var(--pol-purple));
	color: #fff;
	box-shadow: 0 12px 28px rgba(77, 184, 255, 0.24);
}

.pol-btn--ghost {
	background: #fff;
	color: var(--pol-navy);
	border: 1px solid rgba(77, 184, 255, 0.5);
}

.pol-btn:hover,
.pol-support-form button:hover {
	transform: translateY(-2px);
}

.pol-btn:focus-visible,
.pol-support-form input:focus-visible,
.pol-support-form textarea:focus-visible,
.pol-support-form button:focus-visible,
.pol-toc a:focus-visible,
.pol-toc__toggle:focus-visible {
	outline: 3px solid rgba(77, 184, 255, 0.42);
	outline-offset: 3px;
}

.pol-form-note {
	margin: 0;
	color: var(--pol-muted);
	font-size: 14px;
}

.pol-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 28px;
	padding: 28px;
	background: linear-gradient(135deg, var(--pol-navy), #163b7a 55%, var(--pol-purple));
	color: #fff;
}

.pol-cta h2,
.pol-cta p {
	color: #fff;
}

.pol-cta p {
	margin: 0;
	opacity: 0.9;
	line-height: 1.7;
}

.pol-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	flex-shrink: 0;
}

.pol-related {
	margin-top: 24px;
	padding: 24px;
}

.pol-related__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.pol-related a {
	display: block;
	padding: 13px 14px;
	border-radius: 16px;
	background: var(--pol-gray);
	color: var(--pol-navy);
	text-decoration: none;
	font-weight: 700;
}

.pol-related a:hover,
.pol-related a.is-current {
	background: var(--pol-soft);
	color: #0f65b4;
}

@media (max-width: 980px) {
	.pol-layout {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.pol-toc {
		position: static;
	}

	.pol-toc__toggle {
		display: flex;
	}

	.pol-toc__list {
		display: none;
		margin-top: 14px;
	}

	.pol-toc.is-open .pol-toc__list {
		display: grid;
	}

	.pol-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.pol-hero {
		padding: 36px 0;
	}

	.pol-hero__inner {
		grid-template-columns: 1fr;
	}

	.pol-hero__icon {
		width: 96px;
		height: 96px;
		border-radius: 24px;
	}

	.pol-section,
	.pol-summary,
	.pol-related,
	.pol-cta {
		padding: 20px;
		border-radius: 22px;
	}

	.pol-card-grid,
	.pol-form-grid,
	.pol-related__grid,
	.pol-steps {
		grid-template-columns: 1fr;
	}

	.pol-cta {
		align-items: stretch;
		flex-direction: column;
	}

	.pol-cta__actions,
	.pol-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.policy-page-2dtoc *,
	.policy-page-2dtoc *::before,
	.policy-page-2dtoc *::after {
		animation-duration: 0.001ms !important;
		scroll-behavior: auto !important;
		transition-duration: 0.001ms !important;
	}
}
