/* =========================================================
   footer.css
   SecureLynx Footer
   ========================================================= */

.footer {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 64px 0 28px;
  border-top: 1px solid rgba(0, 230, 255, 0.12);
  background:
    radial-gradient(
      circle at 80% 10%,
      rgba(0, 230, 255, 0.07),
      transparent 34%
    ),
    rgba(5, 7, 13, 0.46);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, 1fr));
  gap: 48px;
  align-items: start;
}

.footer-brand p {
  max-width: 360px;
  margin-top: 22px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-logo img {
  width: 46px;
  height: auto;
  object-fit: contain;
}

.footer-logo strong {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.footer-column h4 {
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-column a {
  color: var(--text-secondary);
  font-size: 0.84rem;
  transition: color var(--transition-fast);
  overflow-wrap: anywhere;
}

.footer-column a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.78rem;
}

.footer-bottom > div {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-bottom a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--cyan);
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 34px;
  }

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

@media (max-width: 640px) {
  .footer {
    padding: 46px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand p {
    max-width: none;
    font-size: 0.88rem;
  }

  .footer-column {
    gap: 10px;
  }

  .footer-column h4 {
    margin-bottom: 4px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 32px;
  }

  .footer-bottom > div {
    flex-wrap: wrap;
    gap: 14px 20px;
  }
}

/* =========================================================
   Fullscreen Privacy Policy Modal
   ========================================================= */

body.privacy-modal-open {
  overflow: hidden;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  padding: clamp(14px, 2.4vw, 30px);
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 102, 255, 0.22), transparent 34%),
    radial-gradient(circle at 88% 20%, rgba(0, 230, 255, 0.12), transparent 30%),
    rgba(3, 8, 18, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.privacy-modal.is-open {
  display: block;
  opacity: 1;
}

.privacy-modal__backdrop {
  position: absolute;
  inset: 0;
}

.privacy-modal__panel {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  height: min(92vh, 920px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(0, 230, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(11, 24, 48, 0.97), rgba(6, 14, 31, 0.98)),
    var(--navy);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.52),
    0 0 52px rgba(0, 102, 255, 0.18);
  outline: none;
}

.privacy-modal__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 78%);
}

.privacy-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 230, 255, 0.25);
  border-radius: 999px;
  background: rgba(4, 12, 28, 0.9);
  color: var(--white);
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(0, 102, 255, 0.22);
  transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.privacy-modal__close:hover,
.privacy-modal__close:focus-visible {
  border-color: rgba(57, 255, 20, 0.42);
  color: var(--green);
  transform: scale(1.04);
  box-shadow: 0 0 24px rgba(57, 255, 20, 0.16);
}

.privacy-modal__header {
  position: relative;
  z-index: 2;
  padding: clamp(30px, 5vw, 58px) clamp(24px, 5.6vw, 72px) 24px;
  border-bottom: 1px solid rgba(0, 230, 255, 0.12);
  background:
    radial-gradient(circle at 14% 0%, rgba(0, 230, 255, 0.13), transparent 32%),
    linear-gradient(180deg, rgba(10, 26, 58, 0.78), rgba(10, 26, 58, 0));
}

.privacy-modal__eyebrow {
  margin: 0 52px 12px 0;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.privacy-modal__header h2 {
  max-width: 760px;
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.privacy-modal__updated {
  margin: 18px 0 0;
  color: rgba(245, 247, 250, 0.58);
  font-size: 0.86rem;
}

.privacy-modal__content {
  position: relative;
  z-index: 2;
  height: calc(100% - 190px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px clamp(24px, 5.6vw, 72px) 58px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 230, 255, 0.38) rgba(255, 255, 255, 0.06);
}

.privacy-modal__content::-webkit-scrollbar {
  width: 10px;
}

.privacy-modal__content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

.privacy-modal__content::-webkit-scrollbar-thumb {
  background: rgba(0, 230, 255, 0.34);
  border-radius: 999px;
}

.privacy-modal__intro,
.privacy-modal__section {
  max-width: 820px;
}

.privacy-modal__intro {
  margin: 0 0 28px;
  padding: 22px 24px;
  border: 1px solid rgba(0, 230, 255, 0.14);
  border-left: 3px solid rgba(57, 255, 20, 0.64);
  border-radius: 16px;
  background: rgba(6, 18, 40, 0.68);
  color: rgba(245, 247, 250, 0.82);
  font-size: 1rem;
  line-height: 1.75;
}

.privacy-modal__section {
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.privacy-modal__section h3 {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.privacy-modal__section p {
  margin: 0 0 12px;
  color: rgba(245, 247, 250, 0.74);
  font-size: 0.95rem;
  line-height: 1.78;
}

.privacy-modal__section p:last-child {
  margin-bottom: 0;
}

.privacy-modal__statement {
  margin: 8px 0;
  padding: 24px;
  border: 1px solid rgba(0, 230, 255, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(0, 102, 255, 0.14), rgba(6, 18, 40, 0.72));
  box-shadow: inset 3px 0 0 rgba(57, 255, 20, 0.56);
}

@media (max-width: 700px) {
  .privacy-modal {
    padding: 0;
  }

  .privacy-modal__panel {
    width: 100%;
    height: 100vh;
    max-height: none;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .privacy-modal__close {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
  }

  .privacy-modal__header {
    padding-top: 68px;
  }

  .privacy-modal__content {
    height: calc(100% - 218px);
  }

  .privacy-modal__intro {
    padding: 18px;
    font-size: 0.94rem;
  }
}
