@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap");

:root {
  --background: #f8f9fc;
  --foreground: #0c0d0e;
  --primary: #414ce7;
  --secondary: #27283d;
  --grey-mid: #5e6c83;
  --border: #e7eaf0;
  --font-sans: "Plus Jakarta Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

/* Header Styles */
.site-header {
  background-color: var(--secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-logo-mobile {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: none;
}

.nav-links {
  display: flex;
  gap: 12px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
}

.btn-header {
  color: #fff;
  background-color: var(--secondary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-header:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Main Content Layout */
.content-wrapper {
  margin-top: 80px;
  padding: 48px 24px;
  flex: 1;
  display: flex;
  justify-content: center;
}

.policy-card {
  max-width: 1000px;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey-mid);
}

/* Base text overrides inside policy card */
.policy-card a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.policy-card a:hover {
  opacity: 0.8;
}

/* Original Utility Style Classes Mapping (kept for compatibility) */
.lh-1-5 {
  line-height: 1.6;
}

.fs-15 {
  font-size: 15px;
}

.fs-26 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-gray-127 {
  color: var(--grey-mid);
}

.text-gray-89 {
  color: #434466; /* Match --navy-mid color for body text readability */
}

.text-blue-250 {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.text-blue-250:hover {
  opacity: 0.8;
}

.text-black {
  color: var(--foreground);
}

.d-none {
  display: none;
}

/* Document content styles overrides */
.policy-card h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--foreground);
  margin-top: 0;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.policy-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 36px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.policy-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 24px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.policy-card p,
.policy-card li {
  line-height: 1.6;
  color: var(--grey-mid);
  margin-bottom: 16px;
}

.policy-card ul {
  padding-left: 20px;
  margin-bottom: 24px;
}

.policy-card li {
  margin-bottom: 8px;
}

/* Footer Styles */
.site-footer {
  background-color: var(--secondary);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 56px 24px 32px 24px;
}

.footer-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-cols: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
  margin-top: 16px;
  margin-bottom: 0;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-brand-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.footer-brand-logo-text {
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.footer-brand-logo-text span {
  color: var(--primary);
}

.footer-col h4 {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
  margin: 0;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-action-link {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-action-link:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icon:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.05);
}

.social-icon svg {
  fill: currentColor;
}

/* Mobile Hamburger Icon (Visual placeholder) */
.mobile-nav-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
  padding: 8px;
}

/* Responsive queries */
@media (max-w-992px) {
  .footer-top {
    grid-template-cols: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-w-768px) {
  .nav-links {
    display: none;
  }

  .brand-logo-img {
    display: none;
  }

  .brand-logo-mobile {
    display: block;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .policy-card {
    padding: 24px;
    border-radius: 8px;
  }

  .content-wrapper {
    padding: 24px 12px;
  }

  .footer-top {
    grid-template-cols: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Scroll To Top Button */
.scroll-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #fff;
  border: none;
  outline: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.scroll-to-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-to-top-btn:hover {
  background-color: #313ad6;
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.scroll-to-top-btn:active {
  transform: translateY(0) scale(0.95);
}

.table-of-contents {
  line-height: 1.5;
}

.table-of-contents h2 {
  margin-bottom: 1rem;
}

.toc-list {
  margin: 0;
  padding-left: 1.5rem;
}

.toc-list li {
  margin-bottom: 0.5rem;
}

.toc-list a {
  /* color: var(--blue-250); */
  text-decoration: none;
}

.toc-list a:hover {
  text-decoration: underline;
}
