.legal-hub-container {
	padding: 32px 0;
}

.legal-hub-container h1 {
	font-family: "Sharp Grotesk", sans-serif;
	font-size: 56px;
	line-height: 1.2em;
	color: #212121;
	margin-bottom: 32px;
	text-align: center;
}

/* Language Switcher */

.legal-hub-language-switcher {
	width: fit-content;
	margin: 0 auto 32px;
}

.legal-hub-select-wrapper {
	position: relative;
	user-select: none;
	width: 250px;
	display: flex;
	gap: 10px;
	background-color: #fff;
	padding: 16px 8px;
	border-radius: 8px;
	align-items: center;
	font-size: 14px;
	font-family: 'Manrope', sans-serif;
	cursor: pointer;
}

.legal-hub-select-wrapper::before {
	content: '';
	width: 24px;
	height: 24px;
	background-image: url(../images/globe.svg);
	background-size: contain;
	background-repeat: no-repeat;
	flex-shrink: 0;
}

.legal-hub-select-trigger {
	flex: 1;
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-width: 0;
}

.legal-hub-options {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border-top: none;
	z-index: 10;
	display: none;
	max-height: 200px;
	overflow-y: auto;
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	margin-top: 8px;
}

.legal-hub-options.open {
	display: block;
}

.legal-hub-option {
	padding: 10px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.legal-hub-option:hover {
	background-color: #f0f0f0;
}

.legal-hub-option.selected {
	font-weight: bold;
	background-color: #f5f5f5;
}

/* Categories and Documents */

.legal-hub-category-outer {
	background-color: #fff;
	padding: 32px 24px;
	border-radius: 24px;
	margin-bottom: 24px;
	display: flex;
	flex-flow: column;
}

.legal-hub-category {
	font-family: "Sharp Grotesk", sans-serif;
	font-size: 32px;
	line-height: 1.2em;
	color: #212121;
	letter-spacing: -1px;
	margin-bottom: 24px;
}

/* Copy Link Button */

.legal-hub-title-wrapper {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.legal-hub-copy-link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 20px !important;
	height: 20px;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	cursor: pointer !important;
	opacity: 0 !important;
	transition: 0.2s ease !important;
	position: relative;
	flex-shrink: 0;
}

.legal-hub-copy-link img {
	width: 14px;
	height: 14px;
	object-fit: contain;
}

.legal-hub-title-wrapper:hover .legal-hub-copy-link {
	opacity: 1 !important;
}

.legal-hub-copy-link:hover {
	opacity: 1 !important;
}

.legal-hub-copy-tooltip {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	background-color: rgba(33, 33, 33, 0.8);
	backdrop-filter: blur(20px);
	color: #fff;
	font-family: 'Manrope', sans-serif;
	font-size: 12px;
	font-weight: 500;
	padding: 6px 10px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 200ms ease;
	margin-bottom: 6px;
}

.legal-hub-copy-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: rgba(33, 33, 33, 0.8);
}

.legal-hub-copy-link:hover .legal-hub-copy-tooltip,
.legal-hub-copy-link:focus .legal-hub-copy-tooltip {
	opacity: 1;
}

.legal-hub-copy-tooltip.copied {
	opacity: 1;
}

.legal-hub-category-children {
	order: 2;
}

.legal-hub-category-child {
	padding-bottom: 24px;
	border-bottom: 1px solid #D4D5D5;
	margin-bottom: 24px;
}

.legal-hub-category-child:last-child {
	padding-bottom: 0;
	border-bottom: none;
	margin-bottom: 0;
}

.legal-hub-category-child.empty {
	border-bottom: none !important;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
	display: none;
}

.legal-hub-subcategory {
	font-family: "Sharp Grotesk", sans-serif !important;
	font-size: 20px !important;
	font-weight: 400 !important;
	line-height: 1.2em;
	color: #212121;
	padding-bottom: 24px;
	margin: 0;
}

.legal-hub-parent-documents {
	order: 1;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid #D4D5D5;
}

.legal-hub-parent-documents.empty {
	border-bottom: none !important;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
	display: none;
}

.legal-hub-parent-documents.no-border-bottom {
	border-bottom: none !important;
	margin-bottom: 0 !important;
}

.legal-hub-documents,
.legal-hub-parent-documents {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, 1fr);
}

/* Document Link (direct button replacing dropdown) */

.legal-hub-document-link {
	color: #1E1E1E;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.16px;
	text-decoration: none;
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	border: 1px solid #D4D5D5;
	border-radius: 8px;
	gap: 10px;
	background-color: #fff;
	cursor: pointer;
	transition: background-color 0.3s ease;
	box-sizing: border-box;
}

.legal-hub-document-link:hover {
	background-color: #f9f9f9;
}

.legal-hub-document-link img {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
}

/* Document File Dropdown (kept for backward compat) */

.legal-hub-file-dropdown-wrapper {
	position: relative;
	user-select: none;
	width: 100%;
}

.legal-hub-file-trigger {
	color: #1E1E1E !important;
	font-family: 'Manrope', sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 0.16px !important;
	text-decoration: none !important;
	padding: 16px !important;
	display: flex !important;
	align-items: center;
	justify-content: space-between !important;
	width: 100% !important;
	border: 1px solid #D4D5D5 !important;
	border-radius: 8px !important;
	gap: 10px;
	background-color: #fff !important;
	cursor: pointer !important;
	transition: background-color 0.3s ease !important;
}

.legal-hub-file-trigger:hover {
	background-color: #f9f9f9 !important;
}

.legal-hub-document-title {
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1;
	min-width: 0;
	max-width: calc(100vw - 200px);
	line-height: normal;
}

.legal-hub-download-icons {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-shrink: 0;
}

.legal-hub-file-options {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #D4D5D5;
	z-index: 10;
	display: none;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	margin-top: 8px;
}

.legal-hub-file-options.open {
	display: block;
}

.legal-hub-file-option {
	padding: 16px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-decoration: none !important;
	color: #1E1E1E;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 500;
}

.legal-hub-file-option:first-child {
	border-radius: 8px 8px 0 0;
}

.legal-hub-file-option:last-child {
	border-radius: 0 0 8px 8px;
}

.legal-hub-file-option:hover {
	background-color: #f5f5f5;
}

.legal-hub-file-name {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

.legal-hub-file-option img {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	margin-left: 10px;
}

/* Responsive Styles */

@media only screen and (max-width: 1024px) {
	.legal-hub-documents,
	.legal-hub-parent-documents {
		grid-template-columns: repeat(1, 1fr);
	}

	.legal-hub-category {
		font-size: 20px;
	}

	.legal-hub-subcategory {
		font-size: 16px !important;
	}
}

@media only screen and (max-width: 768px) {
	.legal-hub-select-wrapper {
		width: 100%;
	}

	.legal-hub-language-switcher {
		width: auto;
	}

	.legal-hub-copy-link {
		opacity: 1 !important;
	}
}

@media screen and (max-width: 320px) {
	.legal-hub-file-trigger,
	.legal-hub-download-icons {
		gap: 5px;
	}

	.legal-hub-download-icons img {
		max-width: 24px;
	}
}

/* ==========================================================================
	Single Whitepaper Page
	========================================================================== */

.legal-hub-single {
	padding: 120px 0;
}

.legal-hub-single__container {
	max-width: 1087px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Back link */

.legal-hub-single__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #4D6473;
	letter-spacing: 0.14px;
	text-decoration: none;
	margin-bottom: 32px;
	transition: opacity 0.2s ease;
}

.legal-hub-single__back:hover {
	opacity: 0.7;
}

.legal-hub-single__back-arrow {
	font-size: 16px;
	line-height: 1;
}

/* Header (title + FTO button) */

.legal-hub-single__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}

.legal-hub-single__title {
	font-family: "Sharp Grotesk", sans-serif;
	font-size: 32px;
	font-weight: 500;
	text-transform: none;
	line-height: 1.2;
	color: #212121;
	margin: 0;
	flex: 1;
}

.legal-hub-single__fto-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	font-family: "Sharp Grotesk", sans-serif;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.5px;
	color: #1C39C2;
	background-color: #FDFDFD;
	border: none;
	border-radius: 100px;
	padding: 12px 24px;
	text-decoration: none;
	transition: opacity 0.2s ease;
	flex-shrink: 0;
}

.legal-hub-single__fto-btn:hover {
	opacity: 0.8;
}

/* Version cards */

.legal-hub-single__versions {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.legal-hub-single__card {
	background-color: #fff;
	border-radius: 24px;
	padding: 32px 24px;
	display: flex;
	flex-direction: column;
}

.legal-hub-single__card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	text-align: left;
}

.legal-hub-single__card-name {
	font-family: 'Manrope', sans-serif;
	font-size: 28px;
	font-weight: 700;
	color: #212121;
	line-height: normal;
	flex: 1;
	min-width: 0;
}

.legal-hub-single__toggle-icon {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.legal-hub-single__card-header[aria-expanded="true"] .legal-hub-single__toggle-icon {
	transform: rotate(45deg);
}

/* Badge */

.legal-hub-single__badge {
	display: block;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.14px;
	color: #0553F1;
}

.legal-hub-single__badge--previous {
	color: #4D6473;
}

/* Card body (expanded content) */

.legal-hub-single__card-body {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease;
}

.legal-hub-single__card-header[aria-expanded="true"] ~ .legal-hub-single__card-body {
	grid-template-rows: 1fr;
}

.legal-hub-single__card-body-inner {
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.legal-hub-single__card-body-inner > *:first-child {
	margin-top: 24px;
}

.legal-hub-single__card-date {
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.14px;
	color: #4D6473;
	margin: 0;
}

.legal-hub-single__card-changelog {
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.14px;
	line-height: 1.6;
	color: #1E1E1E;
}

.legal-hub-single__card-changelog p {
	margin: 0 0 8px;
}

.legal-hub-single__card-changelog p:last-child {
	margin-bottom: 0;
}

/* Download buttons */

.legal-hub-single__card-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.legal-hub-single__download-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: "Sharp Grotesk", sans-serif;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.5px;
	border-radius: 100px;
	padding: 12px 24px;
	text-decoration: none;
	transition: opacity 0.2s ease;
	white-space: nowrap;
	line-height: 1em;
}

.legal-hub-single__download-btn:hover {
	opacity: 0.85;
}

.legal-hub-single__download-btn--primary {
	background-color: #1C39C2;
	color: #FDFDFD;
	border: 1.5px solid #0553F1;
}

.legal-hub-single__download-btn--secondary {
	background-color: #FDFDFD;
	color: #1C39C2;
	border: 1.5px solid #1C39C2;
}

.legal-hub-single__empty {
	font-family: 'Manrope', sans-serif;
	font-size: 16px;
	color: #6B6B6B;
	text-align: center;
	padding: 48px 0;
}

/* Single page responsive */

@media only screen and (max-width: 1024px) {
	.legal-hub-single__card-name {
		font-size: 22px;
	}
}

@media only screen and (max-width: 768px) {
	.legal-hub-single {
		padding: 32px 0;
	}

	.legal-hub-single__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.legal-hub-single__title {
		font-size: 24px;
	}

	.legal-hub-single__card {
		padding: 24px 16px;
	}

	.legal-hub-single__card-name {
		font-size: 20px;
	}

	.legal-hub-single__card-actions {
		flex-direction: column;
	}

	.legal-hub-single__download-btn {
		width: 100%;
		justify-content: center;
	}
}
