/**
 * RockGlobal canonical legal documents.
 *
 * A dedicated legal-reading layer: premium RG hero, restrained light document
 * surface, sticky section navigation and responsive data tables.
 */

.rg-legal-page {
	--rg-legal-ink: #07162f;
	--rg-legal-copy: #30415c;
	--rg-legal-muted: #62708a;
	--rg-legal-line: #dce3ee;
	--rg-legal-surface: #f7f9fc;
	--rg-legal-card: #fff;
	--rg-legal-accent: #7568ee;
	--rg-legal-accent-soft: #eeecff;
	--rg-legal-table-line: #c7d5ed;
	--rg-legal-table-row: #f3f8ff;
	--rg-legal-table-row-alt: #edf0ff;
	--rg-legal-table-first: #eaf7fb;
	--rg-legal-table-first-alt: #e8ecff;
	--rg-theme-accent: #9d83ff;
	background: var(--rg-legal-surface);
	color: var(--rg-legal-ink);
}

.rg-legal-site {
	position: relative;
	min-height: 100vh;
	overflow: clip;
}

.rg-legal-skip {
	position: fixed;
	z-index: 1000;
	top: 12px;
	left: 18px;
	padding: 12px 16px;
	border-radius: var(--rg-radius-sm);
	background: #fff;
	color: var(--rg-legal-ink);
	font-size: 14px;
	font-weight: 700;
	transform: translateY(-160%);
	transition: transform var(--rg-hover-duration) ease;
}

.rg-legal-skip:focus {
	transform: translateY(0);
}

.rg-legal-hero {
	position: relative;
	min-height: 500px;
	padding: 176px var(--rg-page-gutter) 88px;
	overflow: hidden;
	background:
		radial-gradient(circle at 85% 20%, rgba(112, 230, 255, .13), transparent 28%),
		radial-gradient(circle at 65% 90%, rgba(157, 131, 255, .22), transparent 32%),
		linear-gradient(122deg, #020a1d 0%, #071b38 54%, #1b1043 100%);
	color: #fff;
}

.rg-legal-hero::after {
	position: absolute;
	right: -160px;
	bottom: -340px;
	width: 680px;
	height: 680px;
	border: 1px solid rgba(157, 131, 255, .17);
	border-radius: 50%;
	box-shadow:
		0 0 0 80px rgba(112, 230, 255, .025),
		0 0 0 160px rgba(157, 131, 255, .025);
	content: "";
	pointer-events: none;
}

.rg-legal-hero__glow {
	position: absolute;
	top: 92px;
	right: 8%;
	width: 240px;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(112, 230, 255, .78), transparent);
	box-shadow: 0 0 30px rgba(112, 230, 255, .4);
	pointer-events: none;
}

.rg-legal-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 370px;
	align-items: end;
	gap: 80px;
	width: min(1280px, 100%);
	margin-inline: auto;
}

.rg-legal-hero__copy {
	max-width: 760px;
}

.rg-legal-eyebrow {
	margin: 0 0 20px;
	color: var(--rg-theme-accent);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.rg-legal-title {
	max-width: 760px;
	margin: 0;
	font-size: 56px;
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -.035em;
	text-wrap: balance;
}

.rg-legal-hero__summary {
	max-width: 62ch;
	margin: 28px 0 0;
	color: #c7d2e4;
	font-size: 19px;
	line-height: 1.6;
}

.rg-legal-meta {
	margin: 0;
	padding: 4px 0 4px 28px;
	border-left: 1px solid rgba(255, 255, 255, .16);
}

.rg-legal-meta div {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.rg-legal-meta div:last-child {
	border-bottom: 0;
}

.rg-legal-meta dt,
.rg-legal-meta dd {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.rg-legal-meta dt {
	color: #92a4bf;
	font-weight: 600;
	white-space: nowrap;
}

.rg-legal-meta dd {
	color: #fff;
	font-weight: 700;
}

.rg-legal-body {
	position: relative;
	padding: 80px var(--rg-page-gutter) 120px;
	background:
		linear-gradient(90deg, rgba(117, 104, 238, .035) 1px, transparent 1px) 50% 0 / 96px 96px,
		var(--rg-legal-surface);
}

.rg-legal-progress {
	position: absolute;
	z-index: 4;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: #e7ebf2;
}

.rg-legal-progress span {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, #70e6ff, #7568ee 58%, #9d83ff);
	transform: scaleX(0);
	transform-origin: left center;
}

.rg-legal-layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 880px);
	justify-content: center;
	align-items: start;
	gap: 64px;
	width: min(1340px, 100%);
	margin-inline: auto;
}

.rg-legal-toc {
	position: sticky;
	top: 120px;
	min-width: 0;
}

.rg-legal-toc__toggle {
	display: none;
}

.rg-legal-toc__panel {
	max-height: calc(100vh - 152px);
	padding: 24px 10px 24px 0;
	border-top: 1px solid var(--rg-legal-line);
	border-bottom: 1px solid var(--rg-legal-line);
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #bcc5d5 transparent;
}

.rg-legal-toc__panel > p {
	margin: 0 0 18px 16px;
	color: var(--rg-legal-muted);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.rg-legal-toc ol {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rg-legal-toc a {
	position: relative;
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 8px;
	padding: 9px 12px 9px 16px;
	border-radius: var(--rg-radius-sm);
	color: #56657c;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	transition:
		background-color var(--rg-hover-duration) ease,
		color var(--rg-hover-duration) ease,
		transform var(--rg-hover-duration) ease;
}

.rg-legal-toc a::before {
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 0;
	width: 2px;
	border-radius: 2px;
	background: transparent;
	content: "";
}

.rg-legal-toc a span {
	color: #9aa6b8;
	font-variant-numeric: tabular-nums;
}

.rg-legal-toc a:hover,
.rg-legal-toc a:focus-visible {
	background: #eef3f8;
	color: var(--rg-legal-ink);
	transform: translateX(2px);
}

.rg-legal-toc a:focus-visible,
.rg-legal-document a:focus-visible,
.rg-legal-toc__toggle:focus-visible,
.rg-legal-table-wrap:focus-visible {
	outline: 3px solid #7568ee;
	outline-offset: 3px;
}

.rg-legal-toc a.is-current {
	background: var(--rg-legal-accent-soft);
	color: #312b7d;
}

.rg-legal-toc a.is-current::before {
	background: var(--rg-legal-accent);
}

.rg-legal-toc a.is-current span {
	color: #6257d2;
}

.rg-legal-document {
	min-width: 0;
	color: var(--rg-legal-copy);
	font-size: 16px;
	line-height: 1.7;
}

.rg-legal-document__intro {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 18px;
	margin: 0 0 48px;
	padding: 24px 28px;
	border: 1px solid #d9d6ff;
	border-radius: var(--rg-radius-md);
	background: linear-gradient(120deg, #f3f5ff, #fff);
	box-shadow: 0 12px 38px rgba(20, 31, 61, .06);
}

.rg-legal-document__intro > span {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: var(--rg-radius-md);
	background: #151f42;
	color: #70e6ff;
}

.rg-legal-document__intro svg {
	width: 21px;
	height: 21px;
}

.rg-legal-document__intro p {
	align-self: center;
	margin: 0;
}

.rg-legal-document__intro strong {
	color: var(--rg-legal-ink);
}

.rg-legal-introduction > p {
	max-width: 70ch;
	margin: 0 0 20px;
}

.rg-legal-introduction > p:first-child {
	color: var(--rg-legal-ink);
	font-size: 19px;
	line-height: 1.6;
}

.rg-legal-section {
	position: relative;
	padding: 56px 0 0;
	scroll-margin-top: 104px;
}

.rg-legal-section + .rg-legal-section {
	margin-top: 56px;
	border-top: 1px solid var(--rg-legal-line);
}

.rg-legal-section__title {
	max-width: 20ch;
	margin: 0 0 28px;
	color: var(--rg-legal-ink);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -.025em;
	text-wrap: balance;
}

.rg-legal-subheading {
	max-width: 30ch;
	margin: 38px 0 18px;
	color: var(--rg-legal-ink);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.015em;
	text-wrap: balance;
}

.rg-legal-section p {
	max-width: 70ch;
	margin: 0 0 20px;
}

.rg-legal-section ul {
	display: grid;
	gap: 10px;
	max-width: 70ch;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.rg-legal-section li {
	position: relative;
	padding-left: 25px;
}

.rg-legal-section li::before {
	position: absolute;
	top: .7em;
	left: 2px;
	width: 7px;
	height: 7px;
	border: 2px solid #6d61df;
	border-radius: 50%;
	content: "";
}

.rg-legal-section strong {
	color: var(--rg-legal-ink);
	font-weight: 700;
}

.rg-legal-document a {
	color: var(--rg-link-light);
	font-weight: 650;
	text-decoration: underline;
	text-decoration-color: rgba(8, 127, 157, .35);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition:
		color var(--rg-hover-duration) ease,
		text-decoration-color var(--rg-hover-duration) ease;
}

.rg-legal-document a:hover,
.rg-legal-document a:focus-visible {
	color: var(--rg-link-light-hover);
	text-decoration-color: currentColor;
}

#privacy-at-a-glance,
#terms-at-a-glance,
#cookie-choices-at-a-glance,
#risk-disclosure-at-a-glance,
#complaints-handling-at-a-glance {
	margin-top: 48px;
	padding: 36px;
	border: 1px solid #dfe3ed;
	border-radius: var(--rg-radius-lg);
	background: #fff;
	box-shadow: 0 18px 52px rgba(18, 31, 58, .07);
}

#privacy-at-a-glance .rg-legal-section__title,
#terms-at-a-glance .rg-legal-section__title,
#cookie-choices-at-a-glance .rg-legal-section__title,
#risk-disclosure-at-a-glance .rg-legal-section__title,
#complaints-handling-at-a-glance .rg-legal-section__title {
	margin-bottom: 24px;
}

#privacy-at-a-glance li::before,
#terms-at-a-glance li::before,
#cookie-choices-at-a-glance li::before,
#risk-disclosure-at-a-glance li::before,
#complaints-handling-at-a-glance li::before {
	top: .25em;
	width: 18px;
	height: 18px;
	border: 0;
	border-radius: 50%;
	background: var(--rg-legal-accent-soft);
	box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 7px var(--rg-legal-accent);
}

.rg-legal-warning {
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0 0 42px;
	padding: 24px 28px 24px 34px;
	border: 1px solid rgba(112, 230, 255, .3);
	border-left: 4px solid #70e6ff;
	border-radius: var(--rg-radius-md);
	background:
		radial-gradient(circle at 92% 12%, rgba(157, 131, 255, .2), transparent 34%),
		linear-gradient(122deg, #071b38 0%, #111a42 58%, #1b1043 100%);
	color: #dbe7f7;
	font-size: 16px;
	font-weight: 560;
	line-height: 1.65;
	box-shadow: 0 18px 48px rgba(7, 22, 47, .16);
	text-wrap: pretty;
}

.rg-legal-warning strong {
	color: #70e6ff;
	font-weight: 800;
}

.rg-legal-warning + p {
	color: var(--rg-legal-ink);
	font-size: 19px;
	line-height: 1.6;
	text-wrap: pretty;
}

.rg-legal-learning {
	margin: 32px 0 0;
	padding: 24px;
	border: 1px solid #d9d6ff;
	border-radius: var(--rg-radius-lg);
	background: linear-gradient(120deg, #f3f5ff, #fff);
	box-shadow: 0 14px 40px rgba(20, 31, 61, .07);
}

.rg-legal-learning__label {
	margin: 0 0 14px;
	color: #6257d2;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .1em;
	line-height: 1.25;
	text-transform: uppercase;
}

.rg-legal-learning__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.rg-legal-learning__card {
	position: relative;
	display: grid;
	gap: 8px;
	min-height: 148px;
	padding: 22px 58px 22px 22px;
	border: 1px solid #dfe3ed;
	border-radius: var(--rg-radius-md);
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 10px 28px rgba(7, 22, 47, .06);
	text-decoration: none;
	transition:
		border-color var(--rg-hover-duration) ease,
		box-shadow var(--rg-hover-duration) ease,
		background-color var(--rg-hover-duration) ease;
}

.rg-legal-learning__card strong {
	color: var(--rg-legal-ink);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
}

.rg-legal-learning__card > span:not(.rg-legal-learning__arrow) {
	color: var(--rg-legal-copy);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
}

.rg-legal-learning__arrow {
	position: absolute;
	right: 20px;
	bottom: 20px;
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 999px;
	background: #eaf9fc;
	color: #087f9d;
	transition: transform var(--rg-hover-duration) ease;
}

.rg-legal-learning__arrow svg {
	width: 16px;
	height: 16px;
}

.rg-legal-learning__card:hover,
.rg-legal-learning__card:focus-visible {
	border-color: #39cde8;
	background: #f8fdff;
	box-shadow: 0 14px 34px rgba(7, 22, 47, .11);
}

.rg-legal-learning__card:hover .rg-legal-learning__arrow,
.rg-legal-learning__card:focus-visible .rg-legal-learning__arrow {
	transform: translateX(3px);
}

.rg-legal-table-wrap {
	width: 100%;
	margin: 30px 0;
	border: 1px solid var(--rg-legal-table-line);
	border-radius: var(--rg-radius-md);
	background: var(--rg-legal-table-row);
	box-shadow:
		0 14px 38px rgba(7, 22, 47, .09),
		0 0 0 1px rgba(112, 230, 255, .08);
	overflow-x: auto;
}

.rg-legal-table {
	width: 100%;
	min-width: 660px;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.55;
}

.rg-legal-table th,
.rg-legal-table td {
	padding: 18px 22px;
	border-right: 1px solid var(--rg-legal-table-line);
	border-bottom: 1px solid var(--rg-legal-table-line);
	text-align: left;
	vertical-align: top;
}

.rg-legal-table th {
	background: linear-gradient(122deg, #071b38 0%, #111a42 58%, #1b1043 100%);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .015em;
	text-wrap: balance;
	white-space: nowrap;
}

.rg-legal-table th:first-child {
	width: 30%;
	border-radius: 11px 0 0;
}

.rg-legal-table th:last-child {
	border-radius: 0 11px 0 0;
}

.rg-legal-table th:last-child,
.rg-legal-table td:last-child {
	border-right: 0;
}

.rg-legal-table tbody td {
	background: var(--rg-legal-table-row);
}

.rg-legal-table tr:last-child td {
	border-bottom: 0;
}

.rg-legal-table tbody tr:nth-child(even) td {
	background: var(--rg-legal-table-row-alt);
}

.rg-legal-table tbody td:first-child {
	background: var(--rg-legal-table-first);
	color: var(--rg-legal-ink);
	font-weight: 700;
}

.rg-legal-table tbody tr:nth-child(even) td:first-child {
	background: var(--rg-legal-table-first-alt);
}

@media (max-width: 1180px) {
	.rg-legal-hero {
		min-height: 470px;
		padding-top: 160px;
	}

	.rg-legal-hero__inner {
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: 48px;
	}

	.rg-legal-title {
		font-size: clamp(48px, 6vw, 54px);
	}

	.rg-legal-layout {
		grid-template-columns: 235px minmax(0, 800px);
		gap: 40px;
	}
}

@media (max-width: 900px) {
	.rg-legal-hero {
		min-height: 0;
		padding-inline: 24px;
	}

	.rg-legal-hero__inner {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.rg-legal-meta {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		padding: 20px 0 0;
		border-top: 1px solid rgba(255, 255, 255, .16);
		border-left: 0;
	}

	.rg-legal-meta div {
		display: block;
		padding: 0 16px;
		border-right: 1px solid rgba(255, 255, 255, .1);
		border-bottom: 0;
	}

	.rg-legal-meta div:first-child {
		padding-left: 0;
	}

	.rg-legal-meta div:last-child {
		border-right: 0;
	}

	.rg-legal-meta dd {
		margin-top: 4px;
	}

	.rg-legal-body {
		padding: 64px 24px 88px;
	}

	.rg-legal-layout {
		grid-template-columns: minmax(0, 820px);
		gap: 36px;
	}

	.rg-legal-toc {
		position: static;
	}

	.rg-legal-toc.is-enhanced .rg-legal-toc__toggle {
		display: flex;
		width: 100%;
		min-height: 52px;
		align-items: center;
		justify-content: space-between;
		padding: 0 18px;
		border: 1px solid #d7deea;
		border-radius: var(--rg-radius-md);
		background: #fff;
		color: var(--rg-legal-ink);
		font-size: 15px;
		font-weight: 700;
		cursor: pointer;
	}

	.rg-legal-toc__toggle svg {
		width: 18px;
		transition: transform var(--rg-hover-duration) ease;
	}

	.rg-legal-toc.is-open .rg-legal-toc__toggle svg {
		transform: rotate(180deg);
	}

	.rg-legal-toc__panel {
		max-height: none;
		margin-top: 12px;
		padding: 20px;
		border: 1px solid #d7deea;
		border-radius: var(--rg-radius-md);
		background: #fff;
	}

	.rg-legal-toc.is-enhanced .rg-legal-toc__panel {
		display: none;
	}

	.rg-legal-toc.is-enhanced.is-open .rg-legal-toc__panel {
		display: block;
	}

	.rg-legal-toc__panel > p {
		display: none;
	}

	.rg-legal-toc ol {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.rg-legal-hero {
		padding: 136px 18px 56px;
	}

	.rg-legal-hero__glow {
		display: none;
	}

	.rg-legal-title {
		font-size: clamp(40px, 13vw, 48px);
		line-height: 1.02;
	}

	.rg-legal-hero__summary {
		margin-top: 22px;
		font-size: 17px;
	}

	.rg-legal-meta {
		grid-template-columns: 1fr;
		gap: 0;
		padding-top: 14px;
	}

	.rg-legal-meta div,
	.rg-legal-meta div:first-child {
		display: grid;
		grid-template-columns: 94px 1fr;
		padding: 10px 0;
		border-right: 0;
	}

	.rg-legal-meta dd {
		margin: 0;
	}

	.rg-legal-body {
		padding: 48px 18px 64px;
		background: var(--rg-legal-surface);
	}

	.rg-legal-toc ol {
		grid-template-columns: 1fr;
	}

	.rg-legal-document__intro {
		grid-template-columns: 1fr;
		padding: 22px;
	}

	.rg-legal-introduction > p:first-child {
		font-size: 17px;
	}

	.rg-legal-section {
		padding-top: 44px;
		scroll-margin-top: 80px;
	}

	.rg-legal-section + .rg-legal-section {
		margin-top: 44px;
	}

	.rg-legal-section__title {
		font-size: 28px;
	}

	.rg-legal-subheading {
		font-size: 22px;
	}

	#privacy-at-a-glance,
	#terms-at-a-glance,
	#cookie-choices-at-a-glance,
	#risk-disclosure-at-a-glance,
	#complaints-handling-at-a-glance {
		padding: 26px 22px;
	}

	.rg-legal-warning {
		padding: 22px 22px 22px 26px;
	}

	.rg-legal-warning + p {
		font-size: 17px;
	}

	.rg-legal-learning {
		padding: 18px;
	}

	.rg-legal-learning__grid {
		grid-template-columns: 1fr;
	}

	.rg-legal-learning__card {
		min-height: 0;
	}

	.rg-legal-table-wrap {
		margin-inline: -2px;
		width: calc(100% + 4px);
	}

	.rg-legal-table th,
	.rg-legal-table td {
		padding: 15px 18px;
	}
}

@media (max-width: 640px) {
	.rg-legal-table-wrap {
		overflow: visible;
		border: 0;
		background: transparent;
	}

	.rg-legal-table,
	.rg-legal-table tbody,
	.rg-legal-table tr,
	.rg-legal-table td {
		display: block;
		width: 100%;
		min-width: 0;
	}

	.rg-legal-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.rg-legal-table tbody tr {
		margin-bottom: 14px;
		overflow: hidden;
		border: 1px solid var(--rg-legal-table-line);
		border-radius: 16px;
		background: var(--rg-legal-table-row);
	}

	.rg-legal-table tbody td,
	.rg-legal-table tbody td:first-child,
	.rg-legal-table tbody tr:nth-child(even) td,
	.rg-legal-table tbody tr:nth-child(even) td:first-child {
		display: grid;
		grid-template-columns: minmax(88px, .7fr) minmax(0, 1.3fr);
		gap: 14px;
		padding: 14px 16px;
		border-right: 0;
		border-bottom: 1px solid var(--rg-legal-table-line);
		background: transparent;
	}

	.rg-legal-table tbody td::before {
		content: attr(data-rg-label);
		color: var(--rg-legal-accent, #17698b);
		font-size: 11px;
		font-weight: 800;
		letter-spacing: .05em;
		text-transform: uppercase;
	}
}
