/* 약관 섹션 */
.policy-section {
  padding: 110px 0;
  background: #fffdf7;
}

/* 약관 탭 */
.policy-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;

  margin-bottom: 56px;
  padding-bottom: 18px;

  border-bottom: 1px solid #e7dcc1;
}

.policy-tab {
  position: relative;

  padding: 0 0 18px;

  border: none;
  border-radius: 0;
  outline: none;
  background: transparent;
  box-shadow: none;

  color: #8b8b8b;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;

  cursor: pointer;

  transition: color 0.2s ease;
}

.policy-tab:hover {
  color: #222;
}

.policy-tab.active {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;

  color: #111;
}

.policy-tab.active::after {
  content: '';

  position: absolute;
  left: 50%;
  bottom: -18px;

  width: 54px;
  height: 4px;

  background: #f2b600;

  transform: translateX(-50%);
}

/* 내용 */
.policy-content {
  display: none;
}

.policy-content.active {
  display: block;
}

.policy-content h2 {
  margin-bottom: 12px;

  color: #111;
  font-size: 2.0rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.policy-subtitle {
  margin-bottom: 34px;

  color: #777;
  font-size: 1rem;
  font-weight: 600;
}

.policy-content hr {
  margin: 40px 0;

  border: none;
  border-top: 1px solid #ece4d3;
}

.policy-content article {
  margin-bottom: 42px;
}

.policy-content article:last-child {
  margin-bottom: 0;
}

.policy-content h3 {
  margin-bottom: 14px;

  color: #111;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.policy-content p {
  max-width: 900px;

  color: #555;
  font-size: 1rem;
  line-height: 2;
  font-weight: 500;
}

/* 모바일 */
@media (max-width: 640px) {
  .policy-section {
    padding: 80px 0;
  }

  .policy-tabs {
    gap: 24px;

    overflow-x: auto;
    white-space: nowrap;

    justify-content: flex-start;
  }

  .policy-tab {
    font-size: 1rem;
  }

  .policy-content h2 {
    font-size: 1.9rem;
  }

  .policy-content p {
    font-size: 0.96rem;
    line-height: 1.9;
  }
}

/* 약관 영역: 약식 토글 형태 */
.policy-section {
  margin: 24px auto 28px;
  padding: 0 20px;
  background: transparent;
  border: 0;
}


.policy-section .container {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.policy-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #fff7e8;
  border: 1px solid rgba(255, 168, 0, 0.18);
}

.policy-tab {
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  background: transparent;
  color: #8a7a5c;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  cursor: pointer;
}

.policy-tab.active {
  background: transparent;
  color: #111;
}

.policy-content {
  display: none;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 168, 0, 0.14);
  text-align: left;
}

.policy-content.active {
  display: block;
}

.policy-content h2 {
  margin: 0 0 8px;
  color: #111;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.policy-subtitle {
  margin: 0 0 12px;
  color: #6b5b3f;
  font-size: 0.78rem;
  line-height: 1.6;
  font-weight: 500;
}

.policy-content hr {
  margin: 12px 0 14px;
  border: 0;
  border-top: 1px solid rgba(255, 168, 0, 0.18);
}

.policy-content article {
  margin: 0 0 14px;
}

.policy-content article:last-child {
  margin-bottom: 0;
}

.policy-content h3 {
  margin: 0 0 6px;
  color: #111;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.policy-content p {
  margin: 0 0 8px;
  color: #5f5138;
  font-size: 0.78rem;
  line-height: 1.65;
  font-weight: 500;
  letter-spacing: -0.03em;
}

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

.policy-notice {
  margin: 10px 0 0;
  color: #aaa;
  font-size: 0.72rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.03em;
}

@media (max-width: 640px) {
  .policy-tabs {
    width: 100%;
    flex-direction: column;
    border-radius: 18px;
  }

  .policy-tab {
    width: 100%;
  }

  .policy-content {
    padding: 16px;
  }
}

/* =========================
   시작하기 페이지 약관 영역 반응형 최종 보정
   ========================= */

/* 태블릿 ~ 중간 화면 */
@media (max-width: 1024px) {
  .policy-section {
    width: 100%;
    margin: 20px auto 26px !important;
    padding: 0 18px !important;
  }

  .policy-section .container {
    width: 100%;
    max-width: 760px !important;
    margin: 0 auto !important;
  }

  .policy-tabs {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 12px !important;
    padding: 6px !important;

    display: flex !important;
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: center;
    gap: 6px !important;

    border-radius: 999px !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  .policy-tab {
    flex: 0 1 auto;
    min-width: auto;
    padding: 8px 13px !important;

    font-size: 0.76rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    white-space: nowrap;
  }

  .policy-tab.active::after {
    display: none !important;
  }

  .policy-content {
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 16px 18px !important;
    border-radius: 14px !important;
  }

  .policy-content h2 {
    font-size: 0.98rem !important;
  }

  .policy-content h3 {
    font-size: 0.84rem !important;
  }

  .policy-content p,
  .policy-subtitle {
    font-size: 0.76rem !important;
    line-height: 1.65 !important;
  }

  .policy-notice {
    max-width: 720px;
    margin: 10px auto 0 !important;
    padding: 0 10px;
    font-size: 0.7rem !important;
    line-height: 1.55 !important;
    text-align: center;
  }
}

/* 모바일 */
@media (max-width: 640px) {
  .policy-section {
    margin: 18px auto 24px !important;
    padding: 0 14px !important;
  }

  .policy-tabs {
    width: 100% !important;
    max-width: 420px;
    margin: 0 auto 10px !important;
    padding: 5px !important;

    display: grid !important;
    grid-template-columns: 1fr;
    gap: 5px !important;

    border-radius: 14px !important;
  }

  .policy-tab {
    width: 100% !important;
    padding: 9px 10px !important;

    border-radius: 10px !important;

    font-size: 0.76rem !important;
    line-height: 1.2 !important;
    text-align: center;
  }

  .policy-tab.active {
    background: rgba(255, 168, 0, 0.13) !important;
    color: #111 !important;
  }

  .policy-content {
    width: 100%;
    max-width: 420px !important;
    padding: 15px 14px !important;
    border-radius: 14px !important;
  }

  .policy-content h2 {
    margin-bottom: 7px !important;
    font-size: 0.95rem !important;
  }

  .policy-subtitle {
    margin-bottom: 10px !important;
    font-size: 0.74rem !important;
    line-height: 1.55 !important;
  }

  .policy-content hr {
    margin: 10px 0 12px !important;
  }

  .policy-content article {
    margin-bottom: 12px !important;
  }

  .policy-content h3 {
    margin-bottom: 5px !important;
    font-size: 0.82rem !important;
  }

  .policy-content p {
    font-size: 0.74rem !important;
    line-height: 1.6 !important;
  }

  .policy-notice {
    max-width: 420px;
    margin: 9px auto 0 !important;
    padding: 0 4px;
    font-size: 0.68rem !important;
    line-height: 1.5 !important;
  }
}

/* 아주 작은 화면 */
@media (max-width: 390px) {
  .policy-section {
    padding: 0 10px !important;
  }

  .policy-tab {
    font-size: 0.72rem !important;
    padding: 8px 8px !important;
  }

  .policy-content {
    padding: 13px 12px !important;
  }

  .policy-content p,
  .policy-subtitle {
    font-size: 0.7rem !important;
  }

  .policy-notice {
    font-size: 0.65rem !important;
  }
}

/* 약관 탭 선택 배경: 공통 */
.policy-tab.active {
  background: rgba(255, 168, 0, 0.13) !important;
  color: #111 !important;
  border-radius: 999px !important;
}

/* 기존 선택 밑줄 제거 */
.policy-tab.active::after {
  display: none !important;
}

/* 모바일에서는 선택 배경이 가로로 꽉 차게 */
@media (max-width: 640px) {
  .policy-tab.active {
    border-radius: 12px !important;
  }
}


/* =========================
   시작하기 상단 다운로드 영역 반응형 보정
   ========================= */

/* 중간 화면: 이미지/텍스트 겹침 방지 */
@media (max-width: 980px) {
  .download-section {
    min-height: auto !important;
  }

  .download-layout {
    width: min(720px, 92%) !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 110px 0 64px !important;
    text-align: center !important;
  }

  .download-image {
    justify-content: center !important;
    order: 1;
  }

  .download-image img {
    width: min(44vw, 240px) !important;
    min-width: 120px !important;
    max-width: 200px !important;
    transform: none !important;
  }

  .download-copy {
    order: 2;
    text-align: center !important;
  }

  .download-copy span {
    margin-bottom: 12px !important;
    font-size: 0.82rem !important;
  }

  .download-copy h1 {
    margin-bottom: 20px !important;
    font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.06em !important;
  }

  .download-copy p {
    max-width: 560px !important;
    margin: 0 auto 28px !important;
    font-size: 0.95rem !important;
    line-height: 1.75 !important;
  }

  .download-buttons {
    justify-content: center !important;
  }

  .download-buttons a {
    width: 220px !important;
  }
}

/* 모바일: 세로 정렬 */
@media (max-width: 640px) {
  .download-layout {
    width: min(420px, 90%) !important;
    padding: 104px 0 52px !important;
    gap: 24px !important;
  }

  .download-image img {
    width: min(58vw, 210px) !important;
    min-width: 120px !important;
    max-width: 180px !important;
    transform: none !important;
  }

  .download-copy h1 {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
    line-height: 1.18 !important;
  }

  .download-copy p {
    font-size: 0.88rem !important;
    line-height: 1.7 !important;
  }

  .download-copy p br {
    display: none;
  }

  .download-buttons a {
    width: 190px !important;
  }
}

/* 아주 작은 화면 */
@media (max-width: 390px) {
  .download-layout {
    padding-top: 96px !important;
  }

  .download-image img {
    width: min(54vw, 150px) !important;
  }

  .download-copy h1 {
    font-size: 1.65rem !important;
  }

  .download-buttons a {
    width: 175px !important;
  }
}