/**
 * Complaints policy — Ajman · isolated (#22/#26)
 * Golden Master parity with uae-lawyer complaints-page.css
 * Tokens: navy #0b1f33 · gold #c9a84c · local Tajawal / Inter.
 */
body[data-page="complaints-policy"] .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="complaints-policy"] .site-main {
  font-family: "Inter", system-ui, sans-serif;
}

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

.cp-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;
}
.cp-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}
.cp-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%);
}
.cp-hero__inner {
  position: relative;
  z-index: 2;
  padding: 48px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cp-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);
}
.cp-crumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}
.cp-crumb a:hover { color: #c9a84c; }
.cp-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;
}
.cp-hero__line {
  display: block;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .cp-hero h1 {
    display: block;
    max-width: 100%;
  }
  .cp-hero__line {
    display: inline;
    white-space: normal;
  }
}
.cp-hero__rule {
  display: block;
  width: 64px;
  height: 3px;
  margin: 14px auto 18px;
  background: #c9a84c;
  border-radius: 2px;
}
.cp-hero__lede {
  margin: 0;
  max-width: 42em;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  line-height: 1.8;
}

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

.cp-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 4px;
  font-weight: 700;
  line-height: 1.6;
}
.cp-alert--ok {
  background: #f4faf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.cp-alert--err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.cp-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cp-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #0b1f33;
  font-size: 0.92rem;
  font-weight: 700;
}
.cp-form__full { grid-column: 1 / -1; }
.cp-form input,
.cp-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #d9d4c6;
  border-radius: 4px;
  background: #fff;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
}
.cp-form textarea { resize: vertical; min-height: 140px; }
.cp-form input:focus,
.cp-form textarea:focus {
  outline: 2px solid rgba(201, 168, 76, 0.45);
  border-color: #c9a84c;
  background: #fff;
}
.cp-hp {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.cp-btn {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid #c9a84c;
  border-radius: 2px;
  background: #c9a84c;
  color: #0b1f33;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cp-btn:hover {
  background: #0b1f33;
  color: #fff;
  border-color: #0b1f33;
}

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

@media (max-width: 720px) {
  .cp-wrap {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding: 16px;
    box-sizing: border-box;
  }
  .cp-body .cp-wrap {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding: 56px 16px;
  }
  .cp-hero { min-height: 260px; }
  .cp-hero .cp-wrap,
  .cp-hero__inner {
    width: 100%;
    max-width: 100%;
    padding: 28px 16px 24px;
    box-sizing: border-box;
  }
  .cp-hero h1,
  .cp-hero__lede { max-width: 100%; }
  .cp-block {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding: 16px;
    box-sizing: border-box;
  }
  .cp-block + .cp-block { margin-top: 16px; }
  .cp-block h2 { font-size: 1.12rem; }
  .cp-form { grid-template-columns: 1fr; }
  .cp-btn { width: 100%; }
}
