/**
 * Terms & conditions — Ajman · isolated (#22/#26)
 * Golden Master parity with uae-lawyer terms-page.css
 * Tokens: navy #0b1f33 · gold #c9a84c · local Tajawal / Inter.
 */
body[data-page="terms-conditions"] .site-main {
  font-family: "Tajawal", system-ui, sans-serif;
  background: #fff;
  color: #1a1a1a;
  max-width: 100%;
  overflow-x: hidden;
}
html[lang="en"] body[data-page="terms-conditions"] .site-main {
  font-family: "Inter", system-ui, sans-serif;
}

.tm-page {
  background: #fff;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.tm-wrap {
  width: min(100% - 48px, 920px);
  margin-inline: auto;
  padding: 24px 0;
  box-sizing: border-box;
}

.tm-hero {
  position: relative;
  isolation: isolate;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b1f33;
  overflow: hidden;
  border-bottom: 3px solid #c9a84c;
}
.tm-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}
.tm-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 21, 34, 0.58) 0%, rgba(7, 21, 34, 0.8) 100%),
    linear-gradient(90deg, rgba(201, 168, 76, 0.32) 0%, rgba(201, 168, 76, 0.1) 55%, rgba(7, 21, 34, 0.4) 100%);
}
.tm-hero__inner {
  position: relative;
  z-index: 2;
  padding: 48px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.tm-crumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}
.tm-crumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}
.tm-crumb a:hover { color: #c9a84c; }
.tm-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 800;
  line-height: 1.5;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
}
.tm-hero__line {
  display: block;
  white-space: nowrap;
}
/* Mobile: one flowing title (no forced two-line split) */
@media (max-width: 720px) {
  .tm-hero h1 {
    display: block;
    max-width: 100%;
  }
  .tm-hero__line {
    display: inline;
    white-space: normal;
  }
}
.tm-hero__rule {
  display: block;
  width: 64px;
  height: 3px;
  margin: 14px auto 18px;
  background: #c9a84c;
  border-radius: 2px;
}
.tm-hero__lede {
  margin: 0;
  max-width: 42em;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  line-height: 1.8;
}

.tm-body {
  background: #fff;
}
.tm-block {
  background: #fff;
  border: 1px solid #e8e4d8;
  border-radius: 4px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(11, 31, 51, 0.05);
}
.tm-block + .tm-block {
  margin-top: 24px;
}
.tm-block h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #c9a84c;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.4;
}
.tm-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tm-block li {
  position: relative;
  padding-inline-start: 1.15em;
  color: #333;
  font-size: 1.02rem;
  line-height: 1.85;
}
.tm-block li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9a84c;
}
.tm-block a {
  color: #0b1f33;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #c9a84c;
}
.tm-block a:hover { color: #c9a84c; }

.tm-cta {
  margin-top: 2rem;
  padding: 1.35rem 1.2rem;
  background: #f2f0e8;
  border-inline-start: 4px solid #c9a84c;
  text-align: center;
}
.tm-cta p {
  margin: 0 0 1rem;
  color: #0b1f33;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.55;
}
.tm-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}
.tm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tm-btn--gold {
  background: #c9a84c;
  color: #0b1f33;
  border-color: #c9a84c;
}
.tm-btn--gold:hover {
  background: #0b1f33;
  color: #fff;
  border-color: #0b1f33;
}
.tm-btn--ghost {
  background: transparent;
  color: #0b1f33;
  border-color: #0b1f33;
}
.tm-btn--ghost:hover {
  background: #0b1f33;
  color: #fff;
}

@media (min-width: 721px) {
  .tm-body .tm-wrap {
    padding-top: 74px;
    padding-bottom: 74px;
  }
}

@media (max-width: 720px) {
  .tm-wrap {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding: 16px;
    box-sizing: border-box;
  }
  .tm-body .tm-wrap {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding: 56px 16px;
  }
  .tm-hero { min-height: 260px; }
  .tm-hero .tm-wrap,
  .tm-hero__inner {
    width: 100%;
    max-width: 100%;
    padding: 28px 16px 24px;
    box-sizing: border-box;
  }
  .tm-hero h1,
  .tm-hero__lede { max-width: 100%; }
  .tm-block {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding: 16px;
    box-sizing: border-box;
  }
  .tm-block + .tm-block {
    margin-top: 16px;
  }
  .tm-block h2 { font-size: 1.12rem; }
  .tm-cta__actions { flex-direction: column; align-items: stretch; }
  .tm-btn { width: 100%; }
}
