/* ===================================
   Policy Page – Toss/Starbucks Style
   =================================== */

/* Hero Banner */
.policy-hero {
    padding: 160px 0 60px;
    background: linear-gradient(135deg, #1a2a44 0%, #2d4a7a 100%);
    text-align: center;
}

.policy-hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -0.03em;
}

.policy-hero p {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    margin: 0;
    font-weight: 400;
}

/* Tab Navigation */
.policy-nav-wrap {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 60px;
    z-index: 10;
}

.policy-nav {
    display: flex;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

.policy-nav a {
    padding: 18px 0;
    margin-right: 32px;
    font-size: 15px;
    font-weight: 500;
    color: #bbb;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.policy-nav a:hover {
    color: #555;
}

.policy-nav a.active {
    color: #111;
    font-weight: 700;
    border-bottom-color: #111;
}

/* Content */
.policy-body {
    background: #fff;
    padding: 56px 24px 80px;
}

.policy-inner {
    max-width: 720px;
    margin: 0 auto;
}

/* Accordion */
.policy-list {
    border-top: 2px solid #111;
}

.policy-item {
    border-bottom: 1px solid #eee;
}

.policy-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.policy-item-header:hover h3 {
    color: var(--primary);
}

.policy-item-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0;
    letter-spacing: -0.02em;
    transition: color 0.15s;
}

.policy-item-header .arr {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s;
    margin-left: 16px;
}

.policy-item-header .arr svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #999;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s;
}

.policy-item.open .policy-item-header .arr {
    background: #111;
}

.policy-item.open .policy-item-header .arr svg {
    stroke: #fff;
    transform: rotate(180deg);
}

/* Accordion body */
.policy-item-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.policy-item.open .policy-item-body {
    grid-template-rows: 1fr;
}

.policy-item-body > div {
    overflow: hidden;
}

.policy-item-content {
    padding: 0 0 32px;
}

/* Typography */
.policy-item-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.9;
    margin: 0 0 12px;
    word-break: keep-all;
}

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

.policy-item-content ol {
    list-style: none;
    counter-reset: c;
    margin: 4px 0 14px;
    padding: 0;
}

.policy-item-content ol > li {
    counter-increment: c;
    padding-left: 28px;
    position: relative;
    font-size: 15px;
    color: #555;
    line-height: 1.9;
    margin-bottom: 8px;
    word-break: keep-all;
}

.policy-item-content ol > li::before {
    content: counter(c);
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f0f0f0;
    font-size: 11px;
    font-weight: 700;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
}

.policy-item-content ul {
    list-style: none;
    margin: 4px 0 14px;
    padding: 0;
}

.policy-item-content ul > li {
    padding-left: 16px;
    position: relative;
    font-size: 15px;
    color: #555;
    line-height: 1.9;
    margin-bottom: 4px;
    word-break: keep-all;
}

.policy-item-content ul > li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 12px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ccc;
}

.sub-list {
    margin-left: 28px !important;
}

/* Table */
.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.policy-table th,
.policy-table td {
    padding: 14px 20px;
    text-align: left;
}

.policy-table th {
    background: #fafafa;
    font-weight: 600;
    color: #333;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.policy-table td {
    color: #555;
    line-height: 1.6;
    border-bottom: 1px solid #f5f5f5;
}

.policy-table tbody tr:last-child td {
    border-bottom: none;
}

/* Note */
.policy-note {
    background: #f8f9fb;
    padding: 16px 20px;
    margin: 16px 0 0;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    border-radius: 8px;
    word-break: keep-all;
}

.policy-note strong {
    color: #333;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
    .policy-hero {
        padding: 130px 20px 48px;
    }

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

    .policy-nav a {
        padding: 16px 0;
        margin-right: 24px;
        font-size: 14px;
    }

    .policy-body {
        padding: 40px 20px 60px;
    }

    .policy-item-header {
        padding: 20px 0;
    }

    .policy-item-header h3 {
        font-size: 15px;
    }

    .policy-item-content p,
    .policy-item-content ol > li,
    .policy-item-content ul > li {
        font-size: 14px;
        line-height: 1.85;
    }

    .policy-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .policy-hero {
        padding: 110px 16px 40px;
    }

    .policy-hero h1 {
        font-size: 22px;
    }

    .policy-hero p {
        font-size: 13px;
    }

    .policy-nav a {
        padding: 14px 0;
        margin-right: 20px;
        font-size: 13px;
    }

    .policy-body {
        padding: 32px 16px 48px;
    }

    .policy-item-header h3 {
        font-size: 14px;
    }

    .policy-item-content p,
    .policy-item-content ol > li,
    .policy-item-content ul > li {
        font-size: 13.5px;
    }

    .policy-item-content ol > li::before {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }

    .policy-item-content ol > li {
        padding-left: 26px;
    }
}
