/* ==========================================================================
   THE CORE 약관 및 정책 (이용약관, 개인정보처리방침, 취소 및 환불 규정) 스타일
   ========================================================================== */

/* --------------------------------------------------------------------------
   공통 문서 뷰어 (policy-doc)
   -------------------------------------------------------------------------- */
.policy-doc {
    color: #2b2f3a;
    font-size: 14px;
    line-height: 1.85;
    word-break: keep-all;
}

.policy-doc__header {
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 2px solid #eaedf3;
}

.policy-doc__brand {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-red, #dc2626);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.policy-doc__title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.policy-doc__meta {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.policy-doc__body {
    padding: 4px 0 16px 0;
}

.policy-doc__article-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 28px 0 10px 0;
    padding-left: 10px;
    border-left: 3px solid var(--color-red, #dc2626);
    line-height: 1.4;
}

.policy-doc__section-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 36px 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.policy-doc__p {
    margin: 0 0 10px 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.85;
}

.policy-doc__p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   문서 내 테이블 (policy-doc__table)
   -------------------------------------------------------------------------- */
.policy-doc__table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 14px 0 20px 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.policy-doc__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.6;
    background: #ffffff;
}

.policy-doc__table th {
    background: #f8fafc;
    color: #1f2937;
    font-weight: 700;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.policy-doc__table td {
    padding: 12px 14px;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

.policy-doc__table tr:last-child td {
    border-bottom: none;
}

.policy-doc__table td:first-child {
    font-weight: 600;
    color: #1f2937;
}

/* --------------------------------------------------------------------------
   탭 네비게이션 (.policy-tabs)
   -------------------------------------------------------------------------- */
.policy-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
    background: #f8fafc;
    padding: 6px;
    border-radius: 10px;
}

.policy-tab-btn {
    flex: 1;
    padding: 11px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
}

.policy-tab-btn:hover {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.6);
}

.policy-tab-btn.is-active {
    background: #ffffff;
    color: var(--color-red, #dc2626);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.policy-tab-panel {
    display: none;
}

.policy-tab-panel.is-active {
    display: block;
    animation: policyFadeIn 0.2s ease;
}

@keyframes policyFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   전용 서브페이지 레이아웃 (.policy-page)
   -------------------------------------------------------------------------- */
.policy-page {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    min-height: calc(100vh - 80px);
}

.policy-page__breadcrumb {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.policy-page__breadcrumb a {
    color: #64748b;
    text-decoration: none;
}

.policy-page__breadcrumb a:hover {
    color: var(--color-red, #dc2626);
}

/* --------------------------------------------------------------------------
   팝업 모달 (.policy-modal)
   -------------------------------------------------------------------------- */
.policy-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.policy-modal-backdrop.is-open {
    display: flex;
}

.policy-modal {
    background: #ffffff;
    width: 100%;
    max-width: 820px;
    max-height: 88vh;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: policyModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes policyModalPop {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.policy-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.policy-modal__title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-modal__logo {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-red, #dc2626);
    letter-spacing: 1px;
}

.policy-modal__subtitle {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.policy-modal__close-btn {
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.policy-modal__close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.policy-modal__tabs-wrap {
    padding: 12px 24px 0 24px;
    background: #ffffff;
}

.policy-modal__tabs-wrap .policy-tabs {
    margin-bottom: 0;
}

.policy-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
    background: #ffffff;
}

.policy-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.policy-modal__confirm-btn {
    padding: 10px 24px;
    background: var(--color-red, #dc2626);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.policy-modal__confirm-btn:hover {
    opacity: 0.92;
}

/* --------------------------------------------------------------------------
   메인 주문 환불 아코디언 카드 보완
   -------------------------------------------------------------------------- */
.order-accordion__body-content {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.7;
}

.order-accordion__point-list {
    margin: 8px 0;
    padding-left: 18px;
    list-style-type: disc;
}

.order-accordion__point-list li {
    margin-bottom: 4px;
}

.order-accordion__view-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-red, #dc2626);
    text-decoration: none;
    cursor: pointer;
}

.order-accordion__view-more:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   사이드바 하단 정책 링크 보완
   -------------------------------------------------------------------------- */
.sidebar-info__links {
    flex-wrap: wrap;
    line-height: 1.6;
    padding-top: 6px;
}

.sidebar-info__links a:hover {
    color: var(--color-red, #dc2626);
    text-decoration: underline;
}

/* ?????덈퉬? 怨꾩궛???쒖떆 (?몃씪??style ?泥? */
.policy-doc__th--w25 {
    width: 25%;
}

.policy-doc__th--w35 {
    width: 35%;
}

.policy-doc__th--w40 {
    width: 40%;
}

.policy-doc__th--w50 {
    width: 50%;
}

.policy-doc__formula {
    display: inline-block;
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin: 4px 0;
}
