/* TLC Disclaimer Popup: The Lawyers' Council brand
 * bg #483F3B  deep #302A27  beige #CBBAAF  cream #D3C2B8  heading font: Noticia Text
 */
html.tlc-dc-accepted #tlc-dc { display: none !important; }
html.tlc-dc-open,
html.tlc-dc-open body { overflow: hidden !important; }

#tlc-dc {
	--tlc-bg: #3f3734;
	--tlc-bg2: #342d2a;
	--tlc-deep: #302a27;
	--tlc-beige: #cbbaaf;
	--tlc-cream: #d3c2b8;
	--tlc-text: #e0d4cb;
	--tlc-white: #fbf7f4;

	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	background: rgba(32, 27, 25, 0.55);
	-webkit-backdrop-filter: blur(9px) saturate(110%);
	backdrop-filter: blur(9px) saturate(110%);
	opacity: 1;
	visibility: visible;
	transition: opacity .35s ease, visibility .35s ease;
	-webkit-font-smoothing: antialiased;
}
#tlc-dc *, #tlc-dc *::before, #tlc-dc *::after { box-sizing: border-box; }
#tlc-dc.is-closing { opacity: 0; visibility: hidden; }
#tlc-dc .tlc-dc__card:focus { outline: none; }

/* Browsers without backdrop-filter: blur the page itself */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	html.tlc-dc-open body > *:not(#tlc-dc) { filter: blur(6px); }
	#tlc-dc { background: rgba(32, 27, 25, 0.78); }
}

.tlc-dc__card {
	position: relative;
	width: 100%;
	max-width: 860px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 40px 64px 42px;
	background: linear-gradient(180deg, var(--tlc-bg) 0%, var(--tlc-bg2) 100%);
	border: 1px solid rgba(211, 194, 184, 0.22);
	border-top: 4px solid var(--tlc-cream);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(255, 255, 255, 0.03) inset;
	color: var(--tlc-text);
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
	text-align: left;
	animation: tlc-dc-in .45s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes tlc-dc-in {
	from { opacity: 0; transform: translateY(18px) scale(.985); }
	to   { opacity: 1; transform: none; }
}

.tlc-dc__brand { margin: 0 0 26px; line-height: 0; }
.tlc-dc__logo {
	display: inline-block;
	width: 210px; max-width: 60%;
	height: auto;
	border: 0;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	background: var(--tlc-cream);
}

#tlc-dc .tlc-dc__title {
	margin: 0;
	padding: 0;
	font-family: "Noticia Text", Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: 36px;
	line-height: 1.15;
	letter-spacing: .01em;
	color: var(--tlc-white);
	text-transform: none;
	border: 0;
	background: none;
}
.tlc-dc__rule {
	display: block;
	width: 64px;
	height: 0;
	margin: 16px 0 24px;
	border-top: 2px solid var(--tlc-cream);
	border-bottom: 1px solid rgba(211, 194, 184, 0.5);
	padding-top: 3px;
}

.tlc-dc__body p {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.8;
	color: var(--tlc-text);
}
.tlc-dc__body p:last-child { margin-bottom: 0; }
.tlc-dc__body a { color: var(--tlc-white); text-decoration: underline; }

.tlc-dc__actions {
	/* sticks to the bottom of the card when the text is long */
	position: sticky;
	bottom: -42px;
	z-index: 2;
	margin: 28px -64px -42px;
	padding: 22px 64px 34px;
	background: var(--tlc-bg2);
	border-top: 1px solid rgba(211, 194, 184, 0.16);
	box-shadow: 0 -12px 20px -8px rgba(40, 34, 31, .85);
}

/* Checkbox */
.tlc-dc__check {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 22px;
	cursor: pointer;
	user-select: none;
	font-size: 14px;
	color: var(--tlc-white);
}
.tlc-dc__check input {
	position: absolute;
	opacity: 0;
	width: 22px; height: 22px;
	margin: 0;
	cursor: pointer;
}
.tlc-dc__box {
	flex: 0 0 22px;
	width: 22px; height: 22px;
	border: 1.5px solid var(--tlc-beige);
	background: transparent;
	position: relative;
	transition: background .2s, border-color .2s;
}
.tlc-dc__box::after {
	content: "";
	position: absolute;
	left: 6.5px; top: 2.5px;
	width: 6px; height: 11px;
	border: solid var(--tlc-deep);
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg) scale(0);
	transition: transform .18s ease;
}
.tlc-dc__check input:checked + .tlc-dc__box { background: var(--tlc-cream); border-color: var(--tlc-cream); }
.tlc-dc__check input:checked + .tlc-dc__box::after { transform: rotate(45deg) scale(1); }
.tlc-dc__check input:focus-visible + .tlc-dc__box { outline: 2px solid var(--tlc-white); outline-offset: 3px; }

/* Button */
#tlc-dc .tlc-dc__btn {
	display: block;
	min-width: 230px;
	margin: 0;
	padding: 15px 30px;
	border: 1px solid var(--tlc-cream);
	border-radius: 0;
	background: transparent;
	color: var(--tlc-white);
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: none;
	transition: background .25s, color .25s, opacity .25s;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}
#tlc-dc .tlc-dc__btn:hover { background: var(--tlc-cream); color: var(--tlc-deep); }
#tlc-dc .tlc-dc__btn:focus { outline: none; }
#tlc-dc .tlc-dc__btn:focus-visible { outline: 2px solid var(--tlc-white); outline-offset: 3px; }
#tlc-dc .tlc-dc__btn:disabled { opacity: .4; cursor: not-allowed; background: transparent; color: var(--tlc-white); }

/* Card scrollbar */
.tlc-dc__card::-webkit-scrollbar { width: 6px; }
.tlc-dc__card::-webkit-scrollbar-thumb { background: rgba(211, 194, 184, .35); }

/* Tablet */
@media (max-width: 900px) {
	.tlc-dc__card { padding: 38px 40px 36px; }
	#tlc-dc .tlc-dc__title { font-size: 32px; }
	.tlc-dc__actions { bottom: -36px; margin: 24px -40px -36px; padding: 20px 40px 30px; }
}

/* Mobile: bottom sheet */
@media (max-width: 600px) {
	#tlc-dc {
		align-items: flex-end;
		padding: 12px 10px calc(10px + env(safe-area-inset-bottom));
	}
	.tlc-dc__card {
		max-height: calc(100vh - 22px);
		padding: 26px 22px 22px;
		border-top-width: 3px;
		animation-name: tlc-dc-up;
	}
	.tlc-dc__brand { margin-bottom: 18px; }
	.tlc-dc__logo { width: 168px; }
	#tlc-dc .tlc-dc__title { font-size: 26px; }
	.tlc-dc__rule { margin: 12px 0 16px; width: 48px; }
	.tlc-dc__body p { font-size: 14px; line-height: 1.7; }
	.tlc-dc__actions { bottom: -22px; margin: 20px -22px -22px; padding: 16px 22px 20px; }
	.tlc-dc__check { margin-bottom: 14px; }
	#tlc-dc .tlc-dc__btn { width: 100%; min-width: 0; padding: 16px 20px; }
}
@supports (height: 100dvh) {
	.tlc-dc__card { max-height: calc(100dvh - 48px); }
	@media (max-width: 600px) { .tlc-dc__card { max-height: calc(100dvh - 22px); } }
}
@keyframes tlc-dc-up {
	from { opacity: 0; transform: translateY(40px); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	#tlc-dc, .tlc-dc__card { animation: none; transition: none; }
}
