/* Shared site chrome: top nav + footer grid (homepage, privacy, landing pages) */
.text-link {
  color: inherit;
  text-decoration: none;
}

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

.brand-link {
  display: block;
  line-height: 0;
}

.brand-link:focus-visible {
  outline: 2px solid var(--scan);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.site-header-landing .header-inner {
  gap: 1rem;
}

.header-chrome {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
  flex: 1;
  min-width: 0;
}

.header-chrome .locale-switcher {
  flex-shrink: 0;
}

.lp-topnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 0.35rem;
}

.lp-topnav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.lp-topnav-link:hover,
.lp-topnav-link-active {
  color: var(--text);
  background: rgba(34, 211, 238, 0.08);
}

.lp-topnav-link-muted {
  opacity: 0.85;
}

.lp-topnav-menu {
  position: relative;
}

.lp-topnav-menu > summary {
  list-style: none;
  cursor: pointer;
}

.lp-topnav-menu > summary::-webkit-details-marker {
  display: none;
}

.lp-topnav-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 20;
  min-width: 11rem;
  padding: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 0.1rem;
}

.lp-topnav-panel-wide {
  min-width: 14rem;
}

.lp-topnav-panel a {
  display: block;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
}

.lp-topnav-panel a:hover {
  color: var(--text);
  background: rgba(34, 211, 238, 0.08);
}

@media (max-width: 720px) {
  .site-header-landing .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .header-chrome {
    flex-direction: column;
    align-items: stretch;
  }

  .header-chrome .locale-switcher {
    justify-content: flex-end;
  }

  .lp-topnav {
    justify-content: flex-start;
    padding-top: 0.35rem;
    border-top: 1px solid var(--border-subtle);
  }
}

.site-footer-landing {
  margin-top: 2.5rem;
  padding: 2.25rem 0 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-landing-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-landing-brand {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-brand-link:hover {
  color: var(--accent);
}

.footer-landing-tagline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 28ch;
}

.footer-cta-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.footer-cta-link:hover {
  text-decoration: underline;
}

.footer-landing-heading {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-landing-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-landing-links a {
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-landing-links a:hover {
  color: var(--accent);
}

.footer-landing-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-top: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-landing-bottom p {
  margin: 0;
}

@media (max-width: 860px) {
  .footer-landing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-landing-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-landing-grid {
    grid-template-columns: 1fr;
  }
}
