/* Shared site chrome for about-us policy pages */

.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; display: flex; align-items: center; justify-content: space-between; min-height: 84px; padding: 22px 46px 0; width: 100%; transition: background 260ms ease, box-shadow 260ms ease; }
.topbar:hover, .topbar:focus-within, .topbar:has(.nav-center:hover) { background: rgb(25 36 100 / 67%); }
.topbar.scrolled, .topbar.scrolled:hover, .topbar.scrolled:focus-within, .topbar.scrolled:has(.nav-center:hover) { background: #ffffff; box-shadow: 0 2px 12px rgba(18, 35, 78, 0.08); }
.brand { display: flex; align-items: center; user-select: none; flex: 0 0 auto; }
.brand img { display: block; width: 190px; height: auto; }
.nav-center { flex: 1; position: relative; margin: 0 22px; }
.nav-center::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 34px; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2vw, 34px); }
.main-nav-item { position: relative; }
.main-nav-link { color: rgba(255, 255, 255, 0.95); text-decoration: none; font-size: clamp(14px, 0.95vw, 16px); font-weight: 500; letter-spacing: 0.3px; white-space: nowrap; transition: opacity 220ms ease; display: inline-flex; align-items: center; padding-bottom: 8px; position: relative; }
.main-nav-link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: rgba(255, 255, 255, 0.95); transform: scaleX(0); transform-origin: left center; transition: transform 320ms ease; }
.main-nav-item:hover .main-nav-link::after { transform: scaleX(1); }
.main-nav-link:hover { opacity: 0.75; }
.topbar.scrolled .main-nav-link { color: rgba(20, 31, 67, 0.92); }
.topbar.scrolled .main-nav-link::after { background: rgba(20, 31, 67, 0.9); }

.nav-dropdown { position: fixed; left: 0; top: 84px; width: 100vw; clip-path: inset(0 0 100% 0); background: rgb(25 36 100 / 67%); backdrop-filter: blur(8px); padding: 26px 0 30px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 280ms ease, clip-path 320ms ease, visibility 0s linear 320ms; box-shadow: 0 18px 28px -18px rgba(8, 20, 64, 0.55); z-index: 25; }
.nav-center:hover .nav-dropdown, .nav-center:focus-within .nav-dropdown, .nav-dropdown:hover { opacity: 1; clip-path: inset(0 0 0 0); visibility: visible; pointer-events: auto; transition: opacity 280ms ease, clip-path 320ms ease, visibility 0s linear 0s; }
.topbar.scrolled .nav-dropdown { background: rgba(255, 255, 255, 0.98); box-shadow: 0 24px 30px -20px rgba(17, 33, 71, 0.36); border-bottom: 1px solid rgba(16, 35, 78, 0.1); }
.dropdown-inner { width: min(1280px, calc(100vw - 96px)); margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(18px, 2vw, 36px); justify-items: center; }
.dropdown-col { text-align: center; }
.dropdown-col-title { display: block; margin-bottom: 14px; color: rgba(255, 255, 255, 0.96); font-size: clamp(18px, 1.35vw, 26px); line-height: 1.25; font-weight: 600; text-decoration: none; white-space: nowrap; }
.topbar.scrolled .dropdown-col-title { color: #1a2b5a; }
.dropdown-links { list-style: none; display: grid; gap: 10px; justify-items: center; }
.dropdown-links a { text-decoration: none; color: rgba(255, 255, 255, 0.78); font-size: clamp(14px, 1.08vw, 22px); line-height: 1.25; white-space: nowrap; transition: color 220ms ease; }
.topbar.scrolled .dropdown-links a { color: rgba(26, 43, 90, 0.72); }
.dropdown-links a:hover { color: rgba(255, 255, 255, 0.98); }
.topbar.scrolled .dropdown-links a:hover { color: #1a2b5a; }

.nav-right { display: flex; align-items: center; gap: 22px; font-size: 14px; flex: 0 0 auto; }
.lang-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 84px; height: 32px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.5); color: #ffffff; text-decoration: none; font-weight: 600; }
.topbar.scrolled .lang-btn { border-color: rgba(18, 34, 72, 0.28); color: #1b2c5a; }
.icon-btn { opacity: 0.9; font-size: 18px; text-decoration: none; color: #ffffff; line-height: 1; }
.menu-icon-btn { display: none; }
.topbar.scrolled .icon-btn { color: #1b2c5a; }

/* Avoid nav overlay on policy pages */
.shell { padding-top: 188px; }

/* Footer (ending-page) */
.ending-page { background: linear-gradient(110deg, #031844 0%, #2f7fe8 100%); color: rgba(255, 255, 255, 0.92); padding: 56px 0 24px; }
.ending-shell { width: min(1280px, calc(100vw - 96px)); margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.ending-main { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 42px); align-content: start; }
.ending-brand img { width: 210px; max-width: 100%; height: auto; display: block; margin-bottom: 18px; }
.ending-col h4 { font-size: 24px; font-weight: 700; margin-bottom: 14px; color: #ffffff; }
.ending-links { list-style: none; display: grid; gap: 10px; }
.ending-links a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-size: 15px; }
.ending-links a:hover { color: #ffffff; }
.ending-contact { display: grid; gap: 10px; margin-bottom: 20px; }
.ending-contact h5 { font-size: 16px; font-weight: 700; color: #ffffff; }
.ending-contact p { font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, 0.76); }
.ending-bottom { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12px; color: rgba(255, 255, 255, 0.64); }
.ending-meta, .ending-friends { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .topbar { min-height: 72px; padding: 16px 20px 0; }
  .brand img { width: 150px; }
  .main-nav { display: none; }
  .menu-icon-btn { display: inline-flex; }
  .ending-shell { width: calc(100vw - 32px); }
  .ending-main { grid-template-columns: 1fr 1fr; gap: 18px; }
  .shell { padding-top: 168px; }
}
@media (max-width: 640px) {
  .ending-main { grid-template-columns: 1fr; }
}

