/*
 * Shared shell for the static trust pages (/about/, /contact/, /privacy/, /terms/).
 * Mirrors the approved React shell in src/index.css (NexKit Shop V31 visual language,
 * nexkit-shop @ 943a623). Presentation only: page copy, head metadata, links, and analytics
 * stay in each page's own HTML.
 */
:root {
  --blue: #155af5;
  --blue-hover: #0848db;
  --ink: #181a20;
  --quiet: #59616e;
  --border: #e4e7eb;
  --line-soft: #edf0f3;
  --surface: #f6f8fb;
  --motion-ui: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.5;
  color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased;
}
::selection { background: #dbe6ff; color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

/* ---------- Layout (same container as the app: 1320 / 1440) ---------- */
.wrap, main { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
@media (min-width: 1600px) { .wrap, main { width: min(1440px, calc(100% - 140px)); } }
@media (max-width: 1150px) { .wrap, main { width: calc(100% - 56px); } }
@media (max-width: 800px) { .wrap, main { width: calc(100% - 40px); } }
@media (max-width: 600px) { .wrap, main { width: calc(100% - 32px); } }
@media (max-width: 350px) { .wrap, main { width: calc(100% - 24px); } }

/* ---------- Header ---------- */
.navbar {
  position: sticky; top: 0; z-index: 30;
  background: #ffffffed; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
/* backdrop-filter would trap the fixed mobile drawer inside the header box while it is open. */
.navbar.menu-open { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav-inner { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; transition: height .2s; }
.navbar.scrolled .nav-inner { height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--ink); border-radius: 10px; }
.logo-mark {
  display: grid; place-items: center; width: 40px; height: 40px; padding-right: 2px; border-radius: 10px;
  background: #1a1e26; color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -2px; line-height: 1;
}
.logo-name { font-size: 23px; font-weight: 750; letter-spacing: -1px; line-height: 1; }
.logo-name small { font-size: 17px; font-weight: 500; color: #495361; letter-spacing: -.4px; }

.site-nav { display: flex; align-items: center; gap: 27px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink); transition: color var(--motion-ui); }
.site-nav a:hover { color: var(--blue); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 0; border-radius: 9px; background: none; color: var(--ink); cursor: pointer;
  transition: background var(--motion-ui), color var(--motion-ui);
}
.icon-btn:hover { background: #eaf0ff; color: var(--blue); }
.menu-toggle, .nav-head { display: none; }

@media (max-width: 1150px) { .site-nav { gap: 17px; } }
@media (max-width: 1023px) {
  .nav-inner { height: 70px; gap: 15px; }
  /* Without JavaScript the links simply wrap under the logo. */
  html:not(.shell-js) .nav-inner { height: auto; flex-wrap: wrap; gap: 10px 24px; padding-block: 14px; }
  html:not(.shell-js) .site-nav { flex-wrap: wrap; gap: 8px 18px; }
  /* With JavaScript: single-row header + right-hand drawer, like the app. */
  .shell-js .menu-toggle { display: inline-flex; }
  .shell-js .site-nav { display: none; }
  .shell-js .site-nav.is-open {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 51;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    width: min(440px, 100%); padding: 12px 20px 32px; overflow-y: auto; overscroll-behavior: contain;
    background: #fff; box-shadow: -18px 0 40px #172b4a14; animation: nk-fade 320ms ease;
  }
  .shell-js .site-nav.is-open::after {
    content: ""; position: fixed; top: 0; bottom: 0; left: 0; right: min(440px, 100%); background: #10141c66;
  }
  .shell-js .site-nav.is-open .nav-head {
    display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
    height: 69px; margin: -12px -20px 18px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line-soft);
  }
  .shell-js .site-nav.is-open a {
    display: block; padding: 15px 0; border-bottom: 1px solid var(--line-soft);
    font-size: 19px; font-weight: 600; letter-spacing: -.4px;
  }
  .shell-js .site-nav.is-open .nav-head + a { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 600px) {
  .nav-inner { height: 69px; gap: 8px; }
  .navbar.scrolled .nav-inner { height: 64px; }
  .logo { gap: 8px; }
  .logo-mark { width: 34px; height: 34px; font-size: 15px; border-radius: 9px; }
  .logo-name { font-size: 20px; letter-spacing: -.8px; }
  .logo-name small { font-size: 14px; }
  .menu-toggle.icon-btn { width: 40px; height: 42px; }
}
@media (max-width: 350px) { .logo-name { font-size: 19px; } }
@keyframes nk-fade { from { opacity: 0; } }

/* ---------- Page body (matches the app's text pages) ---------- */
main { padding: 56px 0 72px; }
main h1 { max-width: 880px; margin: 0 0 26px; font-size: 54px; font-weight: 600; line-height: 1.1; letter-spacing: -2.4px; color: var(--ink); }
main p { max-width: 780px; margin: 0 0 20px; font-size: 17px; line-height: 1.7; color: #3f4b5d; }
main a { font-weight: 600; color: var(--blue); }
main a:hover { color: var(--blue-hover); text-decoration: underline; }
main dl {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); max-width: 780px; margin: 28px 0 0;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
main dt, main dd { margin: 0; padding: 17px 22px; font-size: 16px; line-height: 1.6; border-top: 1px solid var(--line-soft); overflow-wrap: anywhere; }
main dt:first-of-type, main dt:first-of-type + dd { border-top: 0; }
main dt { font-weight: 600; color: var(--ink); }
@media (max-width: 800px) { main h1 { font-size: 42px; letter-spacing: -2px; } }
@media (max-width: 600px) {
  main { padding: 38px 0 48px; }
  main h1 { margin-bottom: 20px; font-size: 36px; letter-spacing: -1.6px; }
  main p { font-size: 16px; }
  main dl { grid-template-columns: 1fr; }
  main dt { padding: 16px 18px 2px; }
  main dd { padding: 0 18px 16px; border-top: 0; }
}

/* ---------- Footer (light, as in the app) ---------- */
.footer { padding: 43px 0 24px; background: var(--surface); border-top: 1px solid #e7ebf0; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr; align-items: start; gap: 45px; }
.footer-links { display: grid; grid-template-rows: repeat(3, auto); grid-auto-flow: column; grid-auto-columns: max-content; justify-content: start; gap: 0 56px; }
.footer-links a { display: inline-block; padding: 5px 0; font-size: 15px; line-height: 1.6; color: #606a79; transition: color var(--motion-ui); }
.footer-links a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 22px; border-top: 1px solid #dfe5ed; font-size: 13px; color: #626d7d; }
.footer-wordmark {
  margin-top: 27px; overflow: hidden; white-space: nowrap; user-select: none;
  font-size: clamp(40px, calc((100vw - 48px) / 6.6), 120px); font-weight: 600; line-height: .95; letter-spacing: -.06em; color: #e7ebf1;
}
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 600px) { .footer { padding-top: 34px; } .footer-links { gap: 0 40px; } .footer-bottom { margin-top: 25px; } .footer-wordmark { margin-top: 25px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
