/**
 * Okload Express — shared Privacy Policy styles
 * Used by /user/privacy-policy/ and /driver/privacy-policy/
 */

:root {
  --pp-navy: #0b1f3a;
  --pp-navy-soft: #143456;
  --pp-accent: #1b6ca8;
  --pp-accent-soft: #e8f2fa;
  --pp-bg: #f4f7fb;
  --pp-card: #ffffff;
  --pp-text: #1f2937;
  --pp-muted: #6b7280;
  --pp-border: #e5eaf0;
  --pp-radius: 16px;
  --pp-shadow: 0 10px 30px rgba(11, 31, 58, 0.06);
  --pp-header-h: 72px;
  --pp-font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--pp-header-h) + 24px);
}

body.pp-body {
  margin: 0;
  font-family: var(--pp-font);
  color: var(--pp-text);
  background:
    radial-gradient(circle at top right, rgba(27, 108, 168, 0.08), transparent 32%),
    linear-gradient(180deg, #eef4fa 0%, var(--pp-bg) 220px, var(--pp-bg) 100%);
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: var(--pp-accent);
  text-decoration: none;
}

a:hover {
  color: var(--pp-navy);
  text-decoration: underline;
}

/* Sticky header */
.pp-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: var(--pp-header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pp-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.pp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--pp-header-h);
}

.pp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.pp-brand:hover {
  text-decoration: none;
  color: inherit;
}

.pp-logo {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 4px 8px;
  box-shadow: 0 2px 10px rgba(11, 31, 58, 0.06);
}

.pp-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.pp-brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--pp-navy);
}

.pp-brand-sub {
  font-size: 0.75rem;
  color: var(--pp-muted);
}

.pp-header-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pp-header-links a {
  color: var(--pp-navy-soft);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
}

.pp-header-links a:hover,
.pp-header-links a.is-active {
  background: var(--pp-accent-soft);
  color: var(--pp-accent);
  text-decoration: none;
}

/* Hero */
.pp-hero {
  padding: 40px 0 12px;
}

.pp-hero-card {
  background: var(--pp-card);
  border: 1px solid var(--pp-border);
  border-radius: calc(var(--pp-radius) + 4px);
  box-shadow: var(--pp-shadow);
  padding: 28px 28px 24px;
}

.pp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pp-accent);
  background: var(--pp-accent-soft);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 14px;
}

.pp-title {
  margin: 0 0 10px;
  color: var(--pp-navy);
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.pp-lead {
  margin: 0;
  color: var(--pp-muted);
  max-width: 62ch;
  font-size: 1.02rem;
}

.pp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pp-meta-item {
  background: #f8fafc;
  border: 1px solid var(--pp-border);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 160px;
}

.pp-meta-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pp-muted);
  margin-bottom: 2px;
}

.pp-meta-value {
  font-weight: 700;
  color: var(--pp-navy);
  font-size: 0.95rem;
}

/* Layout */
.pp-main {
  padding: 24px 0 64px;
}

.pp-toc {
  position: sticky;
  top: calc(var(--pp-header-h) + 16px);
  background: var(--pp-card);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  box-shadow: var(--pp-shadow);
  padding: 20px;
  max-height: calc(100vh - var(--pp-header-h) - 40px);
  overflow: auto;
}

.pp-toc h2 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--pp-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pp-toc ol {
  margin: 0;
  padding-left: 18px;
}

.pp-toc li {
  margin-bottom: 8px;
}

.pp-toc a {
  color: var(--pp-navy-soft);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.pp-toc a:hover {
  color: var(--pp-accent);
}

.pp-section {
  background: var(--pp-card);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  box-shadow: var(--pp-shadow);
  padding: 24px 26px;
  margin-bottom: 18px;
  scroll-margin-top: calc(var(--pp-header-h) + 20px);
}

.pp-section h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--pp-navy);
  letter-spacing: -0.01em;
}

.pp-section h3 {
  margin: 18px 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--pp-navy-soft);
}

.pp-section p,
.pp-section li {
  color: #374151;
  font-size: 0.98rem;
}

.pp-section p:last-child,
.pp-section ul:last-child,
.pp-section ol:last-child {
  margin-bottom: 0;
}

.pp-section ul,
.pp-section ol {
  padding-left: 1.2rem;
  margin-bottom: 0.75rem;
}

.pp-section li + li {
  margin-top: 0.35rem;
}

.pp-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.pp-pill-list li {
  background: var(--pp-accent-soft);
  color: var(--pp-navy-soft);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

.pp-contact-box {
  background: linear-gradient(135deg, #f7fbff, #eef5fb);
  border: 1px solid #d9e7f4;
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 12px;
}

.pp-contact-box p {
  margin-bottom: 0.45rem;
}

.pp-contact-box p:last-child {
  margin-bottom: 0;
}

/* Footer */
.pp-footer {
  background: var(--pp-navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 36px 0 28px;
  margin-top: auto;
}

.pp-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.pp-footer a:hover {
  text-decoration: underline;
  color: #cfe6f8;
}

.pp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 16px;
}

.pp-footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.pp-back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1040;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--pp-navy);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 31, 58, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pp-back-top:hover {
  background: var(--pp-accent);
}

@media (max-width: 991.98px) {
  .pp-toc {
    position: static;
    max-height: none;
    margin-bottom: 18px;
  }

  .pp-hero-card,
  .pp-section {
    padding: 20px;
  }
}

@media (max-width: 575.98px) {
  :root {
    --pp-header-h: 64px;
  }

  .pp-logo {
    height: 36px;
    max-width: 120px;
  }

  .pp-brand-sub {
    display: none;
  }

  .pp-header-links a {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .pp-meta-item {
    min-width: calc(50% - 5px);
    flex: 1 1 calc(50% - 5px);
  }
}
