/* ============================================================
   IFAD technical pages — About us, Contacts, and the legal
   documents (Terms / Privacy / Accessibility / Cookies).
   Uses the global header :root tokens (--ifad-navy, --ifad-gold,
   --ifad-line, --ifad-muted). Framework-free.
   ============================================================ */

.ifad-techpage {
	--tint: #f6f6f9;
	--soft: #ececf0;
}

/* Shared breadcrumb (left-aligned, document style). */
.ifad-tech-crumbs {
	font-size: 14px;
	color: var(--ifad-muted);
	margin: 0 0 18px;
}
.ifad-tech-crumbs a { color: var(--ifad-muted); text-decoration: none; }
.ifad-tech-crumbs a:hover { color: var(--ifad-navy); }
.ifad-tech-crumbs .sep { margin: 0 7px; opacity: .55; }
.ifad-tech-crumbs .current { color: var(--ifad-navy); }

/* ------------------------------------------------------------
   LEGAL DOCUMENTS
   ------------------------------------------------------------ */
.ifad-legal__head {
	background: var(--tint);
	border-bottom: 1px solid var(--ifad-line);
	padding: 40px 0 42px;
}
.ifad-legal__title {
	margin: 0;
	font-size: 34px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: .01em;
	color: var(--ifad-navy);
}
.ifad-legal__updated {
	display: inline-block;
	margin: 16px 0 0;
	padding: 5px 13px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--ifad-navy);
	background: #fff;
	border: 1px solid var(--ifad-line);
	border-radius: 5px;
}
.ifad-legal__intro {
	max-width: 780px;
	margin: 18px 0 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--ifad-muted);
}
.ifad-legal__intro p { margin: 0 0 10px; }
.ifad-legal__intro p:last-child { margin-bottom: 0; }

.ifad-legal__body {
	display: grid;
	grid-template-columns: 258px minmax(0, 1fr);
	gap: 54px;
	padding-top: 46px;
	padding-bottom: 80px;
	align-items: start;
}

/* Table of contents (sticky). */
.ifad-legal__toc {
	position: sticky;
	top: 128px;
	align-self: start;
}
.ifad-legal__toc-title {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--ifad-muted);
}
.ifad-legal__toc-list {
	margin: 0;
	padding: 0 0 0 2px;
	list-style: none;
	counter-reset: none;
	border-left: 2px solid var(--ifad-line);
}
.ifad-legal__toc-list li { margin: 0; }
.ifad-legal__toc-list a {
	display: flex;
	gap: 9px;
	padding: 7px 0 7px 16px;
	margin-left: -2px;
	border-left: 2px solid transparent;
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--ifad-muted);
	text-decoration: none;
	transition: color .15s, border-color .15s;
}
.ifad-legal__toc-list a span {
	flex: none;
	font-weight: 700;
	color: #b9b9c4;
	min-width: 16px;
}
.ifad-legal__toc-list a:hover { color: var(--ifad-navy); }
.ifad-legal__toc-list a.is-active {
	color: var(--ifad-navy);
	font-weight: 600;
	border-left-color: var(--ifad-navy);
}
.ifad-legal__toc-list a.is-active span { color: var(--ifad-gold); }

/* Content column. */
.ifad-legal__content { max-width: 820px; }
.ifad-legal__section {
	padding: 8px 0 26px;
	margin-bottom: 26px;
	border-bottom: 1px solid var(--ifad-line);
	scroll-margin-top: 124px;
}
.ifad-legal__section:last-child { border-bottom: 0; margin-bottom: 0; }
.ifad-legal__h2 {
	display: flex;
	align-items: center;
	gap: 13px;
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 700;
	color: var(--ifad-navy);
}
.ifad-legal__num {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ifad-navy);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}
.ifad-legal__text { font-size: 15.5px; line-height: 1.78; color: #3d3d4a; }
.ifad-legal__text p { margin: 0 0 12px; }
.ifad-legal__text p:last-child { margin-bottom: 0; }
.ifad-legal__text a { color: var(--ifad-navy); font-weight: 600; }
.ifad-legal__text strong { color: var(--ifad-navy); }
.ifad-legal__text ul {
	margin: 12px 0;
	padding: 0;
	list-style: none;
}
.ifad-legal__text ul li {
	position: relative;
	padding-left: 26px;
	margin: 0 0 9px;
}
.ifad-legal__text ul li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 9px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ifad-gold);
}

/* ------------------------------------------------------------
   ABOUT US
   ------------------------------------------------------------ */
.ifad-about__hero {
	background: var(--tint);
	border-bottom: 1px solid var(--ifad-line);
	padding: 40px 0 46px;
	text-align: center;
}
.ifad-about__hero .ifad-tech-crumbs { text-align: left; }
.ifad-about__eyebrow {
	margin: 4px 0 12px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .14em;
	color: var(--ifad-gold);
}
.ifad-about__title {
	max-width: 900px;
	margin: 0 auto;
	font-size: 38px;
	line-height: 1.18;
	font-weight: 700;
	letter-spacing: .005em;
	color: var(--ifad-navy);
}
.ifad-about__intro {
	margin: 20px 0 0;
	font-size: 16.5px;
	line-height: 1.75;
	color: var(--ifad-muted);
}
.ifad-about__intro p { margin: 0 0 12px; }
.ifad-about__intro p:last-child { margin-bottom: 0; }

.ifad-about__sections {
	max-width: 1080px;
	padding-top: 54px;
	padding-bottom: 20px;
}
.ifad-about__section { margin-bottom: 42px; }
.ifad-about__section:last-child { margin-bottom: 0; }
.ifad-about__h2 {
	position: relative;
	margin: 0 0 18px;
	padding-bottom: 12px;
	font-size: 24px;
	font-weight: 700;
	color: var(--ifad-navy);
}
.ifad-about__h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 46px;
	height: 3px;
	border-radius: 3px;
	background: var(--ifad-gold);
}
.ifad-about__body { font-size: 16px; line-height: 1.8; color: #3d3d4a; }
.ifad-about__body p { margin: 0 0 14px; }
.ifad-about__body p:last-child { margin-bottom: 0; }
.ifad-about__body ul {
	margin: 16px 0 4px;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 11px 30px;
}
.ifad-about__body ul li {
	position: relative;
	padding-left: 30px;
	font-size: 15.5px;
	line-height: 1.5;
	color: var(--ifad-navy);
}
.ifad-about__body ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: rgba(201, 162, 74, .16);
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a24a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 12px;
}

/* Closing CTA band. */
.ifad-about__cta {
	margin-top: 56px;
	background: var(--ifad-navy);
	color: #fff;
	text-align: center;
	padding: 62px 0;
}
.ifad-about__cta-inner { max-width: 720px; }
.ifad-about__cta-title {
	margin: 0 0 14px;
	font-size: 28px;
	font-weight: 700;
	color: #fff;
}
.ifad-about__cta-text {
	margin: 0 auto 26px;
	font-size: 16px;
	line-height: 1.75;
	color: rgba(255, 255, 255, .78);
}
.ifad-about__cta-btn {
	display: inline-block;
	padding: 14px 34px;
	/* White inverse button — gold is not in the UI palette, and navy would be
	   invisible on this navy band. */
	background: #fff;
	color: var(--ifad-navy);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .01em;
	border-radius: 5px;
	text-decoration: none;
	transition: background .15s, transform .15s;
}
.ifad-about__cta-btn:hover { background: #eaeaf2; color: var(--ifad-navy); }

/* ------------------------------------------------------------
   CONTACTS
   ------------------------------------------------------------ */
.ifad-contacts__head {
	background: var(--tint);
	border-bottom: 1px solid var(--ifad-line);
	padding: 40px 0 42px;
	text-align: center;
}
.ifad-contacts__head .ifad-tech-crumbs { text-align: left; }
.ifad-contacts__title {
	margin: 0;
	font-size: 34px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--ifad-navy);
}
.ifad-contacts__sub {
	max-width: 760px;
	margin: 16px auto 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--ifad-muted);
}

.ifad-contacts__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	padding-top: 44px;
	padding-bottom: 80px;
}
/* Trailing promo card fills the rest of the row instead of leaving a gap.
   (auto-fit + `1 / -1` doesn't span, so the columns are explicit here.) */
.ifad-contacts__grid .ifad-contacts__card:last-child { grid-column: 1 / -1; }
@media ( max-width: 1000px ) {
	.ifad-contacts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media ( max-width: 600px ) {
	.ifad-contacts__grid { grid-template-columns: minmax(0, 1fr); }
}
.ifad-contacts__card {
	background: #fff;
	border: 1px solid var(--ifad-line);
	border-radius: 5px;
	padding: 30px 26px;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ifad-contacts__card:hover {
	border-color: #cfcfda;
	box-shadow: 0 10px 30px rgba(14, 14, 49, .07);
	transform: translateY(-2px);
}
.ifad-contacts__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: rgba(14, 14, 49, .06);
	color: var(--ifad-navy);
	margin-bottom: 16px;
}
.ifad-contacts__card-title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
	color: var(--ifad-navy);
}
.ifad-contacts__card-body { font-size: 15px; line-height: 1.75; color: #3d3d4a; }
.ifad-contacts__card-body p { margin: 0 0 6px; }
.ifad-contacts__card-body p:last-child { margin-bottom: 0; }
.ifad-contacts__card-body a { color: var(--ifad-navy); font-weight: 600; word-break: break-word; }
.ifad-contacts__card-body strong { color: var(--ifad-muted); font-weight: 600; }

/* ------------------------------------------------------------
   FAQ (accordion)
   ------------------------------------------------------------ */
.ifad-faq__head {
	background: var(--tint);
	border-bottom: 1px solid var(--ifad-line);
	padding: 40px 0 42px;
	text-align: center;
}
.ifad-faq__head .ifad-tech-crumbs { text-align: left; }
.ifad-faq__title {
	margin: 0;
	font-size: 34px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--ifad-navy);
}
.ifad-faq__sub {
	max-width: 760px;
	margin: 16px auto 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--ifad-muted);
}

.ifad-faq__body {
	max-width: 860px;
	padding-top: 48px;
	padding-bottom: 80px;
}
.ifad-faq__group { margin-bottom: 40px; }
.ifad-faq__group:last-child { margin-bottom: 0; }
.ifad-faq__group-title {
	position: relative;
	margin: 0 0 20px;
	padding-bottom: 12px;
	font-size: 22px;
	font-weight: 700;
	color: var(--ifad-navy);
}
.ifad-faq__group-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 42px;
	height: 3px;
	border-radius: 3px;
	background: var(--ifad-gold);
}

.ifad-faq__item {
	border: 1px solid var(--ifad-line);
	border-radius: 5px;
	margin-bottom: 12px;
	background: #fff;
	overflow: hidden;
	transition: border-color .15s, box-shadow .15s;
}
.ifad-faq__item:last-child { margin-bottom: 0; }
.ifad-faq__item.is-open,
.ifad-faq__item[open] {
	border-color: #d3d3de;
	box-shadow: 0 8px 26px rgba(14, 14, 49, .06);
}
.ifad-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	cursor: pointer;
	font-size: 16.5px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--ifad-navy);
	list-style: none;
	user-select: none;
}
.ifad-faq__q::-webkit-details-marker { display: none; }
.ifad-faq__q::marker { content: ""; }
.ifad-faq__q:hover { background: #fafafb; }
.ifad-faq__chevron {
	flex: none;
	display: inline-flex;
	color: #100d30;
	transition: transform .25s ease;
}
.ifad-faq__item.is-open .ifad-faq__chevron,
.ifad-faq__item[open] .ifad-faq__chevron { transform: rotate(180deg); }

/* Answer panel. Base = native <details> behaviour (no-JS fallback: open/close
   with no animation). When tech.js takes over it adds .ifad-faq--js and drives
   the panel height for a smooth prod-style slide (0.35s ease). */
.ifad-faq__panel { overflow: hidden; }
.ifad-faq--js .ifad-faq__panel {
	display: block;
	height: 0;
	transition: height .35s ease;
	will-change: height;
}
.ifad-faq__a {
	padding: 4px 22px 20px;
	font-size: 15.5px;
	line-height: 1.78;
	color: #3d3d4a;
}
.ifad-faq__a p { margin: 0 0 12px; }
.ifad-faq__a p:last-child { margin-bottom: 0; }
.ifad-faq__a a { color: var(--ifad-navy); font-weight: 600; }
.ifad-faq__a strong { color: var(--ifad-navy); }

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media ( max-width: 991px ) {
	.ifad-legal__body { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.ifad-legal__toc { display: none; }
	.ifad-legal__content { max-width: 820px; margin: 0 auto; }
}
@media ( max-width: 720px ) {
	.ifad-legal__title,
	.ifad-contacts__title,
	.ifad-faq__title { font-size: 28px; }
	.ifad-about__title { font-size: 30px; }
	.ifad-about__body ul { grid-template-columns: minmax(0, 1fr); }
	.ifad-about__cta-title { font-size: 24px; }
	.ifad-faq__q { padding: 16px 18px; font-size: 15.5px; }
	.ifad-faq__a { padding: 0 18px 18px; }
	.ifad-legal__head,
	.ifad-about__hero,
	.ifad-contacts__head,
	.ifad-faq__head { padding: 30px 0 32px; }
}

/* ------------------------------------------------------------
   RTL (Arabic /ar/)
   ------------------------------------------------------------ */
[dir="rtl"] .ifad-tech-crumbs .current,
[dir="rtl"] .ifad-about__hero .ifad-tech-crumbs,
[dir="rtl"] .ifad-contacts__head .ifad-tech-crumbs,
[dir="rtl"] .ifad-faq__head .ifad-tech-crumbs { text-align: right; }
[dir="rtl"] .ifad-faq__group-title::after { left: auto; right: 0; }
[dir="rtl"] .ifad-legal__toc-list {
	border-left: 0;
	border-right: 2px solid var(--ifad-line);
}
[dir="rtl"] .ifad-legal__toc-list a {
	padding: 7px 16px 7px 0;
	margin-left: 0;
	margin-right: -2px;
	border-left: 0;
	border-right: 2px solid transparent;
}
[dir="rtl"] .ifad-legal__toc-list a.is-active { border-right-color: var(--ifad-navy); }
[dir="rtl"] .ifad-legal__text ul li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .ifad-legal__text ul li::before { left: auto; right: 4px; }
[dir="rtl"] .ifad-about__h2::after { left: auto; right: 0; }
[dir="rtl"] .ifad-about__body ul li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .ifad-about__body ul li::before { left: auto; right: 0; }
