.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.footer-links a:not(.login-link):hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.footer .footer-grid {
  min-height: 112px;
}

.footer .footer-grid > div:first-child {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.footer .footer-grid > div:first-child img {
  grid-row: 1 / span 2;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.footer .footer-grid > div:first-child::after {
  content: "Kolkata · West Bengal · India";
  grid-column: 2;
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  letter-spacing: .04em;
}

.footer .footer-grid > div:first-child p {
  grid-column: 2;
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
}

.footer .footer-links .login-link {
  margin-left: 6px;
  padding: 12px 18px;
  background: #fff;
  color: var(--green);
  box-shadow: 0 9px 22px rgba(0, 0, 0, .18);
}

.footer .footer-links .login-link:hover {
  transform: translateY(-2px);
  background: #f4ffe8;
}

.legal-main {
  position: relative;
  z-index: 1;
  padding: 64px 0 90px;
}

.legal-hero {
  max-width: 820px;
  margin-bottom: 28px;
}

.legal-hero h1 {
  margin: 10px 0 16px;
  color: var(--green);
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
}

.legal-hero p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.legal-updated {
  display: inline-flex;
  padding: 9px 14px;
  border: 1px solid rgba(6, 63, 22, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.legal-nav,
.legal-document {
  border: 1px solid rgba(6, 63, 22, .12);
  border-radius: 28px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 18px 50px rgba(6, 63, 22, .08);
}

.legal-nav {
  position: sticky;
  top: 104px;
  padding: 20px;
}

.legal-nav strong {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
}

.legal-nav a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--green);
}

.legal-document {
  padding: clamp(24px, 5vw, 52px);
}

.legal-document section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(6, 63, 22, .1);
}

.legal-document h2 {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 24px;
}

.legal-document p,
.legal-document li {
  color: #425d49;
  font-size: 16px;
  line-height: 1.75;
}

.legal-document ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-document a {
  color: var(--green);
  font-weight: 700;
}

.legal-note {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 4px solid var(--leaf);
  border-radius: 14px;
  background: #eef8e9;
}

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

  .legal-nav {
    position: static;
  }

  .footer-links {
    justify-content: center;
  }

  .footer .footer-grid {
    gap: 20px;
  }

  .footer .footer-grid > div:first-child {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .footer .footer-grid > div:first-child {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 12px;
  }

  .footer .footer-grid > div:first-child img {
    width: 50px;
    height: 50px;
  }

  .footer-links {
    width: 100%;
    gap: 4px;
  }

  .footer-links a {
    padding: 9px 10px;
  }

  .footer .footer-links .login-link {
    width: 100%;
    margin: 8px 0 0;
  }
}
