/* Legal pages (Privacy Policy, Terms; inc/pages/legal.php, D-82): sticky contents list on the left, text on the right. */

/* The theme sets overflow-x: hidden on body, which stops position: sticky (same fix as the guides and Warranty). */
body { overflow-x: clip; }

.lind-legal-updated { margin: 0; font-size: 15px; color: #616161; }
.lind-legal-updated strong { color: #1f1f1f; }

/* Contents list */
.lind-legal-toc__title {
	margin: 0 0 14px;
	font-family: "Raleway", sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #0d6fa1;
}
.lind-legal-toc__list { margin: 0; padding: 0; list-style: none; border-left: 2px solid #e6e6e6; }
.lind-legal-toc__list li { margin: 0; }
.lind-legal-toc__list a {
	display: block;
	margin-left: -2px;
	padding: 7px 0 7px 18px;
	border-left: 2px solid transparent;
	font-size: 15px;
	line-height: 1.4;
	color: #616161;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.lind-legal-toc__list a:hover { color: #1f1f1f; border-left-color: #a3a3a3; }
.lind-legal-toc__list a.is-current { color: #0d6fa1; font-weight: 700; border-left-color: #118cc9; }

@media (min-width: 1025px) {
	.lind-legal-side { align-self: stretch; }
	.lind-legal-sticky { position: sticky; top: 96px; }
	.admin-bar .lind-legal-sticky { top: 128px; }
	.lind-legal-sticky .lind-legal-toc { max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; padding-right: 8px; }
	.admin-bar .lind-legal-sticky .lind-legal-toc { max-height: calc(100vh - 152px); }
}
/* Tablets and phones: the list sits above the text in a light card (not sticky). */
@media (max-width: 1024px) {
	.lind-legal-toc { padding: 24px 24px 18px; background: #f5f5f5; }
	.lind-legal-toc__list { columns: 2; column-gap: 32px; border-left: 0; }
	.lind-legal-toc__list li { break-inside: avoid; }
	.lind-legal-toc__list a { margin-left: 0; padding: 6px 0; border-left: 0; }
}
@media (max-width: 600px) {
	.lind-legal-toc__list { columns: 1; }
}

/* Text */
.lind-legal-body h2 {
	margin: 64px 0 18px;
	font-size: 28px;
	scroll-margin-top: 110px;
}
.lind-legal-body h2:first-child { margin-top: 0; }
.lind-legal-body h3 { margin: 32px 0 12px; font-size: 21px; line-height: 1.3; }
.lind-legal-body p,
.lind-legal-body li { font-size: 17px; line-height: 1.7; }
.lind-legal-body p { margin: 0 0 16px; }
.lind-legal-body ul { margin: 0 0 18px; padding-left: 22px; }
.lind-legal-body li { margin: 0 0 8px; }
.lind-legal-body a { color: #0d6fa1; text-decoration: underline; text-underline-offset: 3px; }
.lind-legal-body a:hover { color: #118cc9; }
@media (max-width: 767px) {
	.lind-legal-body h2 { margin-top: 48px; font-size: 24px; }
	.lind-legal-body p,
	.lind-legal-body li { font-size: 16px; }
}

/* Tables (cookies, information collected): scroll sideways on narrow phones. The column and widget must be allowed to
   shrink (flex items default to min-width: auto), or a wide table pushes the whole text past the screen edge. */
.lind-legal-main,
.lind-legal-main .elementor-widget,
.lind-legal-body,
.lind-legal-body .elementor-widget-container { min-width: 0; max-width: 100%; }
/* The column lines its widgets up at the start, so a widget is as wide as its content: give the text the full column
   (the readable-width rule still caps it at 40rem). */
.lind-legal-main .elementor-widget.lind-legal-body { width: 100%; }
.lind-legal-table { margin: 8px 0 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lind-legal-body table { width: 100%; min-width: 520px; margin: 0; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.lind-legal-body th,
.lind-legal-body td { padding: 12px 14px; border: 1px solid #e6e6e6; text-align: left; vertical-align: top; }
.lind-legal-body th { background: #f5f5f5; color: #1f1f1f; font-weight: 700; } /* theme <th> text is white */
.lind-legal-body td:first-child { font-weight: 700; color: #1f1f1f; overflow-wrap: anywhere; }
