.agb-hero {
	min-height: 390px;
	font-family: "Poppins", Arial, sans-serif;
}

.legal-hero.agb-hero h1 {
	font-family: inherit;
}

.agb-hero__eyebrow {
	display: inline-flex;
	margin-bottom: 14px;
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, .36);
	border-radius: 999px;
	background: rgba(24, 20, 16, .28);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.agb-page {
	padding: 28px 0 86px;
	background: #f7f4ef;
	color: #322b23;
	font-family: "Poppins", Arial, sans-serif;
}

.agb-page > .container {
	max-width: 1280px;
}

.agb-meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(130px, 1fr)) auto;
	gap: 12px;
	align-items: stretch;
	margin-bottom: 24px;
	padding: 16px;
	border: 1px solid #e4d9ca;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(67, 50, 32, .06);
}

.agb-meta > div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 4px 12px;
	border-right: 1px solid #eee6dc;
}

.agb-meta span {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #8a7357;
	line-height: 1.25;
}

.agb-meta strong {
	margin-top: 3px;
	font-size: 15px;
	line-height: 1.35;
}

.agb-meta button {
	border: 0;
	border-radius: 12px;
	padding: 12px 16px;
	background: #3a3026;
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}

.agb-meta button i {
	margin-right: 7px;
}

.agb-layout {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	min-width: 0;
}

.agb-toc {
	position: sticky;
	top: 18px;
	max-height: calc(100vh - 36px);
	overflow: auto;
	border: 1px solid #e4d9ca;
	border-radius: 20px;
	background: linear-gradient(180deg, #fff 0%, #fdfaf6 100%);
	box-shadow: 0 16px 38px rgba(67, 50, 32, .08);
	min-width: 0;
}

.agb-toc summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 21px 22px 18px;
	border-bottom: 1px solid #eee5da;
	list-style: none;
	cursor: default;
}

.agb-toc summary::-webkit-details-marker {
	display: none;
}

.agb-toc summary:focus {
	outline: none;
}

.agb-toc summary:focus-visible {
	border-radius: 18px 18px 0 0;
	box-shadow: inset 0 0 0 2px rgba(156, 118, 69, .58);
}

.agb-toc summary > span:first-child {
	display: grid;
	gap: 2px;
}

.agb-toc summary small {
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .15em;
	line-height: 1.3;
	text-transform: uppercase;
	color: #9c7645;
}

.agb-toc summary strong {
	font-family: inherit;
	font-size: 25px;
	line-height: 1.1;
}

.agb-toc__count {
	padding: 6px 9px;
	border: 1px solid #e5d6c3;
	border-radius: 999px;
	background: #f7f0e7;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .04em;
	white-space: nowrap;
	color: #765b3a;
}

.agb-toc__links,
.agb-toc:not([open]) .agb-toc__links {
	display: grid;
	padding: 8px 12px 14px;
}

.agb-toc__links a {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	padding: 9px 8px;
	border-bottom: 1px solid rgba(228, 217, 202, .68);
	border-radius: 9px;
	color: #675744;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none !important;
	transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.agb-toc__links a:focus,
.agb-toc__links a:active,
.agb-toc__links a:visited {
	text-decoration: none !important;
}

.agb-toc__links a:last-child {
	border-bottom: 0;
}

.agb-toc__links a span {
	display: grid;
	width: 28px;
	height: 28px;
	place-items: center;
	border: 1px solid #e5d6c3;
	border-radius: 50%;
	background: #fff;
	font-family: inherit;
	font-size: 10px;
	font-weight: 800;
	color: #9c7645;
}

.agb-toc__links a:hover,
.agb-toc__links a:focus-visible {
	background: #f4ede4;
	color: #31271e;
	transform: translateX(2px);
}

.agb-toc__links a:hover span,
.agb-toc__links a:focus-visible span {
	border-color: #9c7645;
	background: #9c7645;
	color: #fff;
}

.agb-content {
	display: grid;
	gap: 18px;
	min-width: 0;
}

.agb-section {
	position: relative;
	scroll-margin-top: 125px;
	min-width: 0;
	padding: 30px 34px;
	border: 1px solid #e4d9ca;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(67, 50, 32, .05);
}

@media (min-width: 992px) {
	.agb-toc summary {
		pointer-events: none;
	}
}

.agb-section__number {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .14em;
	color: #a17c4d;
}

.agb-section h2 {
	margin: 0 0 22px;
	font-family: inherit;
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.2;
	color: #2f261e;
	overflow-wrap: anywhere;
}

.agb-section p {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.82;
	color: #5b5045;
}

.agb-section p:last-child {
	margin-bottom: 0;
}

.agb-section h3 {
	margin: 26px 0 12px;
	font-family: inherit;
	font-size: 18px;
	line-height: 1.4;
	color: #3f3328;
}

.agb-definitions {
	display: grid;
	grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
	gap: 12px 20px;
	margin: 0;
	font-size: 15px;
	line-height: 1.75;
	color: #5b5045;
}

.agb-definitions dt {
	font-weight: 800;
	color: #3f3328;
}

.agb-definitions dd {
	margin: 0;
}

.agb-letter-list {
	margin: 0 0 18px 22px;
	padding: 0;
	font-size: 15px;
	line-height: 1.75;
	color: #5b5045;
}

.agb-letter-list li {
	margin-bottom: 10px;
	padding-left: 5px;
}

.agb-section a {
	color: #765526;
	font-weight: 700;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.agb-section--notice {
	border-color: #d6bd96;
	background: linear-gradient(135deg, #fffaf2, #fff);
}

.agb-provider,
.agb-final-note {
	display: grid;
	gap: 5px;
	margin: 18px 0;
	padding: 18px;
	border-left: 4px solid #9c7645;
	border-radius: 0 12px 12px 0;
	background: #f7f1e9;
	font-size: 14px;
	line-height: 1.6;
}

.agb-cancellation {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 22px 0;
}

.agb-cancellation > div {
	display: flex;
	min-height: 112px;
	flex-direction: column;
	justify-content: space-between;
	padding: 16px;
	border: 1px solid #e5d7c5;
	border-radius: 13px;
	background: #fbf8f3;
}

.agb-cancellation strong {
	font-size: 13px;
	line-height: 1.4;
}

.agb-cancellation span {
	margin-top: 12px;
	font-family: inherit;
	font-size: 24px;
	font-weight: 800;
	color: #8c6638;
}

@media (max-width: 991px) {
	.agb-meta {
		grid-template-columns: repeat(3, 1fr);
	}

	.agb-meta button {
		grid-column: 1 / -1;
	}

	.agb-layout {
		grid-template-columns: 1fr;
	}

	.agb-toc {
		position: static;
		max-height: none;
	}

	.agb-toc__links,
	.agb-toc:not([open]) .agb-toc__links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 12px;
	}

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

@media (max-width: 600px) {
	.legal-hero.agb-hero h1 {
		font-size: 30px;
		line-height: 1.12;
		word-break: normal;
		overflow-wrap: normal;
		hyphens: none;
	}

	.agb-hero p {
		font-size: 16px;
	}

	.agb-page {
		padding-top: 18px;
	}

	.agb-meta {
		grid-template-columns: 1fr;
	}

	.agb-meta > div {
		border-right: 0;
		border-bottom: 1px solid #eee6dc;
		padding: 8px;
	}

	.agb-meta button {
		grid-column: auto;
	}

	.agb-cancellation {
		grid-template-columns: 1fr;
	}

	.agb-toc summary {
		position: relative;
		padding-right: 52px;
		border-bottom: 0;
		cursor: pointer;
	}

	.agb-toc summary::after {
		position: absolute;
		right: 21px;
		top: 50%;
		width: 9px;
		height: 9px;
		border-right: 2px solid #8c6638;
		border-bottom: 2px solid #8c6638;
		content: "";
		transform: translateY(-70%) rotate(45deg);
		transition: transform .2s ease;
	}

	.agb-toc[open] summary {
		border-bottom: 1px solid #eee5da;
	}

	.agb-toc[open] summary::after {
		transform: translateY(-25%) rotate(225deg);
	}

	.agb-toc__links,
	.agb-toc:not([open]) .agb-toc__links {
		display: none;
		grid-template-columns: 1fr;
	}

	.agb-toc[open] .agb-toc__links {
		display: grid;
	}

	.agb-section {
		scroll-margin-top: 100px;
		padding: 24px 20px;
	}

	.agb-definitions {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.agb-definitions dd {
		margin-bottom: 12px;
	}

	.agb-cancellation > div {
		min-height: 0;
	}
}

@media (max-width: 360px) {
	.legal-hero.agb-hero h1 {
		font-size: 24px;
		letter-spacing: -.02em;
	}
}

@media print {
	header,
	footer,
	.agb-hero,
	.agb-toc,
	.agb-meta button {
		display: none !important;
	}

	.agb-page {
		padding: 0;
		background: #fff;
	}

	.agb-layout,
	.agb-meta {
		display: block;
	}

	.agb-meta {
		box-shadow: none;
	}

	.agb-meta > div {
		display: inline-flex;
		margin-right: 24px;
		border: 0;
	}

	.agb-section {
		break-inside: avoid;
		box-shadow: none;
		padding: 18px 0;
		border: 0;
		border-bottom: 1px solid #ddd;
	}
}
