@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* ── Neutral, Editorial Palette ── */
  --bg-page: #F4F7FB;
  --bg-surface: #FFFFFF;
  --bg-subtle: #EEF3F8;
  --bg-blue-soft: #EAF2FB;
  --bg-amber-soft: #F9F3E9;

  --brand-navy: #0B1F3A;
  --brand-blue: #1769AA;
  --brand-blue-hover: #0E4F86;
  --brand-amber: #B7791F;

  --text-heading: #10233E;
  --text-body: #40536B;
  --text-secondary: #687990;
  --text-muted: #8493A7;

  --border-color: #D9E3EE;
  --border-subtle: #E8EEF5;
  --border-blue: #C9DDF1;
  --border-amber: #ECDAB9;

  --font-serif: 'Plus Jakarta Sans', Arial, sans-serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 999px;

  --shadow-subtle: 0 2px 6px rgba(15, 43, 77, 0.05);
  --shadow-card: 0 14px 32px rgba(15, 43, 77, 0.08);
  --shadow-dropdown: 0 16px 36px rgba(15, 43, 77, 0.14);

  --transition: all 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: block;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.brand-title span {
  color: var(--brand-blue);
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 4px 0;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-heading);
}

.nav-link.active {
  color: var(--text-heading);
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--brand-blue);
}

/* ── Hero / Page Header ── */
.page-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 64px 0 48px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-blue);
  border-bottom: 1px solid var(--border-blue);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0 0 6px;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.page-header .intro-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding-top: 4px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.meta-item strong {
  color: var(--text-heading);
  font-weight: 600;
}

/* ── Content Layout ── */
.main-content {
  padding: 48px 0 88px;
}

.document-grid {
  display: grid;
  grid-template-columns: 224px 1fr;
  gap: 56px;
  align-items: start;
}

/* ── Table of Contents (Quiet Sticky Nav) ── */
.toc-panel {
  position: sticky;
  top: 92px;
  padding: 0 0 0 20px;
  border-left: 1px solid var(--border-color);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.toc-heading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.toc-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.toc-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 5px 0;
  transition: var(--transition);
  line-height: 1.4;
}

.toc-link .toc-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 16px;
}

.toc-link:hover {
  color: var(--text-heading);
}

/* ── Sections Flow ── */
.document-body {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 44px;
}

.section-block {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-title {
  font-family: var(--font-serif);
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: -0.005em;
  margin-bottom: 16px;
}

.section-num {
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.section-text {
  font-size: 0.97rem;
  color: var(--text-body);
  line-height: 1.7;
}

.section-text p {
  margin-bottom: 12px;
}

.section-text p:last-child {
  margin-bottom: 0;
}

/* ── Bullet Lists ── */
.clean-list {
  list-style: none;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.clean-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-blue);
}

/* ── Category Subheadings (Privacy Policy) ── */
.category-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--brand-navy);
  margin: 20px 0 6px;
}

/* ── Callouts (quiet flag style, not filled boxes) ── */
.callout {
  background: var(--bg-page);
  border-left: 2px solid var(--brand-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 18px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-body);
}

.callout.amber {
  border-left-color: var(--brand-amber);
}

.callout-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--brand-blue);
  margin-top: 1px;
}

.callout.amber .callout-icon {
  color: var(--brand-amber);
}

.callout-content {
  flex: 1;
}

.callout-content strong {
  color: var(--text-heading);
}

/* ── Contact Section ── */
.contact-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}

.contact-box {
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}

.contact-box:hover {
  background: var(--bg-page);
}

.contact-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details .label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.contact-details .value {
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--text-heading);
  word-break: break-all;
}

/* ── Acceptance Footnote ── */
.acceptance-notice {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Footer ── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  color: var(--text-secondary);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-heading);
}

.footer-copy {
  width: 100%;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Responsive Design ── */
/* Corporate visual refinement */
.navbar { background: rgba(255, 255, 255, 0.92); }
.brand-logo { border-radius: 9px; box-shadow: 0 4px 12px rgba(23, 105, 170, 0.18); }
.nav-link.active::after { bottom: -23px; height: 3px; border-radius: 3px 3px 0 0; }

.page-header {
  background: linear-gradient(118deg, #F8FBFF 0%, #EAF3FD 100%);
  border-bottom-color: var(--border-blue);
  padding: 70px 0 54px;
}

.badge-tag {
  background: rgba(23, 105, 170, 0.08);
  border: 1px solid rgba(23, 105, 170, 0.16);
  border-radius: var(--radius-full);
  padding: 7px 11px;
}

.page-header h1 { font-size: 2.45rem; font-weight: 700; }
.toc-panel { border-left: 2px solid var(--border-blue); }
.toc-link:hover { color: var(--brand-blue); }
.document-body { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.section-title { font-weight: 700; }
.section-num { color: var(--brand-blue); }

.callout {
  background: var(--bg-blue-soft);
  border-left-width: 3px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.contact-cards-row { gap: 12px; border: 0; }
.contact-box {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.contact-box:hover {
  background: var(--bg-blue-soft);
  border-color: var(--border-blue);
  box-shadow: var(--shadow-subtle);
  transform: translateY(-2px);
}
.contact-icon { background: var(--bg-blue-soft); border-color: var(--border-blue); }

.footer { background: #0B1F3A; border-top-color: #193959; color: #B7C7D9; }
.footer .footer-brand > div > div:first-child { color: #FFFFFF !important; }
.footer .footer-brand > div > div:last-child { color: #B7C7D9 !important; }
.footer-links a { color: #B7C7D9; }
.footer-links a:hover { color: #FFFFFF; }
.footer-copy { border-top-color: rgba(255, 255, 255, 0.14); color: #91A6BE; }

@media (max-width: 900px) {
  .document-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .toc-panel {
    display: none;
  }

  .document-body {
    padding: 26px;
  }

  .page-header h1 {
    font-size: 1.85rem;
  }
}

@media (max-width: 600px) {
  .navbar-inner {
    height: 60px;
  }

  .brand-subtitle {
    display: none;
  }

  .page-header {
    padding: 40px 0 30px;
  }

  .page-header h1 {
    font-size: 1.55rem;
  }

  .document-body {
    padding: 20px;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .contact-cards-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Print Optimization ── */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }

  .navbar, .toc-panel, .footer {
    display: none !important;
  }

  .document-body {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .section-block {
    page-break-inside: avoid;
  }
}
