/*
 * accessibility.css
 * Page-specific styles for new/accessibility.php (Figma node 153:5363,
 * "Accessibility Statement"). Reuses the .ft-* design system from homepage.css
 * (linked first) for the shell, colors and type tokens; everything here is
 * prefixed .ac-* so it only affects this page.
 *
 * Figma tokens:
 *   Text_Primary #333536 · Text_Secondary #737A82 · Blue_Main #2DA7FA
 *   Title/Title 24/30 Bold · Body/Lead 16/22 Medium · Title/H3 14 SemiBold
 *   Body/Body 14/18 Medium · Label/Overline 10/12 Bold
 *
 * Layout: a 1200px-wide group centered on the page (Figma frame 206:7300) split
 * into a 264px "Table of Content" sidebar and an 888px policy-text column.
 */

.ac-section {
	background: #fdfdfd;
}

/* The Figma group is a fixed 1200px centered band; cap the shared shell to it. */
.ac-section .ft-shell {
	width: min(1200px, 100% - 80px);
}

.ac-layout {
	display: grid;
	grid-template-columns: 264px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

/* ---- Table of Content ---- */
.ac-toc {
	position: sticky;
	top: calc(var(--shop-header-height, 80px) + 24px);
}

.ac-toc__title {
	margin: 0 0 16px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ft-border);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ft-text);
}

.ac-toc__nav {
	display: grid;
	gap: 16px;
}

.ac-toc__link {
	font-size: 14px;
	font-weight: 500;
	line-height: 18px;
	color: var(--ft-muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.ac-toc__link:hover,
.ac-toc__link:focus-visible {
	color: var(--ft-blue);
}

.ac-toc__link.is-active {
	color: var(--ft-blue);
	font-weight: 600;
}

/* ---- Policy body ---- */
.ac-body {
	min-width: 0;
}

.ac-intro {
	display: grid;
	gap: 16px;
}

.ac-title {
	margin: 0;
	font-size: 24px;
	line-height: 30px;
	font-weight: 700;
	color: var(--ft-text);
}

.ac-lead {
	margin: 0;
	font-size: 16px;
	line-height: 22px;
	font-weight: 500;
	color: var(--ft-muted);
}

/* Rules — the intro is separated by a heavier (4px) blue-ish rule in Figma;
 * group separators are a hairline. */
.ac-rule {
	height: 0;
	margin: 24px 0;
	border: 0;
	border-top: 1px solid var(--ft-border);
}

.ac-rule--strong {
	border-top: 4px solid var(--ft-blue);
}

/* ---- Section groups ---- */
.ac-group {
	display: grid;
	gap: 24px;
}

.ac-block {
	display: grid;
	gap: 8px;
	scroll-margin-top: calc(var(--shop-header-height, 80px) + 24px);
}

.ac-block__title {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ft-text);
}

.ac-text {
	margin: 0;
	font-size: 14px;
	line-height: 18px;
	font-weight: 500;
	color: var(--ft-muted);
}

.ac-link {
	color: var(--ft-blue);
	text-decoration: none;
}

.ac-link:hover,
.ac-link:focus-visible {
	text-decoration: underline;
}

/* Bullet lists — middle-dot markers, muted body text. */
.ac-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 4px;
}

.ac-list li {
	position: relative;
	padding-left: 20px;
	font-size: 14px;
	line-height: 18px;
	font-weight: 500;
	color: var(--ft-muted);
}

.ac-list li::before {
	content: "•";
	position: absolute;
	left: 6px;
	top: -0.05em;
	color: var(--ft-muted);
}

/* ---- Contact block (Feedback) ---- */
.ac-contact {
	margin-top: 16px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.ac-contact__label {
	margin: 0 0 8px;
	font-size: 10px;
	line-height: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--ft-text);
}

.ac-contact__value {
	margin: 0;
	font-size: 14px;
	line-height: 18px;
	font-weight: 500;
	color: var(--ft-muted);
}

/* ===================== Responsive ===================== */

@media (max-width: 990px) {
	.ac-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.ac-toc {
		position: static;
		top: auto;
	}

	.ac-contact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 24px;
	}
}

@media (max-width: 680px) {
	.ac-section .ft-shell {
		width: min(1200px, 100% - 48px);
	}
}

/* Below 450px → single column + narrowed gutter (convention: 100% - 32px). */
@media (max-width: 449px) {
	.ac-section .ft-shell {
		width: min(1200px, 100% - 32px);
	}

	.ac-contact {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.ac-title {
		font-size: 22px;
		line-height: 28px;
	}
}

/* ---- 4K (~2.2x type scale, wider band) ---- */
@media (min-width: 3000px) {
	.ac-section .ft-shell {
		width: min(2640px, 100% - 180px);
	}

	.ac-layout {
		grid-template-columns: 580px minmax(0, 1fr);
		gap: 106px;
	}

	.ac-toc {
		top: calc(var(--shop-header-height, 80px) + 53px);
	}

	.ac-toc__title {
		margin-bottom: 35px;
		padding-bottom: 40px;
		font-size: 30px;
	}

	.ac-toc__nav {
		gap: 35px;
	}

	.ac-toc__link {
		font-size: 30px;
		line-height: 40px;
	}

	.ac-intro {
		gap: 35px;
	}

	.ac-title {
		font-size: 52px;
		line-height: 64px;
	}

	.ac-lead {
		font-size: 34px;
		line-height: 48px;
	}

	.ac-rule {
		margin: 53px 0;
	}

	.ac-rule--strong {
		border-top-width: 9px;
	}

	.ac-group {
		gap: 53px;
	}

	.ac-block {
		gap: 18px;
	}

	.ac-block__title {
		margin-bottom: 9px;
		font-size: 30px;
	}

	.ac-text,
	.ac-list li {
		font-size: 30px;
		line-height: 40px;
	}

	.ac-list {
		gap: 9px;
	}

	.ac-list li {
		padding-left: 44px;
	}

	.ac-list li::before {
		left: 13px;
	}

	.ac-contact {
		margin-top: 35px;
		gap: 53px;
	}

	.ac-contact__label {
		margin-bottom: 18px;
		font-size: 22px;
		line-height: 26px;
	}

	.ac-contact__value {
		font-size: 30px;
		line-height: 40px;
	}
}
