/* ==========================================================
   Rajputx — shared legal / docs page styles
   ========================================================== */
:root {
  --bg: #ffffff;
  --bg-alt: #fbfbfd;
  --bg-gray: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-muted: #6e6e73;
  --hair: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --max: 760px;
  --max-wide: 1440px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.52;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.display {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.025em;
  font-weight: 600;
}

/* ---- Nav — matches main page exactly ---- */
nav.top {
  position: sticky;
  top: 0;
  z-index: 90;
  height: 44px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}

.nav-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  width: 22px;
  height: 17.55px;
  background-color: currentColor;
  -webkit-mask: url('logo.svg') center / contain no-repeat;
  mask: url('logo.svg') center / contain no-repeat;
  display: inline-block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 0;
}

.nav-links a {
  color: var(--ink);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-decoration: none;
  opacity: 0.88;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--ink);
  text-decoration: none;
}

.nav-tools {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  opacity: 0.88;
}

.nav-icon:hover {
  background: rgba(0, 0, 0, 0.04);
  opacity: 1;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

/* ---- Hero / page header ---- */
.page-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 22px 40px;
}

.page-kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.page-title {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.page-sub {
  font-size: 19px;
  color: var(--ink-2);
  margin-top: 18px;
  max-width: 560px;
}

.page-meta {
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-muted);
}

/* ---- Article body ---- */
.prose {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 22px 120px;
}

.prose h2 {
  font-family: "SF Pro Display", -apple-system, sans-serif;
  font-size: 26px;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-top: 56px;
  margin-bottom: 14px;
  color: var(--ink);
  scroll-margin-top: 72px;
}

.prose h3 {
  font-size: 19px;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--ink);
}

.prose p {
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 16px;
  max-width: 68ch;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  margin-bottom: 20px;
}

.prose li {
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 8px;
  max-width: 66ch;
}

.prose a {
  color: var(--accent);
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---- TOC ---- */
.toc {
  margin: 24px 0 48px;
  padding: 18px 22px;
  background: var(--bg-alt);
  border: 0.5px solid var(--hair);
  border-radius: 14px;
}

.toc-head {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
  columns: 2;
  column-gap: 28px;
}

@media (max-width: 640px) {
  .toc ol {
    columns: 1;
  }
}

.toc li {
  counter-increment: toc;
  font-size: 14px;
  padding: 4px 0;
  break-inside: avoid;
}

.toc li a {
  color: var(--ink-2);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.toc li a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 11px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.toc li a:hover {
  color: var(--accent);
}

/* ---- Help-page specific: FAQ ---- */
.faq {
  margin-top: 8px;
  border-top: 0.5px solid var(--hair);
}

.faq-item {
  border-bottom: 0.5px solid var(--hair);
}

.faq-item summary {
  list-style: none;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--ink-muted);
  font-weight: 300;
  transition: transform .18s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .faq-body {
  padding: 0 0 22px;
  color: var(--ink-2);
  font-size: 16px;
  max-width: 66ch;
}

.faq-item .faq-body p+p {
  margin-top: 12px;
}

/* ---- Help grid (topic cards) ---- */
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0 56px;
}

.help-card {
  background: var(--bg-alt);
  border: 0.5px solid var(--hair);
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: background .15s ease, transform .15s ease;
}

.help-card:hover {
  background: #f0f0f2;
  transform: translateY(-1px);
}

.help-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  border: 0.5px solid var(--hair);
  display: grid;
  place-items: center;
  font-size: 16px;
  margin-bottom: 12px;
}

.help-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
}

.help-card p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.45;
  margin: 0;
}

/* ---- Contact strip ---- */
.contact-strip {
  margin-top: 48px;
  padding: 32px 28px;
  background: var(--bg-alt);
  border: 0.5px solid var(--hair);
  color: var(--ink);
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-strip h3 {
  font-family: "SF Pro Display", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  color: var(--ink);
}

.contact-strip p {
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 420px;
  margin: 0;
}

.contact-strip a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.contact-strip a:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

/* ---- Footer — matches main page ---- */
footer.site {
  background: var(--bg-alt);
  padding: 24px 22px 40px;
  font-size: 12px;
  line-height: 1.33337;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
  border-top: 1px solid var(--hair);
}

.footer-inner {
  max-width: 1024px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0 22px;
  color: var(--ink);
}

.footer-brand .logo-mark.big {
  width: 44px;
  height: 35px;
}

.footer-brand .brand-text {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hair);
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  padding: 4px 0;
}

.footer-col a {
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
  color: var(--ink-muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0 0;
}

@media (max-width: 760px) {
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Mobile menu — full-screen overlay ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: none;
  flex-direction: column;
  padding: 0 36px 48px;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
  animation: mobileMenuIn 180ms ease;
}

@keyframes mobileMenuIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }

  #navMenuBtn {
    display: none;
  }
}

.mobile-menu-top {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.mobile-menu-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  opacity: 0.5;
  background: none;
  border: none;
}

.mobile-menu-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  flex: 1;
}

.mobile-menu-link {
  font-size: clamp(34px, 9vw, 44px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1;
  color: var(--ink);
  padding: 18px 0;
  display: block;
  text-decoration: none;
  border-top: 0.5px solid var(--hair);
}

.mobile-menu-link:first-child {
  border-top: none;
}

.mobile-menu-link:hover {
  color: var(--accent);
  text-decoration: none;
}
