/* v2 document pages (Privacy Policy, Terms, FAQs): header + readable content. The footer comes from style.css. */
body.doc-body {
  margin: 0;
  background: #ffffff;
  color: #1f2937;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
.doc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
}
.doc-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.doc-logo img { display: block; height: 30px; width: auto; }
.doc-nav { display: flex; align-items: center; gap: 32px; }
.doc-nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.doc-nav-links a,
.doc-login {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: color .2s ease;
}
.doc-nav-links a:hover, .doc-login:hover { color: #000; }
.doc-nav-actions { display: flex; align-items: center; gap: 20px; }
.doc-join {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: #000;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color .2s ease, transform .15s ease;
}
.doc-join:hover { background: #1f1f1f; color: #fff; transform: translateY(-1px); }

.doc-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.doc-menu-btn span { display: block; height: 2px; background: #111; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.doc-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.doc-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.doc-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991.98px) {
  .doc-menu-btn { display: flex; }
  .doc-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 20px 24px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 16px 24px rgba(0, 0, 0, .06);
  }
  .doc-nav.is-open { display: flex; }
  .doc-nav-links { flex-direction: column; gap: 4px; }
  .doc-nav-links a { display: block; padding: 10px 0; font-size: 17px; }
  .doc-nav-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .doc-login { text-align: center; padding: 10px 0; border: 1px solid #d1d5db; border-radius: 999px; }
  .doc-join { text-align: center; }
}

/* ---------- Content ---------- */
/* Side gutter = footer card edge: 1196px wide column (1220 container minus 12px padding), min 20px / 32px */
:root { --doc-gutter: max(20px, calc((100% - 1196px) / 2)); }
@media (min-width: 768px) { :root { --doc-gutter: max(32px, calc((100% - 1196px) / 2)); } }
.doc-main { padding: 10px; }
.doc-content {
  max-width: 1200px;
  padding: 14px 20px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: #374151;
  overflow-wrap: anywhere;
}
/* The admin HTML wraps itself in its own .container / .heading: neutralise Bootstrap here */
.doc-content .container, .doc-content .container-fluid { width: 100%; max-width: none; padding: 0; margin: 0; }
.doc-content .heading { margin: 0 0 28px; padding-bottom: 20px; border-bottom: 1px solid #e5e7eb; }
.doc-content h1, .doc-content h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #000;
  margin: 0;
  padding: 0;font-size:2rem;
}
.doc-content h3, .doc-content h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.4rem;
  line-height: 1.3;
  font-weight: 700;
  color: #000; margin-top:15px;
}
.doc-content h5, .doc-content h6 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin: 1.6rem 0 .5rem;
}
.doc-content p { margin: 0 0 1.1rem; color: #374151; }
.doc-content ul, .doc-content ol { margin: 0 0 1.2rem; padding-left: 1.4rem; list-style-position: outside; }
.doc-content ul { list-style-type: disc; }
.doc-content li { margin-bottom: .5rem; color: #374151; }
.doc-content a { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.doc-content a:hover { color: #4b5563; }
.doc-content strong, .doc-content b { color: #111; font-weight: 700; }
.doc-content img { max-width: 100%; height: auto; }
.doc-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: .95em; display: block; overflow-x: auto; }
.doc-content th, .doc-content td { border: 1px solid #e5e7eb; padding: 10px 14px; text-align: left; vertical-align: top; }
.doc-content th { background: #f9fafb; font-weight: 700; color: #111; }
.doc-content hr { border: 0; border-top: 1px solid #e5e7eb; margin: 2rem 0; }

/* ---------- FAQ accordion (built by doc.js from h5 + answer) ---------- */
.faq-item { border-bottom: 1px solid #e5e7eb; }
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.faq-item[open] > summary::after { content: "–"; background: #000; color: #fff; border-color: #000; }
.faq-item > summary:hover { color: #000; }
.faq-item > summary strong { font-weight: inherit; }
.faq-answer { padding: 0 0 18px; }
.faq-answer > :last-child { margin-bottom: 0; }
.doc-content .faq-item h5 { margin: 0; font-size: inherit; }

/* "Modified on …" line from the admin content */
.doc-content h4 > span[style*="font-size:12px"] { font-family: 'Roboto', sans-serif; font-weight: 500; color: #6b7280; }

/* ---------- Dark hero header (same look as the About / Professionals hero) ---------- */
.doc-hero {
  position: relative;
  z-index: 50;
  overflow: hidden;
  background-color: #000000;
  background-image: url('../assets/images/professional-images/pro-hero-bg.webp');
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
  padding: 0 var(--doc-gutter) 2.75rem;
}
.doc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
  z-index: 1;
}
.doc-hero-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 2.25rem 0 0;
}
.doc-hero .kh-logo,
.doc-hero .kh-header-actions {
  position: static;
  left: auto;
  top: auto;
  transform: none;
}
.doc-hero .kh-logo { width: 170px; height: 24px; flex: 0 0 auto; background: none; }
.doc-hero .kh-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.doc-hero .kh-header-actions { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.doc-hero-body { position: relative; z-index: 5; max-width: 820px; padding-top: 3.5rem; }
.doc-hero-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 2.8rem;
  line-height: 1.2;
  letter-spacing: -0.25px;
  color: #ffffff;
  margin: 0 0 1rem;
}
.doc-hero-sub { font-family: 'Roboto', sans-serif; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, 0.78); margin: 0; max-width: 620px; }
@media (max-width: 1199.98px) {
  .doc-hero-title { font-size: clamp(2rem, 6vw, 3rem); }
}
@media (max-width: 575.98px) {
  .doc-hero { padding: 0 20px 2.5rem; }
  .doc-hero-bar { padding-top: 1.5rem; }
  .doc-hero .kh-logo { width: 130px; height: 20px; }
  .doc-hero-body { padding-top: 3rem; }
  .doc-hero-sub { font-size: 16px; }
}

/* ---------- Body aligned with the hero text; the page title is shown in the hero only ---------- */
.doc-main { padding: 0; }
.doc-content {
  max-width: none;
  margin: 0;
  padding: 1.5rem var(--doc-gutter) 3rem;
}
.doc-content .heading { display: none; }
@media (max-width: 575.98px) {
  .doc-content { padding: 2rem 20px 3rem; }
}
