/* 頁尾。數值量自 Thrive 共用區塊 #45（Default Footer for Shapeshift Theme）。 */

.ic-footer {
	position: relative;
	background-color: var(--ic-cream);
	font-family: var(--ic-font-body);
	font-size: 18px;
	font-weight: 400;
	line-height: 27px;
	color: var(--ic-text);
}

/*
 * 下面幾個 position / z-index / transform 不影響版面，但會影響瀏覽器的繪製方式（圖層與像素對齊）。
 * 與 Thrive 保持一致，頁尾在任何位置都能逐像素相同。
 */
.ic-footer__inner {
	position: relative;
	z-index: 1;
	max-width: var(--ic-content-width);
	margin: 0 auto;
	padding: 20px;
}

.ic-footer__cols {
	border-top: 1px solid var(--ic-rule);
}

.ic-footer__row {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	margin-left: -15px;
	padding: 30px 0;
}

/* 欄寬依內容自動分配（與 Thrive 相同的 flex 規則），前兩欄最寬 25% */
.ic-footer__col {
	flex: 1 1 auto;
	min-width: 0;
	padding-left: 15px;
}

.ic-footer__col-in {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.ic-footer__col--line,
.ic-footer__col--links1 {
	max-width: 25%;
}

.ic-footer__text p {
	padding-bottom: 24px;
	font-size: 16px;
	line-height: 28px;
}

.ic-footer__text a {
	color: var(--ic-gold-main);
}

/* 第一欄：Line 客服 + QR code，置中 */
.ic-footer__text--line {
	align-self: center;
	padding: 30px 1px 1px;
}

.ic-footer__text--line p {
	padding-bottom: 5px;
}

.ic-footer__qr {
	align-self: center;
	margin: 20px 0;
	line-height: 0;
}

.ic-footer__qr img {
	display: block;
	width: 75px;
	height: 75px;
}

/* 第二、三欄：連結清單 */
.ic-footer__text--links1 {
	padding: 1px 1px 1px 20px;
}

.ic-footer__text--links2 {
	padding: 1px;
}

/* 第四欄：Logo + 聯絡方式 */
.ic-footer__logo {
	display: block;
	align-self: flex-start;
	min-width: 0;
	max-width: 100%;
	margin-bottom: 15px;
}

.ic-footer__logo img {
	display: block;
	width: 130px;
	max-width: 100%;
	height: auto;
}

.ic-footer__contact {
	padding: 5px 1px;
}

.ic-footer__contact-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ic-footer__contact li {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	padding-bottom: 5px;
	font-size: 16px;
	line-height: 22.4px;
}

.ic-footer__contact-icon {
	position: relative;
	z-index: 1;
	display: block;
}

.ic-footer__contact-icon-in {
	display: table;
	padding: 10px;
	line-height: 0;
	text-align: center;
}

.ic-footer__contact-icon .ic-icon {
	width: 1em;
	height: 1em;
	transform: matrix(1, 0, 0, 1, 0, 0);
}

.ic-footer__contact-text {
	display: block;
	line-height: 2.3em;
}

.ic-footer__contact-text a {
	color: var(--ic-gold);
}

/* 版權列 */
.ic-footer__copyright {
	padding: 5px 15px;
	background-color: var(--ic-copyright-bg);
}

.ic-footer__copyright p {
	font-size: 13px;
	line-height: 1.75;
	text-align: center;
}

/* 平板 */
@media (max-width: 1023px) {
	.ic-footer__inner {
		padding: 20px 40px;
	}

	.ic-footer__text p {
		padding-bottom: 22px;
		font-size: 14px;
		line-height: 21px;
	}

	.ic-footer__text--line p {
		padding-bottom: 5px;
	}

	.ic-footer__contact li {
		font-size: 14px;
		line-height: 21px;
	}

	.ic-footer__copyright p {
		line-height: 1.5;
	}
}

/* 手機：四欄改成上下排列 */
@media (max-width: 767px) {
	.ic-footer__inner {
		padding: 20px;
	}

	.ic-footer__row {
		flex-wrap: wrap;
	}

	.ic-footer__col,
	.ic-footer__col--line,
	.ic-footer__col--links1 {
		flex: 1 1 390px;
		max-width: 100%;
	}

	.ic-footer__text p {
		padding-bottom: 20px;
	}

	.ic-footer__text--line p {
		padding-bottom: 5px;
	}

	/* 手機上每一欄都置中（連結清單、Logo、聯絡方式）。 */
	.ic-footer__text,
	.ic-footer__contact {
		text-align: center;
	}

	.ic-footer__text--links1 {
		padding: 1px;
	}

	/* 連結清單上方原本用來對齊電腦版的空白段落，手機上拿掉 */
	.ic-footer__text--links1 > p:first-child,
	.ic-footer__text--links2 > p:first-child {
		display: none;
	}

	.ic-footer__logo {
		align-self: center;
		margin-bottom: 20px;
	}

	.ic-footer__logo img {
		width: 140px;
	}

	.ic-footer__contact li {
		justify-content: center;
	}

	.ic-footer__copyright {
		padding: 10px 15px;
	}
}
