/* ============================================================
   legal-page.css — Worldwide Exporter
   SHARED stylesheet for all policy/legal pages:
   Privacy Policy, Terms & Conditions, Cancellation Policy,
   Refund Policy, Shipping Policy (Help Center / User Guide
   use their own template — see note in that file).
   Requires: variables.css, base.css (loaded before this)

   Class prefix "pp-" (policy page) is shared across all pages
   above. Do not fork this file per-page — add page-specific
   overrides in a small <style> block only if truly one-off.
   ============================================================ */

body {
  font-family: var(--font);
  background: var(--bg) !important;
  color: var(--text-heading);
  line-height: 1.7;
  margin: 0;
}

main { min-height: 0; }

/* ── Container ── */
.pp-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ── Header ── */
.pp-header {
  padding: 8px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.pp-header-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--primary); margin-bottom: .75rem;
}
.pp-header-eyebrow::before { content: ''; width: 18px; height: 1.5px; background: var(--primary); }

.pp-header h1 {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.pp-header p {
  font-size: .95rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 680px;
}

/* ── Two-column layout: sticky TOC + content ── */
.pp-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.pp-toc {
  position: sticky;
  top: 24px;
  padding: 20px 0;
}
.pp-toc-label {
  display: block;
  font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-subtle); margin-bottom: 14px;
}
.pp-toc-nav { display: flex; flex-direction: column; gap: 2px; }
.pp-toc-nav a {
  font-size: .85rem; color: var(--text-muted); text-decoration: none;
  padding: 7px 10px; border-radius: var(--radius-sm); border-left: 2px solid transparent;
  transition: var(--transition-base);
}
.pp-toc-nav a:hover { color: var(--primary); background: var(--primary-light); border-left-color: var(--primary); }

/* ── Content card ── */
.pp-content {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  box-shadow: var(--shadow-sm);
}

/* ── Section ── */
.pp-section {
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 24px;
}

.pp-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ── Section title — document section-mark, not a filled badge ── */
.pp-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.pp-num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
}
.pp-num::before { content: '§ '; }
.pp-num::after { content: '.'; }

/* ── Section body ── */
.pp-section p {
  color: var(--text-body);
  font-size: .93rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.pp-section p:last-child { margin-bottom: 0; }

.pp-section a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.pp-section a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ── Lists ── */
.pp-section ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 18px;
}

.pp-section ul li {
  padding-left: 24px;
  margin-bottom: 9px;
  position: relative;
  color: var(--text-body);
  font-size: .93rem;
  line-height: 1.7;
}

.pp-section ul li::before {
  content: "\2192";
  position: absolute;
  left: 4px;
  color: var(--primary);
  font-weight: 700;
  font-size: .9rem;
}

/* ── Highlight span ── */
.pp-highlight {
  color: var(--primary);
  font-weight: 600;
}

/* ── Note box — brand-consistent, not an off-palette blue ── */
.pp-note-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-top: 18px;
}

.pp-note-box i {
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.pp-note-box p {
  color: var(--text-heading);
  font-weight: 500;
  font-size: .9rem;
  margin: 0 !important;
  line-height: 1.6;
}

/* ── Contact box ── */
.pp-contact-box {
  background: var(--primary-light);
  border: 1px solid var(--primary-tint);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 32px;
}

.pp-contact-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.pp-contact-box h3 i {
  color: var(--primary);
  font-size: 1.15rem;
}

.pp-contact-box > p {
  color: var(--text-muted);
  font-size: .93rem;
  margin-bottom: 18px;
  line-height: 1.7;
}

.pp-contact-info {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.pp-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .93rem;
  color: var(--text-muted);
}

.pp-contact-item i {
  color: var(--primary);
  font-size: 1.05rem;
  width: 20px;
  flex-shrink: 0;
}

.pp-contact-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.pp-contact-item a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ── Breadcrumb (used above the header on some pages) ── */
.pp-breadcrumb {
  max-width: 1120px; margin: 0 auto; padding: 16px 20px 0;
  font-size: .85rem; color: var(--text-subtle);
  display: flex; align-items: center; gap: 8px;
}
.pp-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.pp-breadcrumb a:hover { color: var(--primary); }
.pp-breadcrumb strong { color: var(--text-heading); font-weight: 600; }

/* ── Intro paragraph block (above sections, below header) ── */
.pp-intro { margin-bottom: 28px; }
.pp-intro p { color: var(--text-body); font-size: .95rem; line-height: 1.75; margin-bottom: 10px; }
.pp-intro p:last-child { margin-bottom: 0; }

/* ── Generic callout box + color variants (replaces one-off
   highlight-box / info-box / rp-box colors with brand-consistent
   tokens, so warning/success/info all read as one family) ── */
.pp-box {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--border);
  margin: 16px 0;
  font-size: .9rem;
  line-height: 1.65;
}
.pp-box p { margin: 0 !important; color: inherit; }
.pp-box--warning { background: var(--primary-light); border-left-color: var(--primary); color: var(--text-heading); }
.pp-box--success { background: #f0fdf4; border-left-color: #16a34a; color: #14532d; }
.pp-box--info     { background: var(--bg-light); border-left-color: var(--text-subtle); color: var(--text-body); }
.pp-box ul { margin: 8px 0 0; }
.pp-box ul li { color: inherit; }
.pp-box ul li::before { color: currentColor; opacity: .6; }

/* ── Inline tag (e.g. "Important", "Processing Info") ── */
.pp-tag {
  display: inline-block; margin-left: 8px; padding: 2px 10px;
  border-radius: var(--radius-full); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; vertical-align: middle;
}
.pp-tag--important { background: var(--primary); color: var(--bg-white); }
.pp-tag--info { background: var(--bg-light); color: var(--text-muted); border: 1px solid var(--border); }

/* ── Related policies list (cross-linking between legal pages) ── */
.pp-related {
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border);
}
.pp-related h2 { font-size: 1.05rem; font-weight: 700; color: var(--text-heading); margin-bottom: 14px; }
.pp-related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pp-related li { margin: 0; padding: 0; }
.pp-related li::before { content: none; }
.pp-related a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 600; color: var(--text-body); text-decoration: none;
  transition: var(--transition-base);
}
.pp-related a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.pp-related a i { color: var(--primary); }

/* ── Cross-link callout (e.g. "looking for X instead?") ── */
.pp-crosslink {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 18px; margin: 16px 0;
}
.pp-crosslink p { margin: 0 !important; font-size: .88rem; color: var(--text-body); }
.pp-crosslink a {
  font-size: .85rem; font-weight: 700; color: var(--primary); text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.pp-crosslink a:hover { text-decoration: underline; }

/* ── Guide-specific: sections with icon headings (no § numbering) ── */
.pp-section h2:not(.pp-section-title) {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 800; color: var(--text-heading);
  margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.pp-section h2:not(.pp-section-title) i { color: var(--primary); font-size: 1.15rem; }
.pp-section h3 { font-size: 1.02rem; font-weight: 700; color: var(--text-heading); margin: 22px 0 10px; }
.pp-section h4 { font-size: .92rem; font-weight: 700; color: var(--text-heading); margin: 16px 0 8px; }

.pp-step-list { list-style: none; counter-reset: pp-step; padding: 0; margin: 14px 0 20px; display: flex; flex-direction: column; gap: 14px; }
.pp-step-list li {
  counter-increment: pp-step; position: relative; padding-left: 38px;
  color: var(--text-body); font-size: .9rem; line-height: 1.65;
}
.pp-step-list li::before {
  content: counter(pp-step); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: var(--radius-sm);
  background: var(--primary-light); color: var(--primary);
  font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center;
}
.pp-step-list strong { color: var(--text-heading); }

.pp-video-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 40px 20px; background: var(--bg-light); border: 1px dashed var(--border);
  border-radius: var(--radius-md); color: var(--text-subtle); margin-top: 14px;
}
.pp-video-placeholder i { font-size: 2rem; }
.pp-video-placeholder p { margin: 0; font-size: .88rem; }

/* Reuse pp-related for CTA link groups elsewhere on non-legal pages */
.pp-cta-section p { color: var(--text-muted); margin-bottom: 14px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .pp-layout { grid-template-columns: 1fr; }
  .pp-toc { position: static; padding: 0 0 24px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
  .pp-toc-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .pp-toc-nav a { border-left: none; border: 1px solid var(--border); }
  .pp-toc-nav a:hover { border-color: var(--primary); }
}

@media (max-width: 768px) {
  .pp-header { padding: 4px 0 24px; }
  .pp-header h1 { font-size: 1.7rem; }
  .pp-content { padding: 26px 20px; }
  .pp-section-title { font-size: 1.05rem; }
  .pp-section p, .pp-section ul li { font-size: .9rem; }
}