/* Smooth anchor scrolling + offset so headings aren't hidden behind top bars */
html {
  scroll-behavior: smooth;
}
[id] {
  scroll-margin-top: 80px;
} /* adjust if you have a sticky header */

a.main-title {
  font-weight: 800 !important;
}

/* Inter font styling */
.support-legal-container {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0px;
}

.support-legal-container {
  display: flex;
  min-height: 100vh;
}

.support-legal-sidebar {
  width: 260px;
  border-right: 1px solid #e5e7eb;
  padding: 20px 0 20px 20px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
  height: fit-content;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.support-legal-nav {
  list-style: none;
  padding-left: unset;
}
.support-legal-nav li {
  padding: 0 !important;
  list-style: none;
}
.support-legal-nav a {
  text-decoration: none;
  color: #1f2937;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0px;
  display: block;
  padding: 0 10px;
}
.support-legal-nav a:hover {
  color: #111111;
  text-decoration: underline;
}

/* Active row with chevron */
.support-legal-nav li.active > a {
  position: relative;
  background: #f8f3ed;
  color: #b88917;
  font-weight: 700;
  padding: 6px 10px;
}
.support-legal-nav li.active {
  background: transparent;
}
.support-legal-nav li.active > a::after {
  content: "›";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #b88917;
}

/* Hide submenu by default, show only for active tab */
.sub-menu-content {
  display: none;
}

.support-legal-nav li.active .sub-menu-content {
  display: block;
}

.section-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 700;
  color: #111827;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0px;
}

.section-title ul {
  padding-left: 15px;
}

.sub-menu-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 0 0 25px !important;
  display: none;
}

.sub-menu-content > li > a {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0px;
  color: #010101;
}

.support-legal-content {
  flex: 1;
  padding: 32px;
  background: #fff;
}

.policy-tab-content {
  display: none;
  width: 60%;
}

.policy-tab-content.active {
  display: block;
}

.policy-tab-content h1 {
  font-size: 28px;
  line-height: 42px;
  margin-bottom: 8px;
  color: #111827;
  font-weight: 800;
}
.lead {
  max-width: 800px;
  margin-bottom: 18px;
  color: #374151;
}

.panel {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 20px;
  margin: 18px 0;
}
.panel h2 {
  font-size: 18px;
  color: #111827;
  font-weight: 800;
  margin: 18px 0 8px;
}

.panel h3 {
  font-size: 16px;
  color: #111827;
  font-weight: 700;
  margin: 18px 0 8px;
}

.policy-tab-content p {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0px;
  margin: 10px 0;
  color: #1f2937;
  max-width: 900px;
}
.policy-tab-content ul {
  margin: 0 5px;
  list-style: circle;
}

.policy-tab-content li {
  font-weight: 400 !important;
  font-size: 14px !important;
  line-height: 24px !important;
  letter-spacing: 0px;
  margin: 6px 0 !important;
  list-style: disc;
}

.important-note {
  border-top: 1px solid #e5e7eb;
  margin-top: 22px;
  padding-top: 18px;
}

/* Contact (email/phone) – same style as previous page */
.contact-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 420px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  padding: 0;
}
.contact-item svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  color: #fff;
  background: #4c637a;
  border-radius: 6px;
  padding: 6px;
}
.contact-item a {
  color: #2b6cb0;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.contact-item a:hover {
  color: #1e4f80;
}
.contact-item span {
  color: #111827;
  font-weight: 500;
}

/* Policy hamburger menu button */
.policy-menu-toggle {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.policy-menu-toggle .hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #374151;
  margin: 3px 0;
  transition: all 0.3s ease;
}

.policy-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.policy-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.policy-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
}

@media (max-width: 768px) {
  /* Show policy menu button */
  .policy-menu-toggle {
    display: block;
  }
  
  /* Hide sidebar by default on mobile */
  .support-legal-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  /* Show sidebar when mobile menu is open */
  .support-legal-sidebar.mobile-open {
    display: block;
    left: 0;
  }
  
  /* Show overlay when menu is open */
  .mobile-overlay {
    display: block;
  }
  
  /* Adjust content when mobile menu is open */
  .support-legal-container.mobile-menu-open .support-legal-content {
    margin-left: 0;
  }
  
  .support-legal-content {
    padding: 22px;
    width: 100%;
  }
  
  /* Ensure content is not hidden behind sidebar */
  .support-legal-container {
    position: relative;
  }

  .policy-tab-content {
    width: 100%;
  }
}
