.dse-footer {
	padding-top: 80px;
	background: var(--dse-surface-dark);
	color: var(--dse-ink);
	font-family: var(--dse-font-sans);
}

.dse-footer__top {
	display: grid;
	grid-template-columns: minmax(0, clamp(280px, 28vw, 340px)) minmax(0, 1fr);
	gap: var(--dse-space-7) clamp(var(--dse-space-6), 4vw, 56px);
	padding-bottom: var(--dse-space-8);
}

.dse-footer img {
	display: block;
	max-width: 100%;
	height: auto;
}

.dse-footer__brand {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	overflow: hidden;
	padding: var(--dse-space-6);
	border: 1px solid var(--dse-line);
	border-radius: var(--dse-radius-lg);
	background: color-mix(in srgb, var(--dse-brand-dark), #fff 5%);
}

.dse-footer__orb {
	position: absolute;
	top: -70px;
	right: -70px;
	width: 160px;
	height: 160px;
	border-radius: var(--dse-radius-full);
	background: var(--dse-brand-main);
}

.dse-footer__brand > :not(.dse-footer__orb) {
	position: relative;
}

.dse-footer__logo {
	display: block;
	max-width: calc(100% - 72px);
	border-radius: var(--dse-radius-sm);
}

.dse-footer__logo img {
	width: 200px;
}

:root .dse-footer__about {
	max-width: 30ch;
	margin: 0;
	color: var(--dse-ink-muted);
	font-size: 16px;
	line-height: 26px;
}

.dse-footer__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--dse-space-4);
	margin: auto 0 0;
	padding: var(--dse-space-1) 0 0;
	list-style: none;
}

.dse-footer__badges > li > img,
.dse-footer__badges a img {
	width: auto;
	height: 48px;
}

.dse-footer__badges a {
	display: block;
	border-radius: var(--dse-radius-sm);
}

.dse-footer__cards {
	display: flex;
	gap: 6px;
}

.dse-footer__cards > span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 28px;
	border-radius: var(--dse-radius-sm);
	background: var(--dse-surface);
}

:root .dse-footer__secure {
	margin: 0;
	color: var(--dse-ink-muted);
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
}

.dse-footer__nav {
	display: grid;
	grid-template-columns: repeat(4, auto);
	justify-content: space-between;
	gap: var(--dse-space-6) var(--dse-space-5);
	align-content: start;
}

:root .dse-footer__title {
	margin: 0 0 var(--dse-space-3);
	color: var(--dse-primary);
	font-family: inherit;
	font-size: 13px;
	line-height: 20px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.dse-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

:root .dse-footer__links a {
	display: inline-block;
	padding-block: 6px;
	color: var(--dse-ink-muted);
	font-size: 16px;
	line-height: 24px;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 4px;
	transition: color 0.15s, text-decoration-color 0.15s;
}

:root .dse-footer__links a:hover {
	color: var(--dse-ink);
	text-decoration-color: var(--dse-primary);
}

:root .dse-footer__links a[aria-current="page"] {
	color: var(--dse-ink);
	font-weight: 700;
}

.dse-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--dse-space-3) var(--dse-space-6);
	padding-block: var(--dse-space-5) var(--dse-space-6);
	border-top: 1px solid var(--dse-line);
}

:root .dse-footer__note {
	margin: 0;
	color: var(--dse-ink-muted);
	font-size: 14px;
	line-height: 22px;
	font-weight: 500;
}

.dse-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: var(--dse-space-1) var(--dse-space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

:root .dse-footer__legal a {
	display: inline-block;
	padding-block: var(--dse-space-1);
	color: var(--dse-ink-muted);
	font-size: 14px;
	line-height: 22px;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 4px;
}

:root .dse-footer__legal a:hover {
	color: var(--dse-ink);
	text-decoration-color: var(--dse-primary);
}

@media (max-width: 1025px) {
	.dse-footer {
		padding-top: var(--dse-space-8);
	}

	.dse-footer__top {
		grid-template-columns: minmax(0, 1fr);
	}

	.dse-footer__brand {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: start;
		gap: var(--dse-space-3) var(--dse-space-6);
	}

	.dse-footer__logo {
		grid-area: 1 / 1;
		margin-bottom: var(--dse-space-2);
	}

	.dse-footer__about {
		grid-area: 2 / 1 / 4 / 2;
	}

	.dse-footer__badges {
		grid-area: 2 / 2;
		justify-content: flex-end;
		margin: 0;
		padding: 0;
	}

	.dse-footer__secure {
		grid-area: 3 / 2;
		text-align: right;
	}

	:root .dse-footer__about {
		max-width: 44ch;
	}
}

@media (max-width: 768px) {
	.dse-footer__brand {
		display: flex;
		padding: var(--dse-space-5);
	}

	.dse-footer__orb {
		top: -90px;
		right: -90px;
	}

	.dse-footer__logo {
		margin-bottom: 0;
	}

	.dse-footer__badges {
		justify-content: flex-start;
	}

	:root .dse-footer__secure {
		margin-top: calc(var(--dse-space-2) * -1);
		text-align: left;
	}

	.dse-footer__nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--dse-space-6) var(--dse-space-4);
	}

	.dse-footer__bottom {
		flex-direction: column-reverse;
		align-items: flex-start;
	}
}

.dse-footer-bar {
	display: none;
}

@media (max-width: 768px) {
	.dse-footer-bar {
		position: sticky;
		bottom: 0;
		z-index: 90;
		display: block;
	}

	:root .dse-footer-bar a {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: var(--dse-space-2);
		min-height: 56px;
		padding: 0 var(--dse-gutter) env(safe-area-inset-bottom);
		background: var(--dse-brand-main);
		color: var(--dse-on-primary);
		font-size: 17px;
		line-height: 24px;
		font-weight: 700;
		text-decoration: none;
	}

	:root .dse-footer-bar a:hover {
		background: var(--dse-primary-hover);
		color: var(--dse-on-primary);
	}

	.dse-footer-bar .dse-icon {
		width: 20px;
		height: 20px;
		stroke-width: 2.5;
	}
}

@media (prefers-reduced-motion: reduce) {
	:root .dse-footer__links a {
		transition: none;
	}
}

.dse-help {
	position: fixed;
	right: var(--dse-space-5);
	bottom: var(--dse-space-5);
	z-index: 80;
}

.dse-help__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: var(--dse-radius-full);
	background: var(--dse-primary);
	box-shadow: var(--dse-shadow-md);
	color: var(--dse-on-primary);
	list-style: none;
	cursor: pointer;
	transition: background-color 0.2s;
}

.dse-help__button::-webkit-details-marker {
	display: none;
}

.dse-help__button:hover,
.dse-help[open] .dse-help__button {
	background: var(--dse-primary-hover);
}

.dse-help__button svg {
	width: 26px;
	height: 26px;
}

.dse-help__card {
	position: absolute;
	right: 0;
	bottom: calc(100% + var(--dse-space-3));
	display: flex;
	flex-direction: column;
	gap: var(--dse-space-3);
	width: 260px;
	padding: var(--dse-space-5);
	border-radius: var(--dse-radius-lg);
	background: var(--dse-surface);
	box-shadow: var(--dse-shadow-md);
}

.dse-help__title {
	margin: 0;
	color: var(--dse-ink);
	font-size: 18px;
	line-height: 26px;
	font-weight: 800;
}

:root .dse-help__link {
	padding: var(--dse-space-2) 0;
	border-bottom: 2px solid var(--dse-line);
	color: var(--dse-ink);
	font-weight: 600;
	text-decoration: none;
}

:root .dse-help__link:hover {
	color: var(--dse-primary);
}

.dse-help__send {
	justify-content: center;
}

@media (max-width: 768px) {
	.dse-help {
		right: var(--dse-space-4);
		bottom: calc(56px + var(--dse-space-4));
	}
}
