/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.footer::before {
  content: '';
  position: absolute;
  top: -260px;
  right: -140px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 181, 165, 0.13), transparent 65%);
  pointer-events: none;
}

.footer::after {
  content: '';
  position: absolute;
  bottom: -240px;
  left: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 217, 240, 0.1), transparent 65%);
  pointer-events: none;
}

.footer__star {
  position: absolute;
  pointer-events: none;
  color: var(--sun);
  opacity: 0.4;
}

.footer__star--one {
  top: 18%;
  right: 8%;
  width: 22px;
  height: 22px;
}

.footer__star--two {
  top: 40%;
  left: 4%;
  width: 14px;
  height: 14px;
  color: var(--peach);
}

.footer__star--three {
  bottom: 26%;
  right: 22%;
  width: 11px;
  height: 11px;
  color: var(--mint);
}

.footer__top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.8fr 1.2fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(2.2rem, 4vw, 3.4rem);
  border-bottom: 1px solid rgba(255, 245, 232, 0.12);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.footer__logo .nav__mark {
  width: 42px;
  height: 42px;
}

.footer__logo .nav__name {
  color: var(--cream);
  font-size: 1.18rem;
}

.footer__tagline {
  max-width: 26ch;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: rgba(255, 245, 232, 0.82);
}

.footer__blurb {
  max-width: 34ch;
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(255, 245, 232, 0.48);
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.footer__social {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 245, 232, 0.18);
  color: rgba(255, 245, 232, 0.7);
  transition: background-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.footer__social:hover {
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 1rem;
  height: 1rem;
}

.footer__social-empty {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 245, 232, 0.36);
}

.footer__col h3 {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 245, 232, 0.42);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer__links a {
  width: fit-content;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 245, 232, 0.68);
  transition: color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.footer__links a:hover {
  color: var(--cream);
  transform: translateX(3px);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: rgba(255, 245, 232, 0.68);
}

.footer__contact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
}

.footer__contact-item svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  color: var(--peach);
  flex: none;
}

.footer__contact-item p span {
  display: block;
}

.footer__contact-item a {
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out);
}

.footer__contact-item a:hover {
  border-color: currentColor;
}

.footer__cta {
  margin-top: 0.4rem;
  width: fit-content;
}

.footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  padding-top: 1.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 245, 232, 0.4);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.2rem;
}

.footer__legal button {
  font-size: inherit;
  font-family: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 245, 232, 0.25);
  transition: color var(--dur) var(--ease-out);
}

.footer__legal button:hover {
  color: var(--cream);
}

.footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

@media (max-width: 1000px) {
  .footer__top {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer__col--contact {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    padding-top: 0.5rem;
  }

  .footer__col--contact h3 {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .footer__contact {
    max-width: 34ch;
  }
}

@media (max-width: 700px) {
  .footer {
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__col--contact {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__col--contact {
    grid-column: auto;
  }
}

/* ==========================================================================
   Privacy dialog
   ========================================================================== */

.privacy-dialog:not([open]) {
  display: none;
}

.privacy-dialog {
  width: min(92vw, 720px);
  max-height: min(86vh, 780px);
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.privacy-dialog::backdrop {
  background: rgba(30, 35, 42, 0.6);
  backdrop-filter: blur(8px);
}

.privacy-dialog[open] {
  animation: dialog-in 380ms var(--ease-out);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.privacy-dialog__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  background: rgba(255, 245, 232, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.privacy-dialog__head h2 {
  font-size: 1.3rem;
}

.privacy-dialog__close {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  flex: none;
}

.privacy-dialog__close svg {
  width: 1rem;
  height: 1rem;
}

.privacy-dialog__body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(86vh - 80px);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.privacy-dialog__body h3 {
  margin: 1.4rem 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.privacy-dialog__body h3:first-child {
  margin-top: 0;
}

.privacy-dialog__body p {
  margin-bottom: 0.8rem;
}

.privacy-dialog__body strong {
  color: var(--ink);
}

.privacy-dialog__note {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: var(--sun-soft);
  border: 1px solid rgba(227, 185, 63, 0.24);
  font-size: 0.76rem;
  font-weight: 600;
  color: #7b6420;
}
