/* Shared production shell for legal pages. Legal document content is untouched. */
.legal-shell > .site-header {
  position: sticky !important;
  inset: 0 0 auto !important;
  z-index: 50 !important;
  background: rgba(248, 251, 249, .91) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-bottom: 1px solid rgba(223, 233, 229, .86) !important;
}

.legal-shell .site-nav {
  width: 100%;
  max-width: 1200px !important;
  min-height: 76px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  display: grid !important;
  grid-template-columns: 285px 1fr auto !important;
  gap: 18px !important;
  align-items: center !important;
}

.legal-shell .site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.legal-shell .site-brand img:first-child {
  width: 58px !important;
  height: 58px !important;
  object-fit: contain;
}

.legal-shell .site-brand img:last-child {
  display: block !important;
  width: 198px !important;
  height: auto !important;
}

.legal-shell .site-nav-links {
  display: flex !important;
  justify-content: center;
  gap: 18px;
  margin-left: auto;
  margin-right: 32px;
  color: var(--text-light);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.legal-shell .site-nav-links a:hover { color: var(--ink); }

.legal-shell .site-nav-button {
  min-height: 42px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--primary);
  color: white !important;
  box-shadow: 0 10px 24px rgba(36, 104, 92, .20);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.legal-shell .site-nav-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.legal-shell .legal-main {
  padding-top: 72px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.legal-shell .site-footer {
  padding: 40px 0 22px !important;
  background: var(--ink) !important;
  color: rgba(255, 255, 255, .72) !important;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12.5px;
}

.legal-shell .site-footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-shell .site-footer-top {
  display: grid;
  grid-template-columns: minmax(250px, 1.15fr) repeat(4, .85fr);
  gap: 24px;
  align-items: start;
}

.legal-shell .site-footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.legal-shell .site-footer-logo img:first-child {
  width: 54px !important;
  height: auto !important;
}

.legal-shell .site-footer-logo img:last-child {
  width: 180px !important;
  height: auto !important;
  filter: brightness(1.1);
}

.legal-shell .site-footer-tagline {
  max-width: 380px;
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  line-height: 1.6;
}

.legal-shell .site-footer h4 {
  margin: 0 0 10px;
  color: white;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.legal-shell .site-footer ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-shell .site-footer li { padding: 0; }
.legal-shell .site-footer a { color: rgba(255, 255, 255, .76); }
.legal-shell .site-footer a:hover { color: var(--accent); }

.legal-shell .site-footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
}

@media (max-width: 1080px) {
  .legal-shell .site-nav {
    grid-template-columns: 1fr auto !important;
  }

  .legal-shell .site-nav-links { display: none !important; }
  .legal-shell .site-footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .legal-shell .site-nav {
    min-height: 72px !important;
    padding: 0 18px !important;
    flex-wrap: nowrap !important;
  }

  .legal-shell .site-brand img:first-child {
    width: 48px !important;
    height: 48px !important;
  }

  .legal-shell .site-brand img:last-child {
    display: block !important;
    width: 150px !important;
  }

  .legal-shell .site-nav-button {
    min-height: 38px;
    padding: 0 13px;
    font-size: 12px;
  }

  .legal-shell .legal-main { padding-top: 52px !important; }
  .legal-shell .site-footer { padding: 40px 0 22px !important; }
  .legal-shell .site-footer-wrap { padding: 0 18px; }
  .legal-shell .site-footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .legal-shell .site-brand img:last-child { display: none !important; }
}
