/* Chân trang (thiết kế Figma, rút gọn còn 3 cột) */

.tf {
	background: #f5f3ef;
	font-family: 'Be Vietnam Pro', system-ui, sans-serif;
	color: #5a403e;
}

.tf__inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 40px 24px;
}

.tf__cols {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 24px;
}

.tf p,
.tf ul {
	margin: 0;
	padding: 0;
	letter-spacing: 0;
	text-transform: none;
}

.tf__brand {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 360px;
}

.tf__logo {
	display: inline-flex;
	align-self: flex-start;
}

.tf__logo img {
	display: block;
	width: auto;
	height: 56px;
	margin: 0;
}

.tf__name {
	font-family: 'Merriweather', Georgia, serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 28px;
	color: #1b1c1a;
}

.tf .tf__about {
	font-size: 13px;
	line-height: 20px;
	color: #5a403e;
}

.tf__col {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tf .tf__title {
	font-family: 'Be Vietnam Pro', system-ui, sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
	color: #1b1c1a;
}

.tf .tf-links {
	display: flex;
	flex-direction: column;
	gap: 4px;
	list-style: none;
}

.tf .tf-links li {
	margin: 0;
	padding: 3px 0 1px;
}

.tf .tf-links a {
	font-size: 13px;
	line-height: 20px;
	color: #5a403e;
	text-decoration: none;
	transition: color .15s;
}

.tf .tf-links a:hover,
.tf .tf-links .current-menu-item > a {
	color: #9d0318;
}

/* Khối "Liên kết khác" thu gọn (<details>), nằm bên phải hàng bản quyền */
.tf-more {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	max-width: 60%;
	margin-left: auto;
}

.tf-more summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: .48px;
	color: #545f73;
	list-style: none;
	cursor: pointer;
}

.tf-more summary::-webkit-details-marker {
	display: none;
}

.tf-more summary::after {
	content: '';
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform .2s;
}

.tf-more[open] summary::after {
	transform: translateY(1px) rotate(-135deg);
}

.tf-more summary:hover,
.tf-more summary:focus-visible {
	color: #9d0318;
}

.tf .tf-more__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px 16px;
	margin-top: 10px;
	list-style: none;
}

.tf .tf-more__list li {
	margin: 0;
}

.tf .tf-more__list a {
	font-size: 12px;
	line-height: 18px;
	color: #5a403e;
	text-decoration: none;
}

.tf .tf-more__list a:hover {
	color: #9d0318;
	text-decoration: underline;
}

.tf__bottom {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: 16px;
	border-top: 1px solid rgba(90, 64, 62, .12);
}

.tf__bottom summary,
.tf__bottom > p {
	line-height: 20px;
}

/* Chừa chỗ cho nút "lên đầu trang" cố định góc phải dưới của Flatsome (chỉ hiện ≥850px) */
@media (min-width: 850px) {
	.tf__bottom {
		padding-right: 56px;
	}
}

.tf .tf__bottom p {
	font-size: 13px;
	line-height: 20px;
	color: #5a403e;
}

@media (max-width: 849px) {
	.tf__inner {
		padding: 32px 16px;
	}

	.tf__cols {
		grid-template-columns: 1fr 1fr;
	}

	.tf__brand {
		grid-column: 1 / -1;
		max-width: none;
	}
}

@media (max-width: 549px) {
	/* Hẹp quá: bản quyền và "Liên kết khác" xếp chồng, canh trái */
	.tf__bottom {
		flex-direction: column;
	}

	.tf-more {
		align-items: flex-start;
		max-width: none;
		margin-left: 0;
	}

	.tf .tf-more__list {
		justify-content: flex-start;
	}
}
