/* ============================================
	 Legal Pages — Privacy Policy & Support
	 Reuses BioTime corporate palette from accreditation page
	 ============================================ */

:root {
	--c-primary: #2A4A7F;
	--c-primary-dark: #1B3A5C;
	--c-primary-light: #EDF1F7;
	--c-accent: #F57C00;
	--c-dark: #1D2B3E;
	--c-text: #444444;
	--c-text-secondary: #777777;
	--c-bg: #FFFFFF;
	--c-bg-light: #F5F6FA;
	--c-border: #DDE2EA;
	--c-shadow: rgba(0, 0, 0, 0.06);
	--font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--radius: 8px;
	--max-w: 1110px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
	font-size: 16px;
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
}

body {
	font-family: var(--font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	color: var(--c-text);
	background-color: var(--c-bg);
}

a { color: var(--c-primary); text-decoration: none; transition: color 200ms ease; }
a:hover { color: var(--c-primary-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* --- Header --- */
.legal-header {
	background: linear-gradient(160deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
	color: #fff;
	padding: 36px 15px 28px;
	text-align: center;
}

.legal-header__inner {
	max-width: var(--max-w);
	margin: 0 auto;
}

.legal-header__title {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	margin-bottom: 8px;
}

.legal-header__date {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
}

/* --- Breadcrumbs --- */
.legal-breadcrumbs {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 12px 20px;
	font-size: 13px;
	color: var(--c-text-secondary);
}

.legal-breadcrumbs a {
	color: var(--c-text-secondary);
	text-decoration: none;
}

.legal-breadcrumbs a:hover {
	color: var(--c-primary);
	text-decoration: underline;
}

.legal-breadcrumbs__sep {
	margin: 0 6px;
	color: var(--c-border);
}

/* --- Language & cross-links bar --- */
.legal-bar {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px 16px;
	margin-top: 4px;
	margin-bottom: 8px;
}

.legal-bar__lang {
	font-size: 13px;
	font-weight: 500;
	color: var(--c-primary);
	border: 1px solid var(--c-border);
	padding: 4px 12px;
	border-radius: 999px;
	text-decoration: none;
	transition: background 200ms ease;
}

.legal-bar__lang:hover {
	background: var(--c-primary-light);
	text-decoration: none;
}

.legal-bar__links {
	font-size: 13px;
	display: flex;
	gap: 16px;
}

.legal-bar__links a {
	text-decoration: none;
}

/* --- Page container --- */
.legal-page {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 15px 60px;
}

/* --- Intro block --- */
.legal-intro {
	background: var(--c-bg-light);
	border-left: 3px solid var(--c-primary);
	padding: 16px 20px;
	margin-bottom: 32px;
	margin-top: 16px;
	border-radius: 0 var(--radius) var(--radius) 0;
	font-size: 15px;
	line-height: 1.65;
	color: var(--c-text);
}

/* --- Section headings --- */
.legal-section {
	margin-top: 36px;
}

.legal-section__title {
	font-size: 18px;
	font-weight: 700;
	color: var(--c-dark);
	margin-bottom: 12px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--c-primary);
}

.legal-subsection {
	margin-top: 24px;
	margin-bottom: 16px;
}

.legal-subsection__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--c-dark);
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.legal-subsection__title::before {
	content: '';
	width: 4px;
	height: 18px;
	background: var(--c-accent);
	border-radius: 2px;
	flex-shrink: 0;
}

/* --- Paragraphs --- */
.legal-page p {
	font-size: 15px;
	margin-bottom: 12px;
	line-height: 1.7;
}

.legal-page p:last-child {
	margin-bottom: 0;
}

/* --- Lists --- */
.legal-list {
	list-style: none;
	padding: 0;
	margin-bottom: 16px;
}

.legal-list li {
	position: relative;
	padding: 4px 0 4px 22px;
	font-size: 15px;
	line-height: 1.6;
}

.legal-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 12px;
	width: 7px;
	height: 7px;
	background: var(--c-accent);
	border-radius: 50%;
}

/* --- Highlight / callout --- */
.legal-callout {
	background: var(--c-bg-light);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	padding: 14px 18px;
	margin: 16px 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--c-dark);
}

/* --- Key-value table (requisites) --- */
.legal-kv {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	margin-bottom: 24px;
}

.legal-kv th,
.legal-kv td {
	padding: 8px 12px;
	text-align: left;
	border: 1px solid var(--c-border);
	vertical-align: top;
}

.legal-kv th {
	background: var(--c-primary);
	color: #fff;
	font-weight: 600;
	font-size: 13px;
}

.legal-kv td:first-child {
	width: 200px;
	color: var(--c-text-secondary);
	font-weight: 400;
	white-space: nowrap;
}

.legal-kv td:last-child {
	font-weight: 500;
	color: var(--c-dark);
}

.legal-kv tbody tr:nth-child(even) {
	background: var(--c-bg-light);
}

/* --- FAQ accordion --- */
.legal-faq {
	margin-bottom: 24px;
}

.legal-faq__item {
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	margin-bottom: 8px;
	overflow: hidden;
}

.legal-faq__q {
	font-size: 15px;
	font-weight: 600;
	color: var(--c-dark);
	padding: 14px 18px;
	background: var(--c-bg-light);
}

.legal-faq__a {
	font-size: 14px;
	padding: 10px 18px 14px;
	color: var(--c-text);
	line-height: 1.6;
}

/* --- Contact block --- */
.legal-contacts {
	background: var(--c-bg-light);
	border-radius: var(--radius);
	padding: 20px 24px;
	margin: 24px 0;
}

.legal-contacts__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--c-dark);
	margin-bottom: 10px;
}

.legal-contacts p {
	margin-bottom: 6px;
	font-size: 15px;
}

.legal-contacts a {
	font-weight: 500;
}

/* --- Footer --- */
.legal-footer {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--c-border);
	font-size: 13px;
	color: var(--c-text-secondary);
	text-align: center;
}

.legal-footer a {
	color: var(--c-text-secondary);
}

/* --- Responsive --- */
@media (min-width: 640px) {
	.legal-header__title {
		font-size: 26px;
	}

	.legal-kv td:first-child {
		width: 240px;
	}
}

@media (min-width: 768px) {
	.legal-header {
		padding: 44px 15px 36px;
	}

	.legal-header__title {
		font-size: 28px;
	}

	.legal-section__title {
		font-size: 20px;
	}
}

@media (min-width: 1024px) {
	.legal-header__title {
		font-size: 30px;
	}
}
