@charset "utf-8";

/* =========================================================
   개인정보취급방침 공통 / 팝업
   File: privacy_car.css
========================================================= */

:root {
  --privacy-primary: #1f73e8;
  --privacy-primary-dark: #0f5fc7;
  --privacy-primary-soft: #edf5ff;
  --privacy-text: #20262e;
  --privacy-sub: #5f6874;
  --privacy-line: #e3e8ee;
  --privacy-bg: #f6f8fb;
  --privacy-card: #ffffff;
}

/* ---------------------------------------------------------
   Standalone privacy page
--------------------------------------------------------- */
.policy-wrap {
  width: calc(100% - 48px);
  max-width: 1120px;
  margin: 48px auto 70px;
  color: var(--privacy-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic",
               Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  word-break: keep-all;
}

.policy-wrap *,
.policy-wrap *::before,
.policy-wrap *::after {
  box-sizing: border-box;
}

.policy-wrap h1,
.policy-wrap h2,
.policy-wrap h3,
.policy-wrap p,
.policy-wrap ul {
  margin: 0;
  padding: 0;
}

.policy-wrap ul {
  list-style: none;
}

.policy-wrap a {
  color: var(--privacy-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-head {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #20262e;
}

.policy-head h1 {
  color: #151a20;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.04em;
}

.policy-body {
  color: var(--privacy-sub);
}

.policy-body > p {
  margin-top: 10px;
}

.policy-body > p:first-child {
  margin-top: 0;
}

.policy-notice {
  margin-top: 18px !important;
  padding: 14px 16px;
  border: 1px solid #f1d59a;
  border-radius: 10px;
  background: #fff8ec;
  color: #8a5a13;
  font-weight: 700;
}

.policy-section {
  margin-top: 24px;
  padding: 24px 26px;
  border: 1px solid var(--privacy-line);
  border-radius: 14px;
  background: var(--privacy-card);
}

.policy-section h2 {
  position: relative;
  margin-bottom: 18px;
  padding-left: 14px;
  color: #171d24;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -.03em;
}

.policy-section h2::before {
  position: absolute;
  top: .3em;
  bottom: .28em;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: var(--privacy-primary);
  content: "";
}

.policy-section h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  color: #29323c;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}

.policy-section h2 + h3 {
  margin-top: 0;
}

.policy-section p {
  margin-top: 9px;
}

.policy-section h2 + p,
.policy-section h3 + p {
  margin-top: 0;
}

.policy-section ul {
  margin-top: 12px;
  padding: 15px 18px;
  border-radius: 10px;
  background: var(--privacy-bg);
}

.policy-section ul + ul {
  margin-top: 12px;
}

.policy-section li {
  position: relative;
  padding-left: 16px;
  color: #4d5864;
}

.policy-section li + li {
  margin-top: 8px;
}

.policy-section li::before {
  position: absolute;
  top: .78em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--privacy-primary);
  content: "";
}

.policy-section li strong {
  color: #27313b;
  font-weight: 800;
}

.policy-box {
  margin-top: 14px;
  padding: 17px 20px;
  border: 1px solid #cfe0f7;
  border-radius: 10px;
  background: var(--privacy-primary-soft);
}

.policy-box p {
  margin: 0;
  color: #34465b;
  font-weight: 600;
}

.policy-example {
  margin-top: 14px !important;
  padding: 14px 17px;
  border-left: 4px solid var(--privacy-primary);
  border-radius: 0 8px 8px 0;
  background: #f4f8fd;
  color: #4d5c6b;
}

/* ---------------------------------------------------------
   Privacy modal
--------------------------------------------------------- */
body.privacy_policy_open {
  overflow: hidden;
}

.privacy_policy_modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.privacy_policy_modal.is-open {
  display: flex;
}

.privacy_policy_modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 32, .62);
}

.privacy_policy_modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dfe4ea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(17, 28, 42, .28);
}

.privacy_policy_modal__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding: 14px 18px 14px 26px;
  border-bottom: 1px solid #e4e8ee;
  background: #fff;
}

.privacy_policy_modal__header h2 {
  margin: 0;
  color: #151a20;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
}

.privacy_policy_modal__close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f4f7;
  color: #252c34;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.privacy_policy_modal__close:hover {
  background: var(--privacy-primary);
  color: #fff;
}

.privacy_policy_modal__scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* modal 안에서는 standalone 페이지 여백 제거 */
.privacy_policy_modal .policy-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px 26px 32px;
}

.privacy_policy_modal .policy-head {
  display: none;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 820px) {
  .policy-wrap {
    width: calc(100% - 32px);
    margin-top: 34px;
    margin-bottom: 52px;
  }

  .policy-head h1 {
    font-size: 28px;
  }

  .policy-section {
    padding: 22px 20px;
  }

  .privacy_policy_modal {
    padding: 18px;
  }

  .privacy_policy_modal__dialog {
    max-height: 90vh;
  }
}

@media (max-width: 700px) {
  .policy-wrap {
    width: calc(100% - 28px);
    margin-top: 26px;
    margin-bottom: 44px;
    font-size: 14px;
    line-height: 1.75;
  }

  .policy-head {
    margin-bottom: 22px;
    padding-bottom: 16px;
  }

  .policy-head h1 {
    font-size: 26px;
  }

  .policy-section {
    margin-top: 16px;
    padding: 18px 14px;
    border-radius: 10px;
  }

  .policy-section h2 {
    margin-bottom: 14px;
    padding-left: 11px;
    font-size: 18px;
  }

  .policy-section h2::before {
    width: 3px;
  }

  .policy-section h3 {
    margin-top: 16px;
    font-size: 16px;
  }

  .policy-section ul {
    padding: 12px;
  }

  .privacy_policy_modal {
    align-items: stretch;
    padding: 10px;
  }

  .privacy_policy_modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 20px);
    margin: auto 0;
    border-radius: 14px;
  }

  .privacy_policy_modal__header {
    min-height: 58px;
    padding: 9px 10px 9px 15px;
  }

  .privacy_policy_modal__header h2 {
    font-size: 20px;
  }

  .privacy_policy_modal__close {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .privacy_policy_modal .policy-wrap {
    padding: 16px 12px 22px;
  }
}
