/* =====================================================================
 * site-modals.css — Privacy/Contact 공용 모달
 *
 * 디자인 토큰이 있는 페이지(--bg-elev, --ink ...) 위에 얹히도록 작성.
 * 토큰이 없는 페이지(lovea.dev 루트 등)에서는 fallback 색이 적용됨.
 * ===================================================================== */

.site-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.site-modal-backdrop[hidden] {
  display: none !important;
}

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

.site-modal {
  width: min(520px, calc(100vw - 40px));
  max-height: calc(100vh - 60px);
  overflow: auto;
  background: var(--bg-elev, var(--card, #fff));
  color: var(--ink, var(--fg, #1f2937));
  border: 1px solid var(--line, rgba(0, 0, 0, .08));
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
  animation: site-modal-pop .18s ease;
}
@keyframes site-modal-pop {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.site-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px 14px;
  border-bottom: 1px solid var(--line-soft, rgba(0, 0, 0, .06));
}
.site-modal-head h2 {
  margin: 0;
  font-family: var(--serif, inherit);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.site-modal-close {
  background: transparent;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-faint, rgba(0, 0, 0, .45));
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.site-modal-close:hover {
  background: var(--bg-tint, rgba(0, 0, 0, .05));
  color: var(--ink, currentColor);
}

.site-modal-body {
  padding: 18px 26px 24px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft, var(--fg, currentColor));
}
.site-modal-body p {
  margin: 0 0 10px;
}
.site-modal-body p:last-child {
  margin-bottom: 0;
}
.site-modal-body ul {
  margin: 8px 0 14px;
  padding-left: 20px;
}
.site-modal-body li {
  margin-bottom: 6px;
}
.site-modal-body a {
  color: var(--accent-deep, var(--brand, #6366f1));
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  transition: opacity .15s ease;
}
.site-modal-body a:hover {
  opacity: .75;
}

.site-modal-email {
  font-size: 16px;
  padding: 12px 14px;
  background: var(--bg-tint, rgba(99, 102, 241, .06));
  border-radius: 10px;
}

.site-modal-muted {
  font-size: 12px;
  color: var(--ink-faint, rgba(0, 0, 0, .5));
  margin-top: 14px !important;
}

@media (max-width: 480px) {
  .site-modal {
    width: calc(100vw - 24px);
  }
  .site-modal-head {
    padding: 18px 20px 12px;
  }
  .site-modal-body {
    padding: 14px 20px 20px;
  }
}
