/* =========================
   PRIVACY
========================= */

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #ffffff;
}

button {
  font-family: inherit;
}

.privacy-screen {
  width: 100%;
  max-width: 100%;
  height: auto !important;
  min-height: 100dvh !important;
  overflow: visible !important;
  padding-bottom: env(safe-area-inset-bottom);
  background-color: #ffffff !important;
}

/* =========================
   헤더 (강제 정렬)
========================= */

.privacy-screen {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.privacy-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 20;
  width: 100%;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top) !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  padding-bottom: 0 !important;
  height: calc(44px + env(safe-area-inset-top)) !important;
  min-height: unset !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid #eeeeee;
  background-color: rgba(255, 255, 255, 0.98);
}

.privacy-header h1 {
  position: absolute;
  left: 50%;
  top: calc(env(safe-area-inset-top) + 22px) !important;
  bottom: auto !important;
  margin: 0;
  transform: translate(-50%, -50%);
  color: #111111;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.back-button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  margin-top: 0 !important;
}

.back-button img {
  width: 22px;
  height: 22px;
  display: block;
}

.header-space {
  width: 32px;
  height: 32px;
  margin-top: 0 !important;
}

/* =========================
   소개
========================= */

.privacy-intro {
  padding: 16px 20px 20px;
}

.privacy-intro h2 {
  margin: 0 0 10px;
  color: #222222;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.privacy-intro p {
  margin: 0 0 16px;
  color: #666666;
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
}

.effective-date {
  color: #999999;
  font-size: 12px;
}

/* =========================
   핵심 요약
========================= */

.privacy-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px 28px;
  border-bottom: 8px solid #f6f6f6;
}

.summary-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px;
  border-radius: 12px;
  background-color: #f7f9f9;
}

.summary-number {
  min-width: 28px;
  color: #52aead;
  font-size: 13px;
  font-weight: 700;
}

.summary-card strong {
  display: block;
  margin-bottom: 5px;
  color: #333333;
  font-size: 14px;
  font-weight: 700;
}

.summary-card p {
  margin: 0;
  color: #777777;
  font-size: 12px;
  line-height: 1.5;
}

/* =========================
   방침 목록
========================= */

.privacy-list {
  background-color: #ffffff !important;
}

.privacy-item {
  border-bottom: 1px solid #eeeeee;
  background-color: #ffffff !important;
}

.privacy-title-button {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: none;
  background-color: #ffffff;
  color: #222222;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.privacy-title-button:active {
  background-color: #f8fafa;
}

.privacy-arrow {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  margin-right: 3px;
  border-right: 1.5px solid #777777;
  border-bottom: 1.5px solid #777777;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.privacy-item.open .privacy-arrow {
  transform: rotate(225deg);
}

/* =========================
   상세 내용
========================= */

.privacy-content {
  display: none;
  padding: 0 20px 22px;
  color: #555555;
  font-size: 14px;
  line-height: 1.75;
  word-break: keep-all;
  background-color: #ffffff !important;
}

.privacy-item.open .privacy-content {
  display: block;
}

.privacy-content h3 {
  margin: 20px 0 8px;
  color: #333333;
  font-size: 14px;
  font-weight: 700;
}

.privacy-content h3:first-child {
  margin-top: 0;
}

.privacy-content p {
  margin: 0 0 12px;
}

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

.privacy-content ol,
.privacy-content ul {
  margin: 0;
  padding-left: 21px;
}

.privacy-content li {
  margin-bottom: 8px;
  padding-left: 3px;
}

.privacy-content li:last-child {
  margin-bottom: 0;
}

.privacy-notice {
  margin-top: 17px !important;
  padding: 14px;
  border-radius: 10px;
  background-color: #edf7f7;
  color: #3f8584;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
}

/* =========================
   표
========================= */

.privacy-table-wrap {
  width: 100%;
  margin: 14px 0;
  overflow-x: auto;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.privacy-table th,
.privacy-table td {
  padding: 11px 10px;
  border: 1px solid #e5e5e5;
  text-align: left;
  vertical-align: top;
}

.privacy-table th {
  background-color: #f7f9f9;
  color: #444444;
  font-weight: 700;
}

.privacy-table td {
  color: #666666;
  line-height: 1.5;
}

/* =========================
   개인정보 문의 버튼
========================= */

.privacy-contact-button {
  width: 100%;
  height: 48px;
  margin-top: 10px;
  border: none;
  border-radius: 10px;
  background-color: #52aead;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* =========================
   하단
========================= */

.privacy-footer {
  padding: 28px 20px calc(40px + env(safe-area-inset-bottom));
  background-color: #f7f7f7;
}

.privacy-footer p {
  margin: 0;
  color: #999999;
  font-size: 12px;
  line-height: 1.6;
}

/* =========================
   PC / 태블릿
========================= */

@media (min-width: 480px) {
  body {
    background-color: #f2f3f6;
    background: linear-gradient(
      to right,
      #f2f3f6 0,
      #f2f3f6 calc(50% - 215px),
      #ffffff calc(50% - 215px),
      #ffffff calc(50% + 215px),
      #f2f3f6 calc(50% + 215px),
      #f2f3f6 100%
    ) !important;
    background-attachment: fixed !important;
  }

  .privacy-screen {
    max-width: 430px;
    min-height: 100vh;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  }
}