/**
 * PUB-7020 .org footer redesign.
 * Plain-CSS port of nextpub USFooter.module.scss, scoped under .org-footer.
 * Server-rendered (no JS accordion): columns always visible, stack on mobile.
 * Colors inlined: gray4 #d4d6d6, gray6 #9c9ea1, gray7 #6b6b6b,
 * gray8 #333435, pink #d50f67. Desktop breakpoint: min-width 1025px.
 */

.org-footer {
	background: #f4f5f5;
	padding: 40px 0;
	font-family: inherit;
}

.org-footer .orgf-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.org-footer .u-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---- Top area: brand + columns ---- */
.org-footer .orgf-top {
	display: flex;
	flex-direction: column;
	gap: 48px;
	padding: 16px 0 8px;
}

.org-footer .orgf-logo-link {
	display: inline-block;
	max-width: max-content;
}

.org-footer .orgf-logo {
	display: inline-block;
	width: 87px;
	height: auto;
}

.org-footer .orgf-description {
	margin: 16px 0 32px;
	font-size: 14px;
	line-height: 1.6;
	color: #333435;
}

.org-footer .orgf-eyebrow {
	margin: 0 0 16px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #9c9ea1;
}

.org-footer .orgf-get-app {
	display: flex;
	gap: 24px;
}

/* QR is desktop-only; on mobile only the badges show. */
.org-footer .orgf-get-started {
	display: none;
}

.org-footer .orgf-qr-box {
	display: inline-flex;
	padding: 10px;
	border: 1px solid #d4d6d6;
	border-radius: 8px;
}

.org-footer .orgf-qr {
	display: block;
	width: 90px;
	height: 90px;
}

.org-footer .orgf-app-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	gap: 12px;
}

.org-footer .orgf-app-list li {
	margin: 0;
}

.org-footer .orgf-app-link {
	display: inline-block;
}

.org-footer .orgf-app-link img {
	display: block;
	width: 138px;
	height: auto;
}

/* ---- Link columns ---- */
.org-footer .orgf-column {
	border-top: 1px solid #d4d6d6;
	padding: 20px 0;
}

.org-footer .orgf-column-header {
	display: block;
	margin: 0 0 20px;
	font-size: 12px;
	font-weight: 700;
	line-height: 24px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #6b6b6b;
}

.org-footer .orgf-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.org-footer .orgf-list li {
	margin: 0 0 16px;
}

.org-footer .orgf-list li:last-child {
	margin-bottom: 0;
}

.org-footer .orgf-anchor {
	font-size: 14px;
	color: #333435;
	text-decoration: none;
}

.org-footer .orgf-anchor:hover,
.org-footer .orgf-anchor:focus {
	color: #6b6b6b;
	text-decoration: underline;
}

/* ---- Legal bar ---- */
.org-footer .orgf-legal-bar {
	list-style: none;
	margin: 0;
	padding: 24px 0;
	display: flex;
	flex-direction: column;
	border-top: solid 1px #d4d6d6;
}

.org-footer .orgf-legal-bar li {
	margin: 0;
}

.org-footer .orgf-legal-item {
	position: relative;
	padding: 4px 0;
}

.org-footer .orgf-legal-link {
	font-size: 14px;
	font-weight: 400;
	color: #333435;
	text-decoration: none;
}

.org-footer .orgf-legal-link:hover,
.org-footer .orgf-legal-link:focus {
	color: #6b6b6b;
	text-decoration: underline;
}

/* ---- Bottom row ---- */
.org-footer .orgf-bottom {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-top: 24px;
	border-top: solid 1px #d4d6d6;
}

.org-footer .orgf-bottom-left {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.org-footer .orgf-locale {
	display: flex;
	align-items: center;
}

.org-footer .orgf-locale-flag {
	width: 24px;
	height: 24px;
	margin-right: 12px;
	border-radius: 50%;
}

.org-footer .orgf-locale-text {
	font-size: 14px;
	color: #6b6b6b;
}

.org-footer .orgf-locale-change {
	color: #6b6b6b;
	text-decoration: underline;
}

.org-footer .orgf-refer {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 14px;
	color: #333435;
	text-decoration: none;
}

.org-footer .orgf-refer:hover,
.org-footer .orgf-refer:focus {
	color: #6b6b6b;
	text-decoration: none;
}

.org-footer .orgf-gift-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	margin-left: 2px;
}

.org-footer .orgf-gift-icon img {
	width: 24px;
	height: 24px;
}

.org-footer .orgf-connect {
	list-style: none;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
}

.org-footer .orgf-connect li {
	margin: 0;
	display: flex;
	align-items: center;
}

.org-footer .orgf-connect-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
}

.org-footer .orgf-connect-link img {
	display: block;
	width: 20px;
	height: 20px;
}

.org-footer .orgf-copyright {
	font-size: 14px;
	color: #9c9ea1;
}

/* ---- Desktop ---- */
@media (min-width: 1025px) {
	.org-footer .orgf-top {
		flex-direction: row;
		gap: 64px;
		padding: 16px 0 40px;
	}

	.org-footer .orgf-brand {
		flex: 0 0 320px;
		max-width: 320px;
	}

	.org-footer .orgf-get-started {
		display: block;
		padding-right: 24px;
		border-right: 1px solid #d4d6d6;
	}

	.org-footer .orgf-app-list {
		flex-direction: column;
		width: max-content;
	}

	.org-footer .orgf-columns {
		flex: 1;
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 32px;
	}

	.org-footer .orgf-column {
		border-top: none;
		padding: 0;
	}

	.org-footer .orgf-legal-bar {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}

	.org-footer .orgf-legal-item {
		padding: 4px 16px;
	}

	.org-footer .orgf-legal-item:first-child {
		padding-left: 0;
	}

	.org-footer .orgf-legal-item:not(:last-child)::after {
		content: '';
		position: absolute;
		right: 0;
		top: 50%;
		transform: translateY(-50%);
		width: 1px;
		height: 14px;
		background: #d4d6d6;
	}

	.org-footer .orgf-bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 32px;
	}

	.org-footer .orgf-bottom-left {
		flex-direction: row;
		align-items: center;
		gap: 24px;
	}
}
