/* Tilal Lead — components for the multi-page site: the shared header and footer, the home and
   WhatsApp receptionist pages, and the legal pages. Loaded after styles.css, which it builds on. */

/* ---------- Header: the current page in the menu ---------- */
.nav a[aria-current="page"] {
  color: #fff;
}

@media (min-width: 1081px) {
  .nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    inset-inline: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--leaf);
  }
}

/* Pages that start on a light background keep a solid header from the top. */
body:has(.legal-page) .header {
  background: rgba(6, 16, 10, 0.94);
  box-shadow: 0 1px 0 var(--line);
}

/* ---------- Footer ---------- */
.footer__top--site {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr) minmax(0, 0.75fr) minmax(0, 1fr) minmax(0, 1.3fr);
}

.verify-card__text b.verify-card__en {
  justify-self: start;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0;
}

.verify-card--static .verify-card__text b:not(.verify-card__en) {
  font-size: 1rem;
}

.footer__bottom .footer__tm {
  color: var(--on-dark-3);
  font-size: 0.82rem;
}

/* ---------- Hero: soft light instead of the grid ---------- */
.hero__grid {
  display: none;
}

/* a wide beam of light from the top */
.hero__bg::before {
  content: "";
  position: absolute;
  top: -35%;
  left: 50%;
  width: min(1200px, 100%);
  height: 100%;
  background: radial-gradient(ellipse 38% 62% at 50% 0%, rgba(180, 240, 203, 0.17), transparent 72%);
  transform: translateX(-50%);
}

.hero__glow {
  inset: -25% -15% 5%;
  background:
    radial-gradient(closest-side at 26% 36%, rgba(63, 174, 108, 0.42), transparent 72%),
    radial-gradient(closest-side at 74% 18%, rgba(143, 227, 176, 0.18), transparent 70%),
    radial-gradient(closest-side at 52% 96%, rgba(47, 154, 93, 0.22), transparent 70%);
  animation: hero-light 12s ease-in-out infinite alternate;
}

@keyframes hero-light {
  from { opacity: 0.82; transform: translate3d(-1.5%, 0, 0) scale(1); }
  to { opacity: 1; transform: translate3d(1.5%, -2%, 0) scale(1.06); }
}

/* ---------- Hero: the AI receptionist on a phone ---------- */
.agent-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: 18px 0 10px;
}

/* light behind the phone */
.agent-stage::before {
  content: "";
  position: absolute;
  inset: 6% 16% 2%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(63, 174, 108, 0.5), rgba(63, 174, 108, 0.14) 62%, transparent);
  filter: blur(34px);
}

.phone.phone--agent {
  position: relative;
  inset: auto;
  width: min(56%, 268px);
  margin-inline: auto;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(145deg, #4a5a50, #18211c 30%, #0a0f0c 60%, #34433a);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
    inset 0 0 0 4px #050806,
    0 0 0 1px rgba(143, 227, 176, 0.1),
    0 50px 90px -34px rgba(0, 0, 0, 0.8),
    0 24px 110px -30px rgba(63, 174, 108, 0.55);
}

/* side buttons: power on one side, volume on the other */
.phone.phone--agent::before,
.phone.phone--agent::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #3b4a41, #1b241f);
}

.phone.phone--agent::before {
  top: 24%;
  inset-inline-end: -3px;
  height: 13%;
}

.phone.phone--agent::after {
  top: 17%;
  inset-inline-start: -3px;
  height: 6%;
  box-shadow: 0 54px 0 #2a362f;
}

.phone--agent .phone__screen {
  border-radius: 38px;
}

/* a faint glass reflection over the screen */
.phone--agent .phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.07), transparent 32%, transparent 70%, rgba(255, 255, 255, 0.03));
  pointer-events: none;
}

.phone--agent .phone__notch {
  top: 1.6%;
  width: 31%;
  height: 3.9%;
  background: #000;
}

.agent-chip {
  max-width: 172px;
  font-size: 0.84rem;
  line-height: 1.35;
  white-space: normal;
}

.agent-chip .pulse,
.agent-chip svg {
  flex: none;
}

/* Beside the phone, never over its screen: half the phone is 134px wide and its frame 9px. */
.agent-chip--a {
  top: 15%;
  inset-inline-end: calc(50% + 128px);
}

.agent-chip--b {
  top: 46%;
  inset-inline-start: calc(50% + 128px);
  animation-delay: -2s;
}

.agent-chip--c {
  top: 73%;
  inset-inline-end: calc(50% + 128px);
  animation-delay: -4s;
}

.agent-note {
  margin: 0;
  color: var(--on-dark-3);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- The WhatsApp screen inside the phone (drawn by js/agent.js) ---------- */
.chat__avatar--letter {
  background: linear-gradient(145deg, #dcbd7e, #a8843f);
  box-shadow: none;
  color: #1a1406;
  font-size: 16px;
  font-weight: 700;
}

.chat--agent .chat__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 26px 3px;
  background: #1f2c34;
  color: #e9edef;
  font-size: 12.5px;
  direction: ltr;
}

.chat--agent .chat__status b {
  font-weight: 600;
}

.chat--agent .chat__status span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat--agent .chat__status svg {
  width: auto;
  height: 10px;
}

.chat--agent .chat__head {
  gap: 8px;
  padding: 9px 10px 10px;
}

.chat--agent .chat__avatar {
  flex: none;
  width: 36px;
  height: 36px;
}

.chat--agent .chat__who {
  min-width: 0;
}

.chat--agent .chat__who b {
  overflow: hidden;
  font-size: 14.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat__back,
.chat__tools {
  display: flex;
  flex: none;
  align-items: center;
  color: #aebac1;
}

.chat__back svg {
  width: 18px;
  height: 18px;
}

/* the sprite arrow points left; "back" points right in Arabic */
[dir="rtl"] .chat__back svg {
  transform: scaleX(-1);
}

.chat__tools {
  gap: 15px;
  margin-inline-start: auto;
  padding-inline-end: 4px;
}

.chat__tools svg {
  width: 19px;
  height: 19px;
}

/* messages stack from the bottom, like a real chat */
.chat--agent .chat__body {
  justify-content: flex-end;
  gap: 6px;
  overflow: hidden;
  padding: 10px 9px 6px;
}

.chat__day {
  align-self: center;
  margin-bottom: 2px;
  padding: 4px 11px;
  border-radius: 8px;
  background: #182229;
  color: rgba(233, 237, 239, 0.72);
  font-size: 11px;
}

.chat--agent .bubble {
  max-width: 84%;
  font-size: 12.6px;
  line-height: 1.5;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.25);
}

.chat__input {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px 16px;
  background: #0b141a;
}

.chat__field {
  display: flex;
  flex: 1;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  background: #1f2c34;
  color: rgba(233, 237, 239, 0.45);
  font-size: 13px;
}

.chat__mic {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #00a884;
  color: #fff;
}

.chat__mic svg {
  width: 17px;
  height: 17px;
}

/* ---------- Two services ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.svc {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: 28px;
}

.svc--agent {
  background: radial-gradient(460px 280px at 90% 0%, rgba(63, 174, 108, 0.38), transparent 62%), linear-gradient(160deg, #0f2a1b, #071a10);
  color: var(--on-dark);
}

.svc--site {
  border: 1px solid rgba(13, 25, 18, 0.07);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}

.svc__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.svc__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(95, 207, 142, 0.16);
  color: var(--mint);
}

.svc--site .svc__icon {
  background: linear-gradient(145deg, #e3f5ea, #cdebd8);
  color: var(--green-3);
}

.svc__icon svg {
  width: 26px;
  height: 26px;
}

.svc__tag {
  padding: 6px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--on-dark-2);
  font-size: 0.85rem;
  font-weight: 600;
}

.svc--site .svc__tag {
  border-color: rgba(13, 25, 18, 0.12);
  color: var(--ink-3);
}

.svc h3 {
  margin: 8px 0 0;
  font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.75rem);
}

.svc > p {
  margin: 0;
  color: var(--on-dark-2);
  font-size: 1.05rem;
}

.svc--site > p {
  color: var(--ink-2);
}

.svc .ticks {
  margin: 6px 0 12px;
}

.svc .btn {
  align-self: flex-start;
  margin-top: auto;
}

.ticks--light {
  color: var(--ink-2);
}

.svc-extra {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
  color: var(--ink-2);
  text-align: center;
}

.svc-extra svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--green-3);
}

.section__cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* A dropdown sizes itself to its longest option; keep it inside the form on small screens. */
.field {
  grid-template-columns: minmax(0, 1fr);
}

.field select {
  min-width: 0;
  max-width: 100%;
}

.ticks--light li::before {
  background: rgba(63, 174, 108, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231f7a47' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.btn--dark:hover .flip,
.btn--primary:hover .flip {
  transform: translateX(-4px);
}

[dir="ltr"] .btn--dark:hover .flip,
[dir="ltr"] .btn--primary:hover .flip {
  transform: scaleX(-1) translateX(-4px);
}

/* ---------- Feature grid (hairline cells on a dark section) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--line);
  list-style: none;
}

.feature {
  padding: clamp(26px, 3vw, 38px) clamp(22px, 2.6vw, 32px);
  background: #08170f;
  text-align: center;
  transition: background-color 0.3s ease;
}

.feature:hover {
  background: #0b1f14;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: rgba(95, 207, 142, 0.12);
  color: var(--mint);
}

.feature__icon svg {
  width: 25px;
  height: 25px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.feature p {
  max-width: 32ch;
  margin: 0 auto;
  color: var(--on-dark-2);
}

/* ---------- Results ---------- */
.results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.result {
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid rgba(13, 25, 18, 0.06);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.result__icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: linear-gradient(145deg, #e3f5ea, #cdebd8);
  color: var(--green-3);
}

.result__icon svg {
  width: 30px;
  height: 30px;
}

.result h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.result p {
  margin: 0;
  color: var(--ink-2);
}

/* ---------- About: the company's registered details ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.about__copy h2 {
  margin-bottom: 18px;
}

.about__copy p:not(.eyebrow) {
  color: var(--on-dark-2);
  font-size: 1.08rem;
}

.facts {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(143, 227, 176, 0.22);
  border-radius: 24px;
  background: radial-gradient(520px 240px at 90% 0%, rgba(63, 174, 108, 0.16), transparent 70%), linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.facts > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 6px 18px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.facts > div:last-child {
  border-bottom: 0;
}

.facts dt {
  color: var(--on-dark-3);
  font-size: 0.92rem;
}

.facts dd {
  margin: 0;
  color: var(--on-dark);
  font-weight: 600;
}

.facts a {
  color: var(--mint);
  text-decoration: none;
}

.facts a:hover {
  text-decoration: underline;
}

.facts small {
  margin-inline-start: 6px;
  color: var(--on-dark-3);
  font-weight: 500;
}

.facts__en {
  display: block;
  margin-top: 2px;
  color: var(--on-dark-2);
  font-size: 0.93rem;
  font-weight: 500;
}

[dir="rtl"] .facts__en {
  text-align: right;
}

/* ---------- Dashboard illustration ---------- */
.dash-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.dash__copy h2 {
  margin-bottom: 16px;
}

.dash__copy > p:not(.eyebrow) {
  margin-bottom: 26px;
  color: var(--on-dark-2);
  font-size: 1.08rem;
}

.dash-host {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.dash {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: #0b1a12;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.65);
  font-size: 0.9rem;
}

.dash__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--on-dark-2);
}

.dash__bar b {
  font-weight: 600;
}

.dash__dots {
  display: flex;
  gap: 6px;
}

.dash__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.dash__body {
  display: grid;
  grid-template-columns: 58px minmax(0, 1.15fr) minmax(0, 1fr);
  min-height: 330px;
}

.dash__side {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 12px;
  padding: 16px 0;
  border-inline-end: 1px solid var(--line);
}

.dash__side i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--on-dark-3);
}

.dash__side i.is-on {
  background: rgba(95, 207, 142, 0.16);
  color: var(--mint);
}

.dash__side svg {
  width: 18px;
  height: 18px;
}

.dash__col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 9px;
  padding: 16px;
}

.dash__col + .dash__col {
  border-inline-start: 1px solid var(--line);
}

.dash__col h4 {
  margin: 0 0 4px;
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
}

.dash__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  animation: pop 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: var(--d, 0s);
}

.dash__av {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--av, #2a3942);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.dash__av svg {
  width: 17px;
  height: 17px;
}

.dash__txt {
  flex: 1;
  min-width: 0;
}

.dash__txt b {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 0.86rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dash__txt span {
  display: block;
  overflow: hidden;
  color: var(--on-dark-3);
  font-size: 0.8rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dash__tag {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(95, 207, 142, 0.16);
  color: var(--mint);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.dash__tag--alt {
  background: rgba(240, 198, 107, 0.16);
  color: var(--gold);
}

.dash__time {
  flex: none;
  min-width: 44px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  direction: ltr;
}

/* ---------- Responsible AI rules ---------- */
.rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule {
  display: flex;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.rule__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(95, 207, 142, 0.14);
  color: var(--mint);
}

.rule__icon svg {
  width: 24px;
  height: 24px;
}

.rule h3 {
  margin: 2px 0 6px;
  font-size: 1.1rem;
}

.rule p {
  margin: 0;
  color: var(--on-dark-2);
  font-size: 0.98rem;
}

.rules__more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 36px 0 0;
  color: var(--on-dark-3);
}

.rules__more a {
  color: var(--mint);
  font-weight: 600;
  text-decoration: none;
}

.rules__more a:hover {
  text-decoration: underline;
}

/* ---------- Call-to-action band ---------- */
.cta-section {
  padding: 100px 0 110px;
  background: var(--mist);
}

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(44px, 6vw, 76px) clamp(24px, 5vw, 56px);
  border-radius: 32px;
  background:
    radial-gradient(640px 320px at 88% 0%, rgba(240, 160, 110, 0.32), transparent 62%),
    radial-gradient(640px 340px at 8% 100%, rgba(63, 174, 108, 0.5), transparent 62%),
    linear-gradient(135deg, #0f4029, #07190f 55%, #0b2638);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  max-width: 20ch;
  margin: 0;
}

.cta-band p {
  max-width: 46ch;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta-band__hills {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: -1;
  width: 100%;
  height: 55%;
}

.cta-band__hills path:first-child {
  fill: rgba(255, 255, 255, 0.05);
}

.cta-band__hills path:last-child {
  fill: rgba(0, 0, 0, 0.16);
}

/* ---------- Websites page: link to the WhatsApp receptionist from the extras ---------- */
.extras__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn--glass-dark {
  border: 1px solid rgba(13, 25, 18, 0.16);
  background: transparent;
  color: var(--ink);
}

.btn--glass-dark:hover {
  background: rgba(13, 25, 18, 0.05);
}

/* ---------- Legal pages: Arabic and English versions of the same text ---------- */
html.js[lang="ar"] [data-lang-block="en"],
html.js[lang="en"] [data-lang-block="ar"] {
  display: none;
}

.legal-page {
  padding: calc(var(--header-h) + 56px) 0 110px;
  background: var(--paper);
  color: var(--ink);
}

.legal {
  max-width: 780px;
  margin-inline: auto;
}

/* Without scripts both versions show, one after the other. */
.legal + .legal {
  margin-top: 72px;
  padding-top: 72px;
  border-top: 1px solid rgba(13, 25, 18, 0.1);
}

.legal__head {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(13, 25, 18, 0.08);
}

.legal__head h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem);
}

.legal__meta {
  margin: 0 0 16px;
  color: var(--ink-3);
  font-size: 0.95rem;
}

.legal__intro {
  margin: 0;
  color: var(--ink-2);
  font-size: 1.1rem;
}

.legal__toc {
  margin: 0 0 40px;
  padding: 22px 26px;
  border: 1px solid rgba(13, 25, 18, 0.06);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.legal__toc ol {
  margin: 0;
  padding-inline-start: 1.2em;
  columns: 2;
  column-gap: 36px;
}

.legal__toc li {
  margin: 4px 0;
  break-inside: avoid;
}

.legal section {
  margin-bottom: 36px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.legal h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.legal h3 {
  margin: 20px 0 8px;
  font-size: 1.1rem;
}

.legal p,
.legal li {
  color: var(--ink-2);
  line-height: 1.85;
}

.legal ul,
.legal ol {
  padding-inline-start: 1.3em;
}

.legal li + li {
  margin-top: 4px;
}

.legal a {
  color: var(--green-3);
  font-weight: 600;
}

.legal strong {
  color: var(--ink);
}

.legal table {
  width: 100%;
  margin: 12px 0 20px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal th,
.legal td {
  padding: 10px 12px;
  border: 1px solid rgba(13, 25, 18, 0.1);
  text-align: start;
  vertical-align: top;
}

.legal th {
  background: var(--mist);
  color: var(--ink);
}

.legal__contact {
  margin-top: 48px;
  padding: 28px 30px;
  border-radius: 22px;
  background: radial-gradient(500px 240px at 0% 0%, rgba(143, 227, 176, 0.3), transparent 60%), linear-gradient(135deg, #1f7a47, #0f4a2a);
  color: #fff;
}

.legal__contact h2 {
  color: #fff;
}

.legal__contact p,
.legal__contact li {
  color: rgba(255, 255, 255, 0.86);
}

.legal__contact a {
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__glow {
    animation: none;
  }
}

@media (max-width: 1200px) {
  .agent-chip {
    max-width: 140px;
    font-size: 0.78rem;
  }
}

@media (max-width: 1100px) {
  .footer__top--site {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__top--site .footer__brand,
  .footer__top--site .footer__verify {
    grid-column: span 3;
  }

  .footer__top--site .footer__verify {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__top--site .footer__verify h3 {
    grid-column: 1 / -1;
  }

  .rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  /* minmax(0, …) so long one-line text can't widen a column past the screen */
  .svc-grid,
  .about,
  .dash-wrap,
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin-inline: auto;
  }

  .dash-host {
    width: 100%;
    max-width: 680px;
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .rules {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 72px 0 88px;
  }
}

@media (max-width: 640px) {
  .features {
    grid-template-columns: 1fr;
  }

  .phone.phone--agent {
    width: min(76%, 270px);
  }

  /* no room beside the phone on small screens */
  .agent-chip {
    display: none;
  }

  /* long button labels wrap instead of widening the page */
  .btn {
    white-space: normal;
    text-align: center;
  }

  .facts > div {
    grid-template-columns: 1fr;
  }

  .dash__body {
    grid-template-columns: 1fr;
  }

  .dash__side {
    display: none;
  }

  .dash__col + .dash__col {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .footer__top--site {
    grid-template-columns: 1fr;
  }

  .footer__top--site .footer__brand,
  .footer__top--site .footer__verify {
    grid-column: auto;
  }

  .footer__top--site .footer__verify {
    grid-template-columns: 1fr;
  }

  .legal__toc ol {
    columns: 1;
  }

  .cta-band__actions .btn {
    flex: 1 1 100%;
  }
}
