/*
 * Page-level section compositions: homepage hero, interior page hero, intro band, focus
 * panel, sectors showcase, group panel, closing CTA, About story/founder/presence,
 * service detail, contact, legal, and the 404 page.
 *
 * DEVIATION FROM PROTOTYPE (documented): every photographic surface that the prototype
 * painted with a CSS `background-image` is a real <picture>/<img> here, absolutely
 * positioned behind its content via `.media-cover`. This is what makes responsive
 * srcset/sizes, AVIF/WebP negotiation, intrinsic width/height (no layout shift) and
 * below-the-fold lazy loading possible — none of which a CSS background can do. The
 * rendered result is visually identical.
 */

.media-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.media-cover img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---- Homepage hero ---- */

.hero {
  position: relative;
  display: grid;
  min-block-size: min(860px, 100svh);
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.hero__overlay,
.hero__grid {
  position: absolute;
  inset: 0;
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(4, 18, 30, 0.98) 0%, rgba(4, 18, 30, 0.88) 36%, rgba(4, 18, 30, 0.22) 72%, rgba(4, 18, 30, 0.12) 100%),
    linear-gradient(0deg, rgba(4, 18, 30, 0.65) 0%, transparent 45%);
}

/* The scrim must darken the side the text sits on, so its angle flips with direction. */
[dir="rtl"] .hero__overlay {
  background:
    linear-gradient(270deg, rgba(4, 18, 30, 0.98) 0%, rgba(4, 18, 30, 0.88) 36%, rgba(4, 18, 30, 0.22) 72%, rgba(4, 18, 30, 0.12) 100%),
    linear-gradient(0deg, rgba(4, 18, 30, 0.65) 0%, transparent 45%);
}

.hero__grid {
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(90deg, black, transparent 75%);
}

[dir="rtl"] .hero__grid {
  mask-image: linear-gradient(270deg, black, transparent 75%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  inline-size: min(calc(100% - var(--gutter)), var(--container));
  margin-inline: auto;
  padding-block: 170px 68px;
}

.hero__content {
  max-inline-size: 790px;
}

.hero h1 {
  max-inline-size: 760px;
  color: var(--white);
}

:root[lang="ar"] .hero h1 {
  max-inline-size: 830px;
}

.hero__lead {
  max-inline-size: 660px;
  margin: 30px 0 0;
  color: #cedbe4;
  font-size: var(--text-lead);
  line-height: var(--leading-body);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-block-start: 34px;
}

.hero__facts {
  display: grid;
  max-inline-size: 900px;
  margin: clamp(4rem, 9vw, 7rem) 0 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block-start: 1px solid rgba(255, 255, 255, 0.23);
  list-style: none;
}

.hero-fact {
  padding-block-start: 22px;
  padding-inline-end: 28px;
}

.hero-fact + .hero-fact {
  padding-inline-start: 28px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-fact strong,
.hero-fact span {
  display: block;
}

.hero-fact strong {
  color: var(--white);
  font-size: 1rem;
}

.hero-fact span {
  margin-block-start: 4px;
  color: var(--muted-dark);
  font-size: var(--text-small);
}

/* ---- Interior page hero ---- */

.page-hero {
  position: relative;
  padding-block: 190px 92px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-900);
}

.page-hero::before {
  position: absolute;
  inline-size: 620px;
  block-size: 620px;
  inset-block-start: -360px;
  inset-inline-end: -140px;
  border: 120px solid rgba(105, 196, 208, 0.08);
  border-radius: 50%;
  content: "";
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  inline-size: min(calc(100% - var(--gutter)), var(--container));
  margin-inline: auto;
}

.page-hero h1 {
  max-inline-size: 880px;
  color: var(--white);
  font-size: clamp(2.8rem, 5vw, 5.2rem);
}

.page-hero__lead {
  max-inline-size: 690px;
  margin: 26px 0 0;
  color: var(--muted-dark);
  font-size: 1.14rem;
}

/* ---- Intro band ---- */

.intro-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(48px, 8vw, 110px);
  align-items: start;
}

.intro-layout__aside {
  position: sticky;
  inset-block-start: calc(var(--header-h) + var(--space-7));
}

.intro-layout__aside p {
  max-inline-size: 360px;
  margin-block-start: var(--space-6);
  color: var(--muted);
}

.intro-layout__body {
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  line-height: 1.55;
}

:root[lang="ar"] .intro-layout__body {
  line-height: 1.75;
}

.intro-layout__body strong {
  color: var(--brand-700);
  font-weight: 600;
}

.intro-layout__body .text-link {
  margin-block-start: var(--space-7);
  font-size: var(--text-body);
}

/* ---- Current-focus panel ---- */

.focus-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: var(--navy-900);
}

.focus-panel__visual {
  position: relative;
  min-block-size: 600px;
  overflow: hidden;
}

.focus-panel__visual::after {
  position: absolute;
  inset: auto 0 0;
  block-size: 36%;
  background: linear-gradient(0deg, rgba(4, 18, 30, 0.74), transparent);
  content: "";
}

.focus-panel__label {
  position: absolute;
  z-index: 1;
  inset-inline-start: 28px;
  inset-block-end: 28px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: var(--radius-sm);
  color: var(--white);
  background: rgba(7, 29, 47, 0.78);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 700;
}

.focus-panel__label::before {
  inline-size: 8px;
  block-size: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 5px rgba(105, 196, 208, 0.16);
  content: "";
}

.focus-panel__content {
  display: flex;
  min-block-size: 600px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 86px);
}

.focus-panel__content h2 {
  color: var(--white);
}

.focus-panel__content > p {
  max-inline-size: 570px;
  margin: 26px 0 0;
  color: var(--muted-dark);
  font-size: 1.08rem;
}

/* ---- Sectors showcase (feature + secondary list) ---- */

.sectors-showcase {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
}

.sector-feature {
  position: relative;
  display: flex;
  min-block-size: 510px;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-8);
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--navy-900);
}

.sector-feature__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 18, 30, 0.92) 0%, rgba(4, 18, 30, 0.2) 75%);
}

.sector-feature__content {
  position: relative;
  z-index: 1;
}

.sector-feature h3 {
  max-inline-size: 520px;
  color: var(--white);
  font-size: clamp(2rem, 3vw, 3.15rem);
}

.sector-feature p {
  max-inline-size: 550px;
  margin: var(--space-5) 0 0;
  color: #cfdae2;
}

/* ---- Sectors page focus panel ---- */

.sector-focus {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: var(--navy-900);
}

.sector-focus__content {
  display: flex;
  min-block-size: 580px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 78px);
}

.sector-focus h2 {
  color: var(--white);
}

.sector-focus__content > p {
  margin: var(--space-6) 0 0;
  color: var(--muted-dark);
}

.sector-focus__cta {
  margin-block-start: 30px;
}

.sector-focus__visual {
  position: relative;
  min-block-size: 580px;
  overflow: hidden;
}

.sector-focus__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 29, 47, 0.42), transparent);
  content: "";
}

[dir="rtl"] .sector-focus__visual::after {
  background: linear-gradient(270deg, rgba(7, 29, 47, 0.42), transparent);
}

/* ---- Group relationship panel ---- */

.group-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: var(--space-10);
  padding: clamp(42px, 7vw, 82px);
  overflow: hidden;
  border: 1px solid #cee0e7;
  border-radius: var(--radius-xl);
  background: var(--blue-wash);
}

.group-panel::after {
  position: absolute;
  inline-size: 400px;
  block-size: 400px;
  inset-block-end: -250px;
  inset-inline-end: -170px;
  border: 65px solid rgba(18, 98, 150, 0.07);
  border-radius: 50%;
  content: "";
}

.group-panel__mark {
  inline-size: 94px;
  block-size: 94px;
  color: var(--brand-600);
}

.group-panel__mark svg {
  inline-size: 100%;
  block-size: 100%;
}

.group-panel__content {
  position: relative;
  z-index: 1;
}

.group-panel__content p {
  max-inline-size: 700px;
  margin: var(--space-6) 0 28px;
  color: var(--muted);
  font-size: 1.06rem;
}

/* ---- Closing CTA ---- */

.closing-cta {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--brand-700);
}

.closing-cta::before,
.closing-cta::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  content: "";
}

.closing-cta::before {
  inline-size: 560px;
  block-size: 560px;
  inset-block-start: -360px;
  inset-inline-end: -110px;
}

.closing-cta::after {
  inline-size: 340px;
  block-size: 340px;
  inset-block-start: -240px;
  inset-inline-end: 0;
}

.closing-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--gutter);
  align-items: center;
}

.closing-cta h2 {
  max-inline-size: 760px;
  color: var(--white);
}

.closing-cta p {
  max-inline-size: 680px;
  margin: var(--space-5) 0 0;
  color: #d1e2eb;
  font-size: 1.06rem;
}

.closing-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ---- About: story + timeline ---- */

.story-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(48px, 8vw, 110px);
}

.story-copy .rich-text {
  font-size: 1.06rem;
}

/* ---- About: founder ---- */

.founder-panel {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--navy-900);
}

/*
 * Neutral portrait placeholder. Purely decorative geometry — no invented likeness — with
 * a visible caption stating an approved founder image is still required.
 */
.founder-panel__portrait {
  position: relative;
  min-block-size: 480px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(105, 196, 208, 0.22), transparent 42%),
    linear-gradient(145deg, #0d3553, #061725);
}

.founder-panel__portrait::before {
  position: absolute;
  inline-size: 250px;
  block-size: 250px;
  inset: 50% auto auto 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  content: "";
}

.founder-panel__portrait::after {
  position: absolute;
  inline-size: 150px;
  block-size: 210px;
  inset: 50% auto auto 50%;
  border-radius: 76px 76px 30px 30px;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -38%);
  content: "";
}

.founder-panel__caption {
  position: absolute;
  z-index: 2;
  inset-inline: 26px;
  inset-block-end: 24px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  color: #cbdbe5;
  background: rgba(5, 22, 36, 0.78);
  font-size: var(--text-micro);
  text-align: center;
}

.founder-panel__content {
  display: flex;
  min-block-size: 480px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 84px);
  color: var(--white);
}

.founder-panel__content h2 {
  color: var(--white);
}

.founder-panel__content .rich-text {
  max-inline-size: 680px;
  color: var(--muted-dark);
  font-size: 1.04rem;
}

.founder-panel__content .rich-text strong {
  color: var(--cyan-400);
}

/* ---- About: geographic presence ---- */

.presence-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-6);
}

/* Stylised diagram, not a map of claimed locations. */
.presence-map {
  position: relative;
  min-block-size: 470px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #dfe9ed;
}

.presence-map__grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(12, 45, 72, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 45, 72, 0.09) 1px, transparent 1px);
  background-size: 38px 38px;
}

.presence-map__rings {
  position: absolute;
  inline-size: 230px;
  block-size: 230px;
  inset: 50% auto auto 54%;
  border: 1px solid rgba(18, 98, 150, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.presence-map__rings::before,
.presence-map__rings::after {
  position: absolute;
  inset: 25%;
  border: inherit;
  border-radius: inherit;
  content: "";
}

.presence-map__rings::after {
  inset: 43%;
  background: var(--brand-600);
  box-shadow: 0 0 0 12px rgba(18, 98, 150, 0.1);
}

.presence-map__label {
  position: absolute;
  inset: calc(50% + 70px) auto auto calc(54% + 24px);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--navy-900);
  font-size: 0.8rem;
  font-weight: 700;
}

.presence-copy {
  display: flex;
  min-block-size: 470px;
  flex-direction: column;
  justify-content: center;
  padding: 46px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--navy-900);
}

.presence-copy h2 {
  color: var(--white);
}

.presence-copy p {
  margin: var(--space-6) 0 0;
  color: var(--muted-dark);
}

/* ---- Services: detailed service sections ---- */

.service-detail-list {
  display: grid;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-detail {
  display: grid;
  min-block-size: 440px;
  grid-template-columns: 0.84fr 1.16fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
}

.service-detail--reverse {
  grid-template-columns: 1.16fr 0.84fr;
}

.service-detail--reverse .service-detail__visual {
  order: 2;
}

.service-detail__visual {
  position: relative;
  display: grid;
  min-block-size: 390px;
  place-items: center;
  overflow: hidden;
  color: var(--cyan-400);
  background: var(--navy-900);
}

.service-detail__visual::before,
.service-detail__visual::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.service-detail__visual::before {
  inline-size: 340px;
  block-size: 340px;
}

.service-detail__visual::after {
  inline-size: 210px;
  block-size: 210px;
}

.service-detail__visual svg {
  position: relative;
  z-index: 1;
  inline-size: 100px;
  block-size: 100px;
  stroke-width: 1.15;
}

.service-detail__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 76px);
}

.service-detail__content > p {
  max-inline-size: 660px;
  margin: var(--space-6) 0 0;
  color: var(--muted);
}

.service-detail__points {
  display: grid;
  margin: var(--space-6) 0 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  list-style: none;
}

.service-detail__points li {
  position: relative;
  padding-inline-start: 18px;
  color: var(--ink-soft);
  font-size: 0.91rem;
}

.service-detail__points li::before {
  position: absolute;
  inline-size: 6px;
  block-size: 6px;
  inset-block-start: 0.7em;
  inset-inline-start: 0;
  border-radius: 50%;
  background: var(--cyan-400);
  content: "";
}

.service-detail__cta {
  margin-block-start: 28px;
}

/* ---- Service detail page body ---- */

.service-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

.service-body__aside {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.service-body__aside h2 {
  margin-block-end: var(--space-5);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.service-body__aside ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-body__aside a {
  display: inline-flex;
  align-items: center;
  min-block-size: 36px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.service-body__aside a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

/* ---- Contact ---- */

.contact-layout {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: var(--space-6);
  align-items: start;
}

.contact-info,
.contact-form-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
}

.contact-info {
  overflow: hidden;
}

.contact-info__top {
  padding: var(--space-8);
  color: var(--white);
  background: var(--navy-900);
}

.contact-info__top h2 {
  color: var(--white);
}

.contact-info__top p {
  margin: 18px 0 0;
  color: var(--muted-dark);
}

.contact-address {
  font-style: normal;
}

.contact-list {
  display: grid;
  margin: 0;
  padding: 10px var(--space-8);
  list-style: none;
}

.contact-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 17px;
  padding-block: var(--space-6);
  border-block-end: 1px solid var(--line);
}

.contact-item:last-child {
  border-block-end: 0;
}

.contact-item__icon {
  display: grid;
  inline-size: 38px;
  block-size: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-700);
  background: var(--blue-wash);
}

.contact-item__icon svg {
  inline-size: 18px;
  block-size: 18px;
}

.contact-item__label {
  display: block;
  margin-block-end: 5px;
  color: var(--navy-900);
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-item__value {
  display: block;
  color: var(--muted);
  font-size: 0.91rem;
}

.contact-item__value a {
  color: inherit;
  text-decoration: none;
}

.contact-item__value a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

.contact-form-shell {
  padding: clamp(34px, 5vw, 62px);
}

.contact-form-shell__header {
  margin-block-end: 34px;
}

.contact-form-shell__header p {
  margin: var(--space-4) 0 0;
  color: var(--muted);
}

/* Accessible map placeholder — a labelled diagram, not a fabricated map tile. */
.map-placeholder {
  position: relative;
  min-block-size: 420px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #dce8ec;
}

.map-placeholder::before {
  position: absolute;
  inset: 0;
  opacity: 0.65;
  background:
    linear-gradient(35deg, transparent 47%, rgba(255, 255, 255, 0.8) 48%, rgba(255, 255, 255, 0.8) 51%, transparent 52%) 0 0 / 82px 82px,
    linear-gradient(145deg, transparent 47%, rgba(255, 255, 255, 0.65) 48%, rgba(255, 255, 255, 0.65) 51%, transparent 52%) 0 0 / 118px 118px;
  content: "";
}

.map-pin {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  inline-size: 70px;
  block-size: 70px;
  place-items: center;
  border: 8px solid rgba(255, 255, 255, 0.82);
  border-radius: 50% 50% 50% 0;
  color: var(--white);
  background: var(--brand-700);
  box-shadow: var(--shadow-md);
  transform: translate(-50%, -70%) rotate(-45deg);
}

.map-pin svg {
  inline-size: 25px;
  block-size: 25px;
  transform: rotate(45deg);
}

.map-label {
  position: absolute;
  inset: calc(50% + 42px) auto auto 50%;
  inline-size: min(360px, calc(100% - 40px));
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--navy-900);
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
  text-align: center;
  transform: translateX(-50%);
}

/* ---- Legal pages ---- */

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, var(--reading));
  gap: clamp(50px, 8vw, 100px);
  justify-content: center;
  align-items: start;
}

.legal-toc {
  position: sticky;
  inset-block-start: calc(var(--header-h) + var(--space-7));
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.legal-toc h2 {
  margin-block-end: 18px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
}

.legal-toc ol {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: legal;
}

.legal-toc li {
  counter-increment: legal;
}

.legal-toc a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: var(--space-2);
  align-items: baseline;
  min-block-size: 32px;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.legal-toc a::before {
  color: var(--brand-600);
  font-size: 0.68rem;
  font-weight: 700;
  content: counter(legal, decimal-leading-zero);
  direction: ltr;
  unicode-bidi: isolate;
}

.legal-toc a:hover,
.legal-toc a[aria-current="true"] {
  color: var(--brand-700);
  text-decoration: underline;
}

.legal-content {
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.legal-notice {
  margin-block-end: var(--space-9);
  padding: 18px 20px;
  border-inline-start: 3px solid var(--warning-line);
  border-radius: var(--radius-sm);
  color: var(--warning);
  background: var(--warning-soft);
  font-size: 0.9rem;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-block-end: var(--space-8);
  padding-block-end: var(--space-6);
  border-block-end: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.legal-section {
  scroll-margin-block-start: calc(var(--header-h) + var(--space-8));
}

.legal-section + .legal-section {
  margin-block-start: 46px;
  padding-block-start: var(--space-9);
  border-block-start: 1px solid var(--line);
}

.legal-section > h2 {
  margin-block-end: 18px;
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0;
}

.legal-section__index {
  color: var(--brand-600);
  direction: ltr;
  unicode-bidi: isolate;
}

.legal-placeholder {
  padding: 18px;
  border: 1px dashed #b9c9d0;
  border-radius: var(--radius-sm);
  background: var(--off-white);
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-contact-action {
  margin-block-start: var(--space-8);
  padding-block-start: var(--space-6);
  border-block-start: 1px solid var(--line);
}

/* ---- 404 ---- */

.not-found {
  display: grid;
  place-items: center;
  min-block-size: 62vh;
  padding-block: var(--section);
  text-align: center;
}

.not-found__code {
  display: block;
  margin-block-end: var(--space-4);
  color: var(--brand-500);
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
  direction: ltr;
  unicode-bidi: isolate;
}

.not-found p {
  max-inline-size: 52ch;
  margin: var(--space-6) auto 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-block-start: var(--space-8);
}

.not-found__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
  margin: var(--space-9) 0 0;
  padding: 0;
  list-style: none;
}
