/* Legal Hub — Checkoutify Brand System */
:root {
  --ink: #0A0A0A;
  --turmeric: #D4A843;
  --turmeric-light: #F0CE7A;
  --turmeric-bg: #FDF8EE;
  --taupe: #6B5744;
  --ivory: #F5F0E8;
  --pure-white: #FFFFFF;
  --warm-border: #E8E4DC;
  --muted: #8B7355;
  --font-display: 'Cormorant Garamond', serif;
  --font-ui: 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ─────────────────────────────── */
.pp-header {
  background: var(--ink);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.pp-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pp-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--pure-white);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.pp-logo span { color: var(--turmeric); }
.pp-back {
  font-size: 13px;
  font-weight: 500;
  color: var(--turmeric);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.pp-back:hover { opacity: 1; }

/* ── HERO ─────────────────────────────── */
.legal-hero {
  background: var(--ink);
  padding: 64px 24px 96px;
  text-align: center;
}
.legal-hero-inner { max-width: 720px; margin: 0 auto; }
.legal-hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--turmeric);
  background: rgba(212,168,67,0.12);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  color: var(--pure-white);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.8px;
}
.legal-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto;
}

/* ── DOCUMENT CARDS ────────────────────── */
.legal-grid {
  max-width: 960px;
  margin: -48px auto 0;
  padding: 0 24px 96px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.legal-card {
  background: var(--pure-white);
  border-radius: 14px;
  border: 1px solid var(--warm-border);
  padding: 36px 32px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.02);
  position: relative;
  overflow: hidden;
}

.legal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--turmeric);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.legal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  border-color: var(--turmeric);
}

.legal-card:hover::before {
  opacity: 1;
}

.legal-card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--taupe);
  background: var(--turmeric-bg);
  padding: 4px 10px;
  border-radius: 100px;
  width: fit-content;
}

.legal-card-badge--storefront {
  color: var(--turmeric);
  background: rgba(212,168,67,0.1);
}

.legal-card-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.legal-card-desc {
  font-size: 14px;
  color: var(--taupe);
  line-height: 1.6;
}

.legal-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--warm-border);
}

.legal-card-meta-item {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.legal-card-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--turmeric);
  margin-top: auto;
  padding-top: 8px;
  transition: gap 0.2s ease;
}

.legal-card:hover .legal-card-arrow {
  gap: 10px;
}

/* ── FOOTER ─────────────────────────── */
.pp-footer {
  background: var(--ink);
  padding: 48px 24px;
  text-align: center;
}
.pp-footer-inner { max-width: 960px; margin: 0 auto; }
.pp-footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--pure-white);
  margin-bottom: 8px;
}
.pp-footer-logo span { color: var(--turmeric); }
.pp-footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
}
.pp-footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-top: 24px;
}

/* ── RESPONSIVE ─────────────────────── */
@media (max-width: 640px) {
  .legal-hero { padding: 48px 20px 80px; }
  .legal-grid {
    grid-template-columns: 1fr;
    padding: 0 20px 64px;
  }
  .legal-card { padding: 28px 24px; }
}
