/* ================================================
   HRTrustsPro — LEGAL PAGES CSS (ORANGE THEME)
   Professional Redesign
================================================ */

body {
  background: #ffffff;
}

/* ── WRAPPER ── */
.legal-wrapper {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ── HERO BANNER - ORANGE THEME ── */
.legal-hero {
  background: linear-gradient(135deg, #ff9500 0%, #ff8a00 55%, #ff7a00 100%);
  margin: 0 -20px 0;
  padding: 52px 40px 44px;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.legal-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.legal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.25);
  margin-bottom: 16px;
}

.legal-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.legal-updated {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.legal-updated::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  display: inline-block;
}

/* ── LEGAL NAV LINKS ── */
.legal-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.legal-nav a {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: background 0.2s, color 0.2s;
}

.legal-nav a:hover,
.legal-nav a.active {
  background: rgba(255,255,255,0.22);
  color: #ffffff;
}

/* ── CONTENT CARD ── */
.legal-content {
  background: #ffffff;
  margin-top: 24px;
  padding: 44px 48px;
  border-radius: 20px;
  border: 1px solid #f1f1f1;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.75;
}

/* ── INTRO PARAGRAPH ── */
.legal-content > p:first-child {
  font-size: 1rem;
  color: #4b5563;
  background: #fff5e6;
  border-left: 4px solid #ff8a00;
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ── SECTION HEADINGS - ORANGE THEME ── */
.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2f2f2f;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f3f3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-content h2::before {
  content: '';
  width: 4px;
  height: 18px;
  background: linear-gradient(135deg, #ff9500, #ff7a00);
  border-radius: 4px;
  flex-shrink: 0;
}

.legal-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.78rem;
  color: #8a6a45;
}

/* ── PARAGRAPHS ── */
.legal-content p {
  margin-bottom: 14px;
  color: #4b5563;
}

/* ── LISTS - ORANGE THEME ── */
.legal-content ul,
.legal-content ol {
  padding-left: 0;
  margin-bottom: 18px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-content ul li {
  padding: 9px 14px 9px 36px;
  background: #fffaf5;
  border-radius: 8px;
  border: 1px solid #f5ede5;
  color: #4b5563;
  font-size: 0.9rem;
  position: relative;
  line-height: 1.5;
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #ff8a00;
  border-radius: 50%;
}

.legal-content ol {
  counter-reset: legal-counter;
}

.legal-content ol li {
  counter-increment: legal-counter;
  padding: 10px 14px 10px 44px;
  background: #fffaf5;
  border-radius: 8px;
  border: 1px solid #f5ede5;
  color: #4b5563;
  font-size: 0.9rem;
  position: relative;
  line-height: 1.5;
}

.legal-content ol li::before {
  content: counter(legal-counter);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #ff9500, #ff7a00);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── STRONG / HIGHLIGHT - ORANGE THEME ── */
.legal-content strong {
  color: #333333;
  font-weight: 700;
}

.legal-content p strong {
  background: #fff1dc;
  color: #d96f00;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.88rem;
}

/* ── LINKS ── */
.legal-content a {
  color: #e87500;
  text-decoration: none;
  font-weight: 600;
}

.legal-content a:hover {
  color: #ff8a00;
  text-decoration: underline;
}

/* ── FOOTER NOTE ── */
.legal-content p:last-child {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #f3f3f3;
  font-size: 0.8rem;
  color: #9ca3af;
  text-align: center;
}

/* ── CONTACT HIGHLIGHT BOX - ORANGE THEME ── */
.legal-contact-box {
  background: #fff5e6;
  border: 1px solid #ffd6a3;
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 8px;
}

.legal-contact-box p {
  margin: 0;
  font-size: 0.88rem;
  color: #a85500;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .legal-hero {
    padding: 40px 24px 32px;
    margin: 0 -20px;
  }

  .legal-title {
    font-size: 1.6rem;
  }

  .legal-content {
    padding: 28px 22px;
    font-size: 0.9rem;
  }

  .legal-content h2 {
    font-size: 1rem;
  }

  .legal-nav {
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .legal-content {
    padding: 22px 16px;
  }

  .legal-content ul li,
  .legal-content ol li {
    padding-left: 30px;
    font-size: 0.85rem;
  }
}