/* ==========================================================================
   Hafawa AI — Sub-page styles (Privacy, Terms, 404)
   Typography-heavy with generous spacing.
   ========================================================================== */

.page-hero {
  background: linear-gradient(180deg, var(--ls-bg-2) 0%, var(--ls-bg) 100%);
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--ls-line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 20% 0%, rgba(176,136,79,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; text-align: center; }
.page-breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--ls-text-3);
  margin-bottom: 16px;
}
.page-breadcrumb a { color: var(--ls-gold-2); font-weight: 600; }
.page-breadcrumb a:hover { color: var(--ls-gold); }
.page-breadcrumb i { font-size: 10px; color: var(--ls-text-4); }
.page-title {
  font-family: var(--ls-font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.page-subtitle {
  font-size: 16px;
  color: var(--ls-text-3);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}
.page-meta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--ls-line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ls-text-4);
}
.page-meta i { color: var(--ls-gold); }

/* Body of legal/info page */
.page-body {
  padding: 64px 0 96px;
}
.page-content {
  max-width: 820px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--ls-line);
  border-radius: 20px;
  padding: 56px;
  box-shadow: var(--ls-shadow-sm);
}
.page-content h2 {
  font-family: var(--ls-font-display);
  font-size: 28px;
  font-weight: 600;
  margin: 40px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ls-line);
  color: var(--ls-text);
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 {
  font-family: var(--ls-font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--ls-text);
}
.page-content p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ls-text-2);
  margin-bottom: 16px;
}
.page-content ul, .page-content ol {
  margin: 14px 0 22px;
  padding-inline-start: 8px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.page-content ul li, .page-content ol li {
  position: relative;
  padding-inline-start: 26px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ls-text-2);
}
.page-content ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 6px; top: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ls-gold);
}
.page-content ol { counter-reset: ol; }
.page-content ol li { counter-increment: ol; }
.page-content ol li::before {
  content: counter(ol);
  position: absolute;
  inset-inline-start: 0; top: 1px;
  width: 20px; height: 20px;
  background: var(--ls-gold-soft);
  color: var(--ls-gold-2);
  border-radius: 50%;
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.page-content a {
  color: var(--ls-gold-2);
  font-weight: 600;
  border-bottom: 1px solid var(--ls-gold-soft);
  transition: all .15s;
}
.page-content a:hover {
  color: var(--ls-gold);
  border-bottom-color: var(--ls-gold);
}
.page-content strong { color: var(--ls-text); font-weight: 700; }
.page-content blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--ls-bg-2);
  border-inline-start: 4px solid var(--ls-gold);
  border-radius: 10px;
  font-style: italic;
  color: var(--ls-text-2);
}

.page-contact-card {
  margin-top: 40px;
  padding: 24px;
  background: var(--ls-gold-soft);
  border: 1px solid rgba(176,136,79,0.22);
  border-radius: 16px;
  display: flex; align-items: center; gap: 16px;
}
.page-contact-card-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: white;
  color: var(--ls-gold-2);
  font-size: 18px;
}
.page-contact-card-content strong { display: block; font-size: 15px; margin-bottom: 4px; }
.page-contact-card-content a { font-size: 14px; }

@media (max-width: 768px) {
  .page-content { padding: 32px 24px; border-radius: 14px; }
  .page-content h2 { font-size: 24px; }
  .page-content h3 { font-size: 19px; }
  .page-content p, .page-content li { font-size: 15px; }
  .page-body { padding: 40px 0 64px; }
  .page-hero { padding: 56px 0 40px; }
}

/* --------------------------------------------------------------------------
   404 Page
   -------------------------------------------------------------------------- */
.error-section {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--ls-bg-2) 0%, var(--ls-bg) 100%);
  position: relative;
  overflow: hidden;
}
.error-section::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ls-grad-mesh);
  pointer-events: none;
}
.error-content { position: relative; z-index: 1; max-width: 600px; }
.error-code {
  font-family: var(--ls-font-display);
  font-size: clamp(120px, 20vw, 220px);
  font-weight: 600;
  background: var(--ls-grad-text-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.error-title {
  font-family: var(--ls-font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.error-message {
  font-size: 16px;
  color: var(--ls-text-3);
  line-height: 1.7;
  margin-bottom: 32px;
}
.error-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
