/* ============================================================
   CUTIE NAILS — Chrome
   Nav, footer, and the legal/support page shell.
   Loaded by every page. Requires tokens.css + base.css.
   ============================================================ */

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  background: rgb(var(--blush-rgb) / 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.nav.is-scrolled { box-shadow: var(--shadow-sm); }

.nav__inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo-img {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  margin-right: auto;
}
.nav__links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__links a:hover { color: var(--text-primary); }

/* Applied at runtime by js/site.js so the markup stays byte-identical
   across pages — see scripts/build-landing-chrome.py. */
.nav__links a[aria-current="page"] { color: var(--text-primary); font-weight: 600; }

.nav__cta { margin-left: auto; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
  margin-left: auto;
  border-radius: var(--radius-sm);
}
.nav__hamburger:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out);
}
/* The X. Previously three inline style.transform writes from JS —
   now one class, so the styling lives entirely in CSS. */
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-6) var(--space-5);
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-page);
}
.nav__mobile a {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgb(var(--pink-rgb) / 0.12);
}
.nav__mobile a:last-of-type { border-bottom: none; }
.nav__mobile .btn { margin-top: var(--space-3); width: 100%; }
.nav__mobile.is-open { display: flex; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface-inverse);
  color: var(--text-inverse);
  padding: var(--space-20) 0 var(--space-8);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: var(--space-16);
  padding-bottom: var(--space-12);
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text-inverse);
}
.footer__logo img { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; }
.footer__logo span { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }

.footer__tagline {
  margin-top: var(--space-4);
  font-size: var(--text-base);
  color: var(--text-inverse-muted);
  font-style: italic;
}

.footer__parent {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-inverse-faint);
}
.footer__parent a {
  color: var(--text-inverse-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__parent a:hover { color: var(--text-inverse); }
.footer__parent a:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }

.footer__links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}
.footer__col { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__col h3 {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-inverse-faint);
  margin-bottom: var(--space-1);
}
.footer__col a {
  font-size: var(--text-base);
  color: var(--text-inverse-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__col a:hover { color: var(--text-inverse); }
.footer__col a:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }

.footer__bottom {
  border-top: 1px solid var(--border-inverse);
  padding-top: var(--space-6);
}
.footer__bottom p {
  font-size: var(--text-sm);
  color: var(--text-inverse-faint);
  line-height: var(--leading-normal);
}

/* ============================================================
   LEGAL / SUPPORT PAGE SHELL
   ============================================================ */
.legal-page {
  padding-top: var(--nav-height);
  min-height: 100svh;
}

.legal-hero {
  padding: var(--space-16) 0 var(--space-10);
  background: linear-gradient(135deg,
              rgb(var(--pink-rgb) / 0.12),
              rgb(var(--lav-rgb) / 0.06));
  border-bottom: 1px solid var(--border-subtle);
}
.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  margin-top: var(--space-3);
  letter-spacing: var(--tracking-display);
}
.legal-hero .legal-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: var(--space-2);
}

.legal-body {
  padding: var(--space-16) 0 var(--space-20);
  max-width: 760px;
}
.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin: var(--space-10) 0 var(--space-3);
  color: var(--text-primary);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: var(--space-6) 0 var(--space-2);
  color: var(--text-primary);
}
.legal-body p {
  font-size: var(--text-base);
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: var(--space-3);
}
.legal-body ul, .legal-body ol {
  padding-left: var(--space-5);
  margin-bottom: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.legal-body li {
  font-size: var(--text-base);
  color: var(--text-body);
  line-height: var(--leading-normal);
}
.legal-body a { color: var(--rose-gold); text-decoration: underline; }
.legal-body strong { color: var(--text-primary); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .footer__inner { grid-template-columns: 1fr; gap: var(--space-10); }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .footer__links { grid-template-columns: 1fr 1fr; }
  .legal-body { padding: var(--space-10) 0 var(--space-16); }
}

@media (max-width: 480px) {
  .footer__links { grid-template-columns: 1fr; gap: var(--space-6); }
}
