/* ============================================
   LEGAL & PARTNER PAGES — SHARED STYLES
   ============================================ */

/* ---- LEGAL HERO ---- */
.legal-hero {
  background: linear-gradient(145deg, #060e1f 0%, #0b1b3b 60%, #091528 100%);
  padding: 130px 0 56px;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(26,86,219,.22) 0%, transparent 70%);
}
.legal-hero .container { position: relative; z-index: 1; }
.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; color: #fff;
  margin: 12px 0 10px; line-height: 1.2;
}
.legal-hero p {
  color: rgba(255,255,255,.55);
  font-size: .95rem;
}
.partners-hero .legal-hero p { max-width: 560px; font-size: 1.05rem; line-height: 1.7; }

/* ---- LEGAL LAYOUT ---- */
.legal-main {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 80px;
  align-items: start;
}

/* TOC Sidebar */
.legal-toc {
  position: sticky; top: 96px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 20px;
}
.toc-title {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gray-500); margin-bottom: 14px;
}
.legal-toc ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.legal-toc a {
  display: block; padding: 7px 10px;
  font-size: .83rem; color: var(--gray-600, #4b5563);
  text-decoration: none; border-radius: 8px;
  transition: all .15s ease;
}
.legal-toc a:hover { background: var(--gray-100); color: var(--blue); }

/* Article body */
.legal-body { min-width: 0; }
.legal-body section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--gray-200);
}
.legal-body section:last-child { border-bottom: none; }
.legal-body h2 {
  font-size: 1.3rem; font-weight: 800;
  color: var(--gray-900); margin-bottom: 16px;
  padding-top: 4px;
}
.legal-body h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--gray-800, #1e293b); margin: 20px 0 10px;
}
.legal-body p { color: var(--gray-600, #4b5563); line-height: 1.8; margin-bottom: 14px; }
.legal-body ul {
  list-style: none; margin: 0 0 14px; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.legal-body ul li {
  padding-left: 20px; position: relative;
  color: var(--gray-600, #4b5563); line-height: 1.7; font-size: .93rem;
}
.legal-body ul li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--blue); font-size: .8rem; top: 2px;
}

/* Callout box */
.legal-callout {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: .9rem; line-height: 1.7;
  color: var(--gray-700); margin: 20px 0;
}

/* Contact box */
.legal-contact-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 24px 28px;
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 16px;
}
.legal-contact-box p { margin: 0; font-size: .93rem; }
.legal-contact-box a { color: var(--blue); text-decoration: none; font-weight: 500; }
.legal-contact-box a:hover { text-decoration: underline; }

/* ---- PARTNERS PAGE ---- */
.partners-intro { background: var(--white); padding-top: 64px; padding-bottom: 0; }
.partners-intro-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
}
.pi-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 14px; padding: 24px 20px;
  text-align: center;
}
.pi-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.pi-card h4 { font-size: .95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.pi-card p  { font-size: .82rem; color: var(--gray-500); line-height: 1.65; margin: 0; }

/* Partner categories */
.partners-section { background: var(--gray-50); }
.partner-categories {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}
.partner-cat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--pc, #3b82f6);
  border-radius: 14px; padding: 26px 22px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.partner-cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pc-header { display: flex; align-items: center; gap: 14px; }
.pc-icon { font-size: 2rem; flex-shrink: 0; }
.pc-header h3 { font-size: .95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; line-height: 1.3; }
.pc-count {
  font-size: .72rem; font-weight: 600;
  color: var(--pc, #3b82f6);
  background: color-mix(in srgb, var(--pc,#3b82f6) 10%, white);
  padding: 2px 10px; border-radius: 100px;
}
.partner-cat-card > p { font-size: .85rem; color: var(--gray-500); line-height: 1.65; }
.partner-cat-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.partner-cat-card ul li {
  font-size: .82rem; color: var(--gray-600,#4b5563);
  padding-left: 16px; position: relative;
}
.partner-cat-card ul li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--pc, #3b82f6); font-weight: 700;
}

/* Become a partner */
.become-partner { background: var(--white); }
.bp-grid {
  display: grid; grid-template-columns: 1fr 400px;
  gap: 64px; align-items: start;
}
.bp-text h2 { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 800; color: var(--gray-900); margin-bottom: 16px; }
.bp-text p { color: var(--gray-500); line-height: 1.75; margin-bottom: 16px; }
.bp-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.bp-list li { font-size: .92rem; color: var(--gray-700); font-weight: 500; }
.bp-requirements {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 16px; padding: 28px;
}
.bp-requirements h4 {
  font-size: 1rem; font-weight: 700; color: var(--gray-900);
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}
.req-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.req-item:last-child { margin-bottom: 0; }
.req-item > span { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.req-item strong { display: block; font-size: .88rem; color: var(--gray-900); margin-bottom: 2px; }
.req-item p { font-size: .8rem; color: var(--gray-500); margin: 0; line-height: 1.5; }

/* ---- PARTNERS & LICENSED AGENTS GRID ---- */
.pla-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 14px;
  margin-top: 20px;
}
.pla-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 16px 18px;
}
.pla-card > span { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.pla-card strong { display: block; font-size: .9rem; color: var(--gray-900); font-weight: 700; margin-bottom: 4px; }
.pla-card p { font-size: .8rem; color: var(--gray-500); margin: 0; line-height: 1.5; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .legal-main { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .partner-categories { grid-template-columns: repeat(2,1fr); }
  .bp-grid { grid-template-columns: 1fr; }
  .partners-intro-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .partner-categories { grid-template-columns: 1fr; }
  .partners-intro-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .partners-intro-grid { grid-template-columns: 1fr; }
}
