/* ============================================================
   Static pages — Privacy Policy / Terms & Conditions / About Us
   Follows the site tokens: brand green, dark green, Tajawal + IBM Plex
   ============================================================ */

:root {
  --static-brand-green: rgba(85, 107, 47, 1);
  --static-brand-dark: #14240f;
  --static-ink: #2b2f2b;
  --static-muted: #66705f;
  --static-field-bg: #f4f6f0;
  --static-ibm: "IBM Plex Sans Arabic", sans-serif;
  --static-tajawal: "Tajawal", sans-serif;
}

/* ---------- Hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(720px 320px at 85% -10%, rgba(211, 227, 166, 0.18), transparent 60%),
    radial-gradient(520px 260px at -5% 110%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(160deg, #14240f 0%, #2c4019 55%, rgba(85, 107, 47, 1) 100%);
  padding: 56px 0 64px;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -90px;
  top: -110px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 36px rgba(255, 255, 255, 0.04),
    0 0 0 72px rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.page-breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-breadcrumb a:hover {
  color: #fff;
}

.page-breadcrumb-sep {
  width: 14px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.page-breadcrumb-current {
  color: #d3e3a6;
}

.page-hero-title {
  margin: 0;
  font-family: var(--static-tajawal);
  font-weight: 800;
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.page-hero-accent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.page-hero-accent-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d3e3a6;
  box-shadow: 0 0 0 5px rgba(211, 227, 166, 0.22);
  flex-shrink: 0;
}

.page-hero-accent::after {
  content: "";
  height: 2px;
  width: 140px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(211, 227, 166, 0.85), transparent);
}

/* ---------- Body ---------- */
.page-body {
  padding: 48px 0 72px;
  background: #fff;
}

.static-content {
  max-width: 46rem;
  margin-inline: auto;
  color: var(--static-ink);
  font-family: var(--static-ibm);
  font-size: 16px;
  line-height: 1.95;
}

.static-content h1,
.static-content h2,
.static-content h3,
.static-content h4,
.static-content h5,
.static-content h6 {
  font-family: var(--static-tajawal);
  color: var(--static-brand-dark);
  line-height: 1.35;
  font-weight: 700;
}

.static-content h1 {
  font-size: 1.75rem;
  margin: 0 0 1.25em;
}

.static-content h2 {
  font-size: 1.5rem;
  margin: 2.25em 0 0.85em;
  padding-bottom: 0.45em;
  border-bottom: 2px solid rgba(85, 107, 47, 0.14);
}

.static-content h3 {
  font-size: 1.18rem;
  margin: 1.8em 0 0.6em;
}

.static-content h4 {
  font-size: 1.05rem;
  margin: 1.5em 0 0.5em;
}

.static-content p {
  margin: 0 0 1.25em;
}

.static-content a {
  color: var(--static-brand-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.static-content a:hover {
  color: #33401c;
}

.static-content ul,
.static-content ol {
  margin: 0 0 1.5em;
  padding-inline-start: 1.5rem;
}

.static-content li {
  margin-block: 0.45em;
}

.static-content li::marker {
  color: var(--static-brand-green);
}

.static-content strong {
  font-weight: 700;
}

.static-content blockquote {
  margin: 1.75em 0;
  padding: 1em 1.25em;
  background: var(--static-field-bg);
  border-inline-start: 3px solid var(--static-brand-green);
  border-start-start-radius: 10px;
  border-end-start-radius: 10px;
  color: var(--static-muted);
}

.static-content blockquote p:last-child {
  margin-bottom: 0;
}

.static-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5em auto;
  display: block;
}

.static-content table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-size: 0.95em;
}

.static-content th,
.static-content td {
  border: 1px solid rgba(20, 36, 15, 0.12);
  padding: 0.6em 0.8em;
  text-align: start;
}

.static-content th {
  background: var(--static-field-bg);
  color: var(--static-brand-dark);
  font-family: var(--static-tajawal);
  font-weight: 700;
}

.static-content hr {
  border: 0;
  height: 1px;
  margin: 2.5em 0;
  background: rgba(20, 36, 15, 0.12);
}

.static-content ::selection {
  background: rgba(85, 107, 47, 0.18);
}

/* ---------- Empty state ---------- */
.static-content-empty {
  max-width: 46rem;
  margin-inline: auto;
  padding: 56px 24px;
  text-align: center;
  color: var(--static-muted);
  background: var(--static-field-bg);
  border: 1px dashed rgba(85, 107, 47, 0.3);
  border-radius: 16px;
}

.static-content-empty-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  font-size: 22px;
  color: var(--static-brand-green);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(85, 107, 47, 0.12);
}

.static-content-empty p {
  margin: 0;
  font-size: 15px;
}

/* ---------- Footer (matches the rest of the site) ---------- */
.footer {
  background: var(--static-brand-dark);
  color: #d8dfd3;
  padding: 28px 0;
  margin-top: 32px;
  position: relative;
  min-height: 220px;
}

.footer .social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer .social a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  text-decoration: none;
}

.footer .social img {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}

.footer-logo {
  width: 113px;
  height: 113px;
  border-radius: 16px;
  overflow: hidden;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  opacity: 0.8;
  margin-top: 44px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .page-hero-title,
  .page-hero-accent {
    animation: static-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .page-hero-accent {
    animation-delay: 0.08s;
  }

  @keyframes static-rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ---------- Accessibility ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 576px) {
  .page-hero {
    padding: 44px 0 52px;
  }

  .page-body {
    padding: 36px 0 56px;
  }

  .static-content {
    font-size: 15px;
  }
}
