/* ADKO 소개 페이지 — 서비스·결제·환불·운영규정 */
.adko-legal {
    background: #fafafa;
    border-top: 1px solid #ced4da;
}

.adko-legal .section-title span {
    color: #db2d2e;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.adko-legal .section-title h2 {
    margin-bottom: 12px;
}

.adko-legal .section-title p {
    color: #6a6b7c;
    font-size: 16px;
    line-height: 1.7;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.adko-legal-layout {
    align-items: flex-start;
}

.adko-legal-nav {
    position: sticky;
    top: 24px;
    padding: 22px 18px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #ffffff;
}

.adko-legal-nav__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #323232;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ced4da;
}

.adko-legal-nav__label i {
    color: #db2d2e;
}

.adko-legal-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.adko-legal-nav li + li {
    margin-top: 4px;
}

.adko-legal-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    color: #5c5c5c;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.adko-legal-nav a i {
    width: 1.1em;
    color: #adb5bd;
}

.adko-legal-nav a:hover,
.adko-legal-nav a:focus {
    background: #f8f9fa;
    color: #db2d2e;
    text-decoration: none;
}

.adko-legal-nav a.is-active {
    background: rgba(219, 45, 46, 0.08);
    color: #db2d2e;
}

.adko-legal-nav a.is-active i {
    color: #db2d2e;
}

.adko-legal-article {
    scroll-margin-top: 96px;
    margin-bottom: 28px;
    padding: 32px 32px 28px;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 8px;
}

.adko-legal-article:last-child {
    margin-bottom: 0;
}

.adko-legal-article__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ced4da;
}

.adko-legal-article__icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(219, 45, 46, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.adko-legal-article__icon i {
    font-size: 18px;
    color: #db2d2e;
}

.adko-legal-article__head h3 {
    font-size: 22px;
    font-weight: 700;
    color: #353535;
    margin: 0 0 4px;
}

.adko-legal-article__head p {
    margin: 0;
    font-size: 13px;
    color: #8d8d8d;
}

.adko-legal-article h4 {
    font-size: 16px;
    font-weight: 700;
    color: #353535;
    margin: 22px 0 10px;
}

.adko-legal-article p,
.adko-legal-article li {
    font-size: 15px;
    line-height: 1.75;
    color: #5c5c5c;
}

.adko-legal-article p {
    margin-bottom: 12px;
}

.adko-legal-article ul,
.adko-legal-article ol {
    margin: 0 0 14px;
    padding-left: 1.25rem;
}

.adko-legal-article li + li {
    margin-top: 6px;
}

.adko-legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 18px;
    font-size: 14px;
}

.adko-legal-table th,
.adko-legal-table td {
    border: 1px solid #ced4da;
    padding: 12px 14px;
    vertical-align: top;
    line-height: 1.6;
}

.adko-legal-table th {
    width: 28%;
    background: #f8f9fa;
    color: #353535;
    font-weight: 700;
    white-space: nowrap;
}

.adko-legal-table td {
    color: #5c5c5c;
}

.adko-legal-price {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 8px 0 18px;
}

.adko-legal-price__card {
    flex: 1 1 240px;
    padding: 22px 22px 18px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #fff8f8;
}

.adko-legal-price__card strong.label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #db2d2e;
    margin-bottom: 6px;
}

.adko-legal-price__amount {
    font-size: 32px;
    font-weight: 800;
    color: #353535;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.adko-legal-price__amount small {
    font-size: 15px;
    font-weight: 700;
    margin-left: 4px;
}

.adko-legal-price__note {
    margin: 8px 0 0;
    font-size: 13px;
    color: #8d8d8d;
}

.adko-legal-note {
    margin: 0;
    padding: 14px 16px;
    background: #f8f9fa;
    border-left: 3px solid #db2d2e;
    font-size: 13px !important;
    color: #6a6b7c !important;
}

.adko-legal-article .adko-legal-clause + .adko-legal-clause {
    margin-top: 18px;
}

.adko-legal-clause h4 {
    margin-top: 0;
}

.adko-legal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #ced4da;
}

.adko-legal-actions--top {
    margin-top: 0;
    margin-bottom: 22px;
    padding-top: 0;
    border-top: 0;
}

.adko-legal-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #ffffff;
    color: #353535;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.adko-legal-action-btn i {
    color: #db2d2e;
}

.adko-legal-action-btn:hover,
.adko-legal-action-btn:focus {
    border-color: #db2d2e;
    color: #db2d2e;
    background: #fff8f8;
    outline: none;
}

.adko-legal-modal .modal-header {
    border-color: #ced4da !important;
}

.adko-legal-modal .modal-title,
.adko-legal-modal .modal-header h2 {
    color: #353535;
}

.adko-legal-modal .modal-header h2 i {
    color: #db2d2e;
}

.adko-legal-modal .modal-footer {
    border-color: #ced4da !important;
}

.adko-legal-modal__body {
    max-height: min(70vh, 640px);
    overflow-y: auto;
}

.adko-legal-modal__body h4 {
    font-size: 16px;
    font-weight: 700;
    color: #353535;
    margin: 18px 0 10px;
}

.adko-legal-modal__body p,
.adko-legal-modal__body li {
    font-size: 15px;
    line-height: 1.75;
    color: #5c5c5c;
}

.adko-legal-modal__body ul,
.adko-legal-modal__body ol {
    margin: 0 0 14px;
    padding-left: 1.25rem;
}

@media (max-width: 991.98px) {
    .adko-legal-nav {
        position: sticky;
        top: 0;
        z-index: 20;
        margin-bottom: 20px;
        padding: 12px 12px 8px;
    }

    .adko-legal-nav ul {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding-bottom: 4px;
    }

    .adko-legal-nav li + li {
        margin-top: 0;
    }

    .adko-legal-nav a {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 13px;
    }

    .adko-legal-article {
        padding: 24px 18px 20px;
        scroll-margin-top: 92px;
    }

    .adko-legal-table th {
        width: 36%;
        white-space: normal;
    }
}

@media (max-width: 575.98px) {
    .adko-legal-table,
    .adko-legal-table tbody,
    .adko-legal-table tr,
    .adko-legal-table th,
    .adko-legal-table td {
        display: block;
        width: 100%;
    }

    .adko-legal-table tr {
        margin-bottom: 10px;
        border: 1px solid #ced4da;
    }

    .adko-legal-table th,
    .adko-legal-table td {
        border: 0;
        border-bottom: 1px solid #eee;
    }

    .adko-legal-table th {
        background: #f8f9fa;
        padding-bottom: 6px;
    }
}
