/* ============================================================
   RABIA MOTORS — Privacy Policy Page Redesign
   ============================================================ */

body.privacy-page {
  --prv-sticky-top: 132px;
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', var(--font);
  background: #f0f2f6;
  scroll-padding-top: var(--prv-sticky-top);
}

body.privacy-page .topbar {
  background: #12182b;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.privacy-page .header {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 8px 24px rgba(22, 33, 62, 0.06);
}

.prv {
  --prv-dark: #12182b;
  --prv-dark2: #1a2744;
  --prv-mid: #243352;
  --prv-muted: #64748b;
  --prv-line: rgba(15, 23, 42, 0.08);
  --prv-radius: 16px;
  --prv-radius-lg: 22px;
  --prv-shadow: 0 20px 50px rgba(22, 33, 62, 0.12);
  --prv-accent: #14b8a6;
  --prv-accent-dark: #0d9488;
  --prv-accent-light: #5eead4;
}

/* ── Shared ──────────────────────────────────────────────────── */
.prv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--prv-accent-light);
  background: rgba(20, 184, 166, 0.18);
  border: 1px solid rgba(94, 234, 212, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.prv-eyebrow-dark {
  color: var(--prv-accent-dark);
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(20, 184, 166, 0.18);
}

.prv-eyebrow-light {
  color: var(--prv-accent-light);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

/* ── Hero ────────────────────────────────────────────────────── */
body.privacy-page .prv-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #12182b 0%, #1a2744 48%, #243352 100%);
  color: #fff;
  padding: 28px 0 64px;
}

.prv-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 92% 10%, rgba(20, 184, 166, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 6% 90%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

body.privacy-page .prv-hero .container {
  position: relative;
  z-index: 1;
}

.prv-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.prv-breadcrumb a {
  color: #cbd5e1;
  transition: color 0.2s;
}

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

.prv-breadcrumb i {
  font-size: 0.62rem;
  opacity: 0.6;
}

.prv-breadcrumb span {
  color: #fff;
  font-weight: 600;
}

.prv-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
}

.prv-hero-copy h1 {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 16px;
}

.prv-hero-lead {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 540px;
  margin: 0 0 22px;
}

.prv-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.prv-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: 999px;
}

.prv-hero-meta i {
  color: var(--prv-accent-light);
  font-size: 0.75rem;
}

.prv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.prv-hero-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
}

.prv-hero-panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--prv-radius-lg);
  padding: 22px 24px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.prv-hero-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.prv-hero-panel-head i {
  color: var(--prv-accent-light);
}

.prv-hero-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.prv-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.prv-highlight span {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.2);
  color: var(--prv-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.prv-highlight em {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* ── Pillars ─────────────────────────────────────────────────── */
.prv-pillars {
  margin-top: -28px;
  padding-bottom: 32px;
  position: relative;
  z-index: 2;
}

.prv-pillar-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--prv-line);
  border-radius: var(--prv-radius-lg);
  box-shadow: var(--prv-shadow);
  overflow: hidden;
}

.prv-pillar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  color: var(--prv-dark);
  border-right: 1px solid var(--prv-line);
  transition: background 0.2s;
}

.prv-pillar:last-child {
  border-right: none;
}

.prv-pillar:hover {
  background: #f0fdfa;
}

.prv-pillar > i {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
  color: var(--prv-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.prv-pillar span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.prv-pillar strong {
  font-size: 0.9rem;
  font-weight: 700;
}

.prv-pillar em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--prv-muted);
}

/* ── Main layout ─────────────────────────────────────────────── */
.prv-main {
  padding: 24px 0 48px;
  overflow: visible;
}

.prv-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  overflow: visible;
}

.prv-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.prv-side-card {
  background: #fff;
  border: 1px solid var(--prv-line);
  border-radius: var(--prv-radius);
  padding: 22px;
  box-shadow: 0 4px 16px rgba(22, 33, 62, 0.04);
  min-width: 0;
}

.prv-side-alert {
  background: linear-gradient(135deg, #f0fdfa, #fff);
  border-color: rgba(20, 184, 166, 0.2);
}

.prv-side-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--prv-dark);
  margin-bottom: 14px;
}

.prv-side-head i {
  color: var(--prv-accent-dark);
}

.prv-toc {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prv-toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--prv-muted);
  line-height: 1.45;
  transition: background 0.2s, color 0.2s;
}

.prv-toc a:hover {
  background: #f0fdfa;
  color: var(--prv-accent-dark);
}

.prv-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prv-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--prv-muted);
  line-height: 1.55;
}

.prv-checklist i {
  width: 20px;
  color: var(--prv-accent-dark);
  margin-top: 2px;
  flex-shrink: 0;
}

.prv-related {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prv-related-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--prv-line);
  background: #f8fafc;
  color: var(--prv-dark);
  transition: background 0.2s, border-color 0.2s;
  min-width: 0;
}

.prv-related-link:hover {
  background: #fff;
  border-color: rgba(20, 184, 166, 0.2);
}

.prv-related-link > i {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  color: var(--prv-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.prv-related-link span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.prv-related-link strong {
  font-size: 0.82rem;
  font-weight: 700;
}

.prv-related-link em {
  font-style: normal;
  font-size: 0.76rem;
  color: var(--prv-muted);
}

.prv-side-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prv-side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--prv-line);
  background: #f8fafc;
  color: var(--prv-dark);
  transition: background 0.2s, border-color 0.2s;
}

.prv-side-link:hover {
  background: #fff;
  border-color: rgba(20, 184, 166, 0.2);
}

.prv-side-link > i {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  color: var(--prv-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.prv-side-wa > i {
  color: #25d366;
}

.prv-side-link span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.prv-side-link strong {
  font-size: 0.82rem;
  font-weight: 700;
}

.prv-side-link em {
  font-style: normal;
  font-size: 0.76rem;
  color: var(--prv-muted);
  word-break: break-all;
}

/* ── Policy panel ────────────────────────────────────────────── */
.prv-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
  overflow: visible;
}

.prv-policy-panel {
  background: #fff;
  border: 1px solid var(--prv-line);
  border-radius: var(--prv-radius-lg);
  padding: 36px 40px;
  box-shadow: var(--prv-shadow);
}

.prv-panel-head {
  margin-bottom: 24px;
}

.prv-panel-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--prv-dark);
  letter-spacing: -0.02em;
}

.prv-panel-head p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--prv-muted);
  line-height: 1.65;
  max-width: 620px;
}

.prv-policy-body {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.8;
}

.prv-policy-body p {
  margin: 0 0 16px;
}

.prv-policy-body p:last-child {
  margin-bottom: 0;
}

.prv-policy-body h2,
.prv-policy-body h3,
.prv-policy-body h4 {
  margin: 28px 0 12px;
  font-weight: 800;
  color: var(--prv-dark);
  letter-spacing: -0.02em;
  scroll-margin-top: var(--prv-sticky-top);
}

.prv-policy-body h2 {
  font-size: 1.25rem;
  padding-top: 8px;
  border-top: 1px solid var(--prv-line);
}

.prv-policy-body h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.prv-policy-body h3 { font-size: 1.1rem; }
.prv-policy-body h4 { font-size: 1rem; }

.prv-policy-body ul,
.prv-policy-body ol {
  margin: 0 0 18px;
  padding-left: 1.4rem;
}

.prv-policy-body li {
  margin-bottom: 8px;
}

.prv-policy-body li::marker {
  color: var(--prv-accent-dark);
}

.prv-policy-body a {
  color: var(--prv-accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prv-policy-body strong {
  color: var(--prv-dark);
  font-weight: 700;
}

.prv-panel-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--prv-line);
  font-size: 0.9rem;
  color: var(--prv-muted);
  line-height: 1.7;
}

.prv-panel-footer a {
  color: var(--prv-accent-dark);
  font-weight: 600;
}

.prv-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--prv-line);
}

.prv-panel-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 700;
}

/* ── Info cards ──────────────────────────────────────────────── */
.prv-info {
  margin-top: 28px;
  width: 100%;
}

.prv-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.prv-info-card {
  background: #fff;
  border: 1px solid var(--prv-line);
  border-radius: var(--prv-radius);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(22, 33, 62, 0.04);
}

.prv-info-card > i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
  color: var(--prv-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 14px;
}

.prv-info-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--prv-dark);
}

.prv-info-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--prv-muted);
  line-height: 1.65;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.prv-faq {
  margin-top: 28px;
  width: 100%;
}

.prv-section-head {
  margin-bottom: 18px;
}

.prv-section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 800;
  color: var(--prv-dark);
  letter-spacing: -0.02em;
}

.prv-section-head p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--prv-muted);
}

.prv-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.prv-faq-item {
  background: #fff;
  border: 1px solid var(--prv-line);
  border-radius: var(--prv-radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(22, 33, 62, 0.04);
}

.prv-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--prv-dark);
  cursor: pointer;
  list-style: none;
}

.prv-faq-item summary::-webkit-details-marker {
  display: none;
}

.prv-faq-item summary i {
  color: var(--prv-accent-dark);
  font-size: 0.75rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.prv-faq-item[open] summary i {
  transform: rotate(180deg);
}

.prv-faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.88rem;
  color: var(--prv-muted);
  line-height: 1.65;
}

/* ── Split CTA ───────────────────────────────────────────────── */
.prv-cta {
  background: linear-gradient(135deg, #12182b 0%, #1a2744 55%, #243352 100%);
  padding: 48px 0 80px;
}

.prv-cta-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  border-radius: var(--prv-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #12182b 0%, #1a2744 55%, #243352 100%);
}

.prv-cta-main {
  padding: 48px 44px;
}

.prv-cta-main h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.prv-cta-main p {
  margin: 0 0 28px;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 480px;
}

.prv-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.prv-cta-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
}

.prv-cta-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  background: rgba(0, 0, 0, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.prv-cta-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  min-height: 76px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}

.prv-cta-contact:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.prv-cta-contact i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.22);
  color: var(--prv-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.prv-cta-wa i {
  background: rgba(37, 211, 102, 0.2);
  color: #4ade80;
}

.prv-cta-contact span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.prv-cta-contact strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.prv-cta-contact em {
  font-style: normal;
  font-size: 0.86rem;
  color: #cbd5e1;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .prv-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .prv-pillar-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .prv-pillar:nth-child(2) {
    border-right: none;
  }

  .prv-pillar:nth-child(odd) {
    border-bottom: 1px solid var(--prv-line);
  }

  .prv-layout {
    grid-template-columns: 1fr;
  }

  .prv-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .prv-side-nav {
    grid-column: span 2;
  }

  .prv-side-contact {
    grid-column: span 2;
  }

  .prv-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .prv-cta-grid {
    grid-template-columns: 1fr;
  }

  .prv-cta-side {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 640px) {
  body.privacy-page .prv-hero {
    padding: 22px 0 44px;
  }

  .prv-pillars {
    margin-top: -14px;
    padding-bottom: 24px;
  }

  .prv-pillar-bar {
    grid-template-columns: 1fr;
  }

  .prv-pillar {
    border-right: none;
    border-bottom: 1px solid var(--prv-line);
  }

  .prv-pillar:last-child {
    border-bottom: none;
  }

  .prv-hero-highlights {
    grid-template-columns: 1fr;
  }

  .prv-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .prv-side-nav,
  .prv-side-contact {
    grid-column: auto;
  }

  body.privacy-page .prv-main .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .prv-policy-panel {
    padding: 28px 24px;
  }

  .prv-panel-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .prv-cta-main,
  .prv-cta-side {
    padding: 36px 28px;
  }
}
