/* ═══════════════════════════════════════════════
   Br Legal Pages  —  matches the HTML reference
   ═══════════════════════════════════════════════ */

:root {
  /* Brand design system variables */
  --green:        #143D2E;   /* deep forest — primary dark */
  --green-700:    #174C35;
  --green-600:    #1E5E43;
  --lime:         #C8E840;   /* bright lettuce accent */
  --lime-soft:    #DCF27A;
  --fresh:        #8BCB5A;   /* fresh secondary green */
  --sage:         #9BBFB8;   /* muted teal-sage */
  --sage-soft:    #CADAD3;

  /* Warm neutrals */
  --cream:        #F7F1D8;
  --cream-50:     #FBF7E8;
  --beige:        #E9D8A6;
  --soft-gray:    #EEF0E8;
  --charcoal:     #1F2420;

  /* Roles */
  --bg:           var(--cream-50);
  --ink:          var(--green);
  --ink-soft:     #4A5A4E;
  --line:         #E3DFC9;

  --radius-sm: 14px;
  --radius:    22px;
  --radius-lg: 34px;
  --radius-xl: 48px;

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 72px);

  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-ui:      'Plus Jakarta Sans', system-ui, sans-serif;

  --ease: cubic-bezier(.2,.7,.2,1);
}

.legal-hero {
	background: var(--green);
	color: var(--cream);
	padding: clamp(40px,5vw,64px) 0 clamp(56px,7vw,88px);
	position: relative;
	overflow: hidden;
}

.legal-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(90% 120% at 100% 0%, rgba(200,232,64,.13), transparent 55%);
	pointer-events: none;
}

.legal-hero .wrap {
	max-width: var(--maxw);
	margin: 0 auto;
	padding-inline: var(--gut);
	position: relative;
	z-index: 1;
}

.legal-hero .crumbs {
	font-size: 14px;
	font-weight: 600;
	color: var(--sage-soft);
	margin-bottom: 16px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.legal-hero .crumbs a {
	color: var(--sage-soft);
	text-decoration: none;
}

.legal-hero .crumbs a:hover {
	color: var(--lime);
}

.legal-hero h1 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(34px, 4.6vw, 58px);
	line-height: 1.02;
	letter-spacing: -.025em;
	max-width: 18ch;
	margin: 0;
}

.legal-hero p {
	color: var(--sage-soft);
	max-width: 58ch;
	margin: 16px 0 0;
	font-size: 17px;
	line-height: 1.55;
}

.legal-updated {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 22px;
	font-size: 13px;
	font-weight: 600;
	color: var(--lime);
	background: rgba(200,232,64,.12);
	padding: 8px 15px;
	border-radius: 100px;
}

.legal-updated svg {
	width: 15px;
	height: 15px;
	flex: none;
}

/* layout */
.legal-body {
	padding: 0 0 clamp(60px, 7vw, 110px);
}

.legal-body .wrap {
	max-width: var(--maxw);
	margin: 0 auto;
	padding-inline: var(--gut);
}

.legal-layout {
	display: grid;
	grid-template-columns: 252px 1fr;
	gap: 34px;
	align-items: start;
	margin-top: -44px;
	position: relative;
	z-index: 2;
}

/* sidebar */
.legal-side {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 14px;
	position: sticky;
	top: 96px;
}

.legal-side .ls-title {
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ink-soft);
	font-weight: 700;
	padding: 10px 14px 8px;
}

.legal-side .ls-links {
	display: flex;
	flex-direction: column;
}

.legal-side a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 14px;
	font-weight: 600;
	font-size: 15px;
	color: var(--ink);
	transition: background .15s, color .15s;
	text-decoration: none;
}

.legal-side a:hover {
	background: var(--soft-gray);
}

.legal-side a svg {
	width: 19px;
	height: 19px;
	color: var(--ink-soft);
	flex: none;
}

.legal-side a.active {
	background: var(--green);
	color: var(--lime);
}

.legal-side a.active svg {
	color: var(--lime);
}

/* content */
.legal-content {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 760px;
}

.legal-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: clamp(22px, 3vw, 34px);
}

.legal-card .lc-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
}

.legal-card .lc-num {
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: var(--soft-gray);
	color: var(--green);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 16px;
	display: grid;
	place-items: center;
	flex: none;
}

.legal-card h2 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(20px, 2.4vw, 25px);
	letter-spacing: -.01em;
	line-height: 1.1;
	color: var(--ink);
	margin: 0;
}

.legal-card h3 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 19px;
	margin: 0 0 7px;
	color: var(--ink);
}

.legal-card .intro-lead {
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
}

.legal-card p {
	font-size: 15.5px;
	line-height: 1.65;
	color: var(--ink-soft);
	margin: 0 0 12px;
}

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

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

.legal-card ul {
	list-style: none;
	padding: 0;
	margin: 6px 0 0;
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.legal-card ul li {
	display: flex;
	gap: 11px;
	align-items: flex-start;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--ink-soft);
}

.legal-card ul li svg {
	width: 20px;
	height: 20px;
	flex: none;
	color: var(--green);
	margin-top: 1px;
}

.legal-card a.inline {
	color: var(--green);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.legal-card a.inline:hover {
	color: var(--green-600);
}

/* "not advice" callout */
.callout {
	background: var(--lime);
	color: var(--green);
	border-radius: var(--radius-lg);
	padding: clamp(22px, 3vw, 32px);
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.callout .co-ic {
	width: 44px;
	height: 44px;
	border-radius: 13px;
	background: var(--green);
	color: var(--lime);
	display: grid;
	place-items: center;
	flex: none;
}

.callout .co-ic svg {
	width: 24px;
	height: 24px;
}

.callout h2 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 22px;
	letter-spacing: -.01em;
	margin: 0 0 6px;
}

.callout p {
	font-size: 15.5px;
	line-height: 1.6;
	margin: 0;
	color: rgba(20,61,46,.82);
	font-weight: 500;
}

.callout.dark {
	background: var(--green);
	color: var(--cream);
}

.callout.dark .co-ic {
	background: var(--lime);
	color: var(--green);
}

.callout.dark p {
	color: var(--sage-soft);
}

/* quick-link cards (overview) */
.ql-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.ql-card {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px 20px;
	transition: transform .25s var(--ease), border-color .25s;
	text-decoration: none;
}

.ql-card:hover {
	transform: translateY(-3px);
	border-color: var(--fresh);
}

.ql-card .ql-ic {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--soft-gray);
	color: var(--green);
	display: grid;
	place-items: center;
	flex: none;
}

.ql-card .ql-ic svg {
	width: 21px;
	height: 21px;
}

.ql-card .ql-t b {
	display: block;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 16px;
	color: var(--ink);
}

.ql-card .ql-t span {
	font-size: 13px;
	color: var(--ink-soft);
}

.ql-card .ql-go {
	margin-left: auto;
	color: var(--ink-soft);
}

.ql-card .ql-go svg {
	width: 18px;
	height: 18px;
}

.ql-card:hover .ql-go {
	color: var(--green);
}

/* contact cards */
.contact-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.contact-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 26px;
	display: flex;
	flex-direction: column;
}

.contact-card .cc-ic {
	width: 50px;
	height: 50px;
	border-radius: 15px;
	background: var(--green);
	color: var(--lime);
	display: grid;
	place-items: center;
	margin-bottom: 18px;
}

.contact-card .cc-ic svg {
	width: 24px;
	height: 24px;
}

.contact-card p {
	font-size: 14.5px;
	color: var(--ink-soft);
	line-height: 1.55;
	margin: 0 0 16px;
}

.contact-card .cc-mail {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 14.5px;
	color: var(--green);
	text-decoration: none;
}

.contact-card .cc-mail:hover {
	color: var(--green-600);
}

.contact-card .cc-mail svg {
	width: 16px;
	height: 16px;
}

.contact-card .cc-sub {
	font-size: 12.5px;
	color: var(--ink-soft);
	margin-top: 6px;
}

/* contact form */
.contact-form {
	display: grid;
	gap: 14px;
}

.contact-form .cf-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.contact-form label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--ink-soft);
	display: block;
	margin-bottom: 7px;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 13px 16px;
	border-radius: 14px;
	border: 1.5px solid var(--line);
	background: var(--cream-50);
	font-family: inherit;
	font-size: 15.5px;
	color: var(--ink);
	outline: none;
	transition: border-color .18s;
	box-sizing: border-box;
}

.contact-form textarea {
	min-height: 130px;
	resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
	border-color: var(--fresh);
}

.cf-success {
	display: none;
	align-items: center;
	gap: 11px;
	background: color-mix(in srgb, var(--fresh) 16%, #fff);
	border: 1.5px solid var(--fresh);
	color: var(--green);
	border-radius: 14px;
	padding: 14px 18px;
	font-weight: 600;
	font-size: 15px;
	margin-bottom: 14px;
}

.cf-success.show {
	display: flex;
}

.cf-success svg {
	width: 20px;
	height: 20px;
	flex: none;
}

.cf-error {
	display: none;
	align-items: center;
	gap: 11px;
	background: #fee2e2;
	border: 1.5px solid #fca5a5;
	color: #991b1b;
	border-radius: 14px;
	padding: 14px 18px;
	font-weight: 600;
	font-size: 15px;
	margin-bottom: 14px;
}

.cf-error.show {
	display: flex;
}

.cf-error svg {
	width: 20px;
	height: 20px;
	flex: none;
}

/* cross-link footer note inside content */
.legal-xlinks {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.legal-xlinks a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 14.5px;
	color: var(--green);
	background: var(--soft-gray);
	padding: 11px 18px;
	border-radius: 100px;
	transition: background .2s;
	text-decoration: none;
}

.legal-xlinks a:hover {
	background: var(--lime);
}

.legal-xlinks a svg {
	width: 15px;
	height: 15px;
}

/* ─── Feedback band ─────────────────────────── */
.legal-feedback {
	padding: clamp(26px, 4vw, 48px) 0;
}

.fb-card {
	background: var(--green);
	border-radius: var(--radius-lg);
	padding: clamp(22px,3vw,34px) clamp(24px,3.5vw,40px);
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	flex-wrap: wrap;
	text-align: left;
}

.fb-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(125deg, transparent 0 20px, rgba(200,232,64,.08) 20px 23px);
	pointer-events: none;
}

.fb-text {
	flex: 1;
	min-width: 230px;
	position: relative;
	z-index: 1;
}

.fb-qmark {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--lime);
	margin-right: 2px;
}

.fb-quote {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(21px, 2.6vw, 30px);
	letter-spacing: -.02em;
	color: var(--cream);
	margin: 0;
	line-height: 1.05;
}

.fb-quote .hl { color: var(--lime); }

.fb-sub {
	color: var(--sage-soft);
	max-width: 54ch;
	margin: 8px 0 0;
	font-size: 14.5px;
	line-height: 1.5;
}

.fb-btn {
	position: relative;
	z-index: 1;
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--lime);
	color: var(--green);
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 15px;
	padding: 14px 24px;
	border-radius: 100px;
	text-decoration: none;
	transition: background .18s, transform .2s;
}

.fb-btn:hover {
	background: var(--lime-soft);
	transform: translateY(-2px);
}

.fb-btn svg {
	width: 16px;
	height: 16px;
}

.legal-feedback .wrap {
	max-width: var(--maxw);
	margin: 0 auto;
	padding-inline: var(--gut);
}

/* responsive */
@media(max-width:920px){
  .legal-layout{ grid-template-columns:1fr; margin-top:-30px; }
  .legal-side{ position:static; padding: 10px; border-radius: var(--radius); }
  .legal-side .ls-links{ display:flex; flex-direction:row; justify-content:center; gap:8px; flex-wrap:nowrap; }
  .legal-side .ls-title{ display:none; }
  .legal-side a{
    padding: 11px;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .legal-side a svg{ display:block; width:20px; height:20px; }
  .legal-side a span{ display:none; }
  .contact-grid{ grid-template-columns:1fr; }
  .ql-grid{ grid-template-columns:1fr; }
}

@media(max-width:560px){
  .contact-form .cf-row{ grid-template-columns:1fr; }
}

/* RTL */
.rtl.legal-page,
.rtl .legal-page,
[dir=rtl] .legal-page,
.rtl .legal-hero,
[dir=rtl] .legal-hero,
.rtl .legal-body,
[dir=rtl] .legal-body,
.rtl .legal-layout,
[dir=rtl] .legal-layout {
	direction: rtl;
}

[dir=rtl] .legal-card,
.rtl .legal-card,
[dir=rtl] .legal-hero,
.rtl .legal-hero,
[dir=rtl] .contact-card,
.rtl .contact-card,
[dir=rtl] .legal-side,
.rtl .legal-side {
	text-align: right;
}

[dir=rtl] .legal-card ul,
.rtl .legal-card ul {
	padding-right: 0;
}

[dir=rtl] .legal-xlinks a svg,
.rtl .legal-xlinks a svg,
[dir=rtl] .ql-card .ql-go svg,
.rtl .ql-card .ql-go svg {
	transform: scaleX(-1);
}

[dir=rtl] .cc-mail svg,
.rtl .cc-mail svg {
	transform: scaleX(-1);
}

[dir=rtl] .fb-card,
.rtl .fb-card {
	text-align: right;
}

[dir=rtl] .ql-card .ql-go,
.rtl .ql-card .ql-go {
	margin-right: auto;
	margin-left: 0;
}

/* Scope backgrounds & padding to Br Legal pages specifically */
body.legal-page {
	background-color: #fbf7e8 !important;
}

body.legal-page #mainArea .legal-body {
	background-color: #fbf7e8;
	padding-top: 16px;
	margin-top: -39px;
}

body.legal-page #mainArea .legal-feedback {
	background-color: #fbf7e8;
}
