/* /var/www/imrentcar/app/static/css/user/copyright.css */
/* -*- coding: utf-8 -*- */

/* ============================================================
   IM Rent Car User Copyright / Contact Info CSS
   ------------------------------------------------------------
   역할:
   - 소비자 메인 오른쪽 차량 선택 패널 하단 고객센터/사업자 정보 표시
   - fixed 고정 노출이 아니라, 차량 검색 결과 영역 하단에 자연스럽게 노출
   - 상담 신청 floating button과 겹치지 않음
   - 사업자정보확인 / 대출모집인 조회 / 금융소비자보호 내부통제기준 / 등록증 안내
   - 금융소비자보호 내부통제기준 및 등록증 모달 UI 관리
============================================================ */

.main-copyright-box {
  width: 100%;
  margin-top: 18px;
  padding: 16px 16px 18px;

  border-radius: 22px;
  color: #667085;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(228, 231, 236, 0.9);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);

  font-size: 11px;
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.main-copyright-box p {
  margin: 0;
}

.main-copyright-box p + p {
  margin-top: 5px;
}

.main-copyright-box strong {
  font-size: 15px;
  font-weight: 900;
  color: #183f36;
  letter-spacing: -0.02em;
}

.main-copyright-box span {
  display: inline-block;
  color: #98a2b3;
}

.main-copyright-box a {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  font-weight: 900;
  color: #183f36;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.main-copyright-box a:hover {
  color: #087443;
}

.copyright-contact {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 7px !important;
  font-size: 12px;
  color: #172033;
}

.copyright-contact span {
  color: #172033;
  font-weight: 900;
}

.copyright-copy {
  margin-top: 8px !important;
  color: #98a2b3;
}

/* ============================================================
   금융/대출 관련 고지 링크
============================================================ */

.copyright-policy-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(228, 231, 236, 0.85);
}

.copyright-policy-links a,
.copyright-policy-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 0;
  padding: 0;

  border: 0;
  background: transparent;

  color: #183f36;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-underline-offset: 2px;

  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.copyright-policy-links a:hover,
.copyright-policy-button:hover {
  color: #087443;
}

.copyright-policy-links a:focus-visible,
.copyright-policy-button:focus-visible,
.policy-modal-close:focus-visible {
  outline: 3px solid rgba(8, 116, 67, 0.22);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ============================================================
   금융소비자보호 / 등록증 모달
============================================================ */

.policy-modal-open {
  overflow: hidden;
}

.policy-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;

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

  padding: 22px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
}

.policy-modal-overlay.is-open {
  display: flex;
}

.policy-modal {
  width: min(760px, 100%);
  max-height: min(780px, 88vh);

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

  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(228, 231, 236, 0.95);
  box-shadow: 0 28px 88px rgba(15, 23, 42, 0.28);
}

.policy-image-modal {
  width: min(640px, 100%);
}

.policy-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 18px 20px;
  border-bottom: 1px solid #e5eaf2;
  background: #ffffff;
}

.policy-modal-head h2 {
  margin: 0;
  color: #172033;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.policy-modal-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 999px;
  background: #f3f6fb;
  color: #475467;

  cursor: pointer;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.policy-modal-close:hover {
  background: #e8eef8;
  color: #172033;
  transform: translateY(-1px);
}

.policy-modal-body {
  overflow-y: auto;
  padding: 20px;
  overscroll-behavior: contain;
}

.policy-text-body {
  color: #344054;
}

.policy-text-body h3 {
  margin: 26px 0 10px;
  color: #183f36;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.04em;
}

.policy-text-body h3:first-child {
  margin-top: 0;
}

.policy-text-body h4 {
  margin: 18px 0 8px;
  color: #172033;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.03em;
}

.policy-text-body p {
  margin: 0 0 12px;
  color: #475467;
  font-size: 13px;
  line-height: 1.78;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.policy-license-body {
  padding: 16px;
  background: #f7f9fc;
}

.policy-license-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;

  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(228, 231, 236, 0.95);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

/* ============================================================
   반응형
============================================================ */

@media (max-width: 768px) {
  .main-copyright-box {
    margin-top: 16px;
    margin-bottom: 24px;
    padding: 15px 14px 16px;
    border-radius: 20px;
    font-size: 10.5px;
    line-height: 1.55;
  }

  .copyright-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .main-copyright-box strong {
    font-size: 14px;
  }

  .copyright-policy-links {
    gap: 4px 9px;
    margin-top: 8px;
    padding-top: 8px;
  }

  .copyright-policy-links a,
  .copyright-policy-button {
    min-height: 21px;
    font-size: 10.5px;
  }

  .policy-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .policy-modal {
    width: 100%;
    max-height: 86vh;
    border-radius: 22px 22px 0 0;
  }

  .policy-image-modal {
    width: 100%;
  }

  .policy-modal-head {
    padding: 16px;
  }

  .policy-modal-head h2 {
    font-size: 16px;
  }

  .policy-modal-close {
    width: 34px;
    height: 34px;
  }

  .policy-modal-body {
    padding: 16px;
  }

  .policy-text-body h3 {
    margin-top: 22px;
    font-size: 15px;
  }

  .policy-text-body h4 {
    font-size: 13.5px;
  }

  .policy-text-body p {
    font-size: 12.5px;
    line-height: 1.72;
  }

  .policy-license-body {
    padding: 12px;
  }

  .policy-license-image {
    border-radius: 12px;
  }
}