/* ==========================================================================
   legal_modals.css — Legal modals (CSS-only :target)
   --------------------------------------------------------------------------
      Contents: Base visibility • Overlay • Dialog layout • Header/close • Body typography
   Notes: Uses :target, so opening/closing is anchor-driven (#privacy, #terms, etc.).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base modal (hidden until :target)
   -------------------------------------------------------------------------- */

.zl-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: clamp(14px, 2vw, 22px);
  box-sizing: border-box;
}

.zl-modal:target {
  display: flex;
}

/* --------------------------------------------------------------------------
   Overlay / backdrop
   -------------------------------------------------------------------------- */

.zl-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: default;
}

/* --------------------------------------------------------------------------
   Dialog shell
   -------------------------------------------------------------------------- */

.zl-modal__dialog {
  position: relative;
  width: min(860px, 100%);
  max-height: min(80vh, 720px);

  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.30);

  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Header + close affordance
   -------------------------------------------------------------------------- */

.zl-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 16px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.zl-modal__title {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(18px, 1.4vw, 22px);

  color: #111;
}

.zl-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border-radius: 0;
  background: transparent;

  text-decoration: none;

  font-size: 26px;
  line-height: 1;

  color: #111;

  border: none;
  box-shadow: none;
}

.zl-modal__close:hover {
  background: transparent;
  color: #FFCC00;
}

.zl-modal__close:focus-visible {
  outline: 2px solid rgba(255, 204, 0, 0.65);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Body content
   -------------------------------------------------------------------------- */

.zl-modal__body {
  padding: 18px;
  overflow: auto;
}

.zl-legal-content h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.zl-legal-content p {
  margin: 10px 0;
  color: #404040;
  line-height: 1.5;
}

.zl-legal-list {
  margin: 10px 0 16px;
  padding-left: 22px;
  color: #404040;
}

.zl-legal-list li {
  margin: 6px 0;
  line-height: 1.5;
}

.zl-legal-list strong {
  font-weight: 700;
  color: #111;
}