/* Style 4 notice and agreement pages: compact mobile reading layout. */
@media (max-width: 768px) {
    body.style4-notice-page {
        overflow-x: hidden;
        background: #f5f7fa;
    }

    body.style4-notice-page .style4-notice-main {
        padding: 10px 0 28px;
    }

    body.style4-notice-page .style4-notice-shell {
        width: 100%;
        max-width: none;
        padding: 0 12px;
    }

    body.style4-notice-page .style4-notice-layout {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    body.style4-notice-page .style4-help-nav.sidebar {
        width: 100%;
        flex: none;
        padding: 0;
        border: 1px solid #e5e9ef;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: none;
    }

    body.style4-notice-page .style4-help-nav__shell {
        padding: 9px;
    }

    body.style4-notice-page .style4-help-nav__head,
    body.style4-notice-page .style4-help-nav__focus,
    body.style4-notice-page .style4-help-nav__section-title,
    body.style4-notice-page .style4-help-nav__footer {
        display: none;
    }

    body.style4-notice-page .style4-help-nav__list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin: 0;
        padding: 0;
    }

    body.style4-notice-page .style4-help-nav__item {
        min-width: 0;
        margin: 0;
    }

    body.style4-notice-page .style4-help-nav__list.tree-drawer li a {
        display: block;
        min-width: 0;
        min-height: 36px;
        padding: 0 5px;
        border: 1px solid #e2e7ed;
        border-radius: 6px;
        background: #ffffff;
        box-shadow: none;
        text-align: center;
    }

    body.style4-notice-page .style4-help-nav__item-index,
    body.style4-notice-page .style4-help-nav__item-copy em,
    body.style4-notice-page .style4-help-nav__item-state {
        display: none;
    }

    body.style4-notice-page .style4-help-nav__item-copy {
        display: block;
        min-width: 0;
    }

    body.style4-notice-page .style4-help-nav__item-copy strong {
        display: block;
        overflow: hidden;
        color: #4d5b6d;
        font-size: 12px;
        line-height: 36px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.style4-notice-page .style4-help-nav__list.tree-drawer li a:hover,
    body.style4-notice-page .style4-help-nav__list.tree-drawer li a.cur {
        border-color: transparent;
        background: linear-gradient(135deg, var(--primary-orange, #ff5605) 0%, #ff9243 100%);
        box-shadow: 0 6px 14px rgba(255, 86, 5, 0.2);
    }

    body.style4-notice-page .style4-help-nav__list.tree-drawer li a:hover .style4-help-nav__item-copy strong,
    body.style4-notice-page .style4-help-nav__list.tree-drawer li a.cur .style4-help-nav__item-copy strong {
        color: #ffffff;
    }

    body.style4-notice-page .style4-notice-content.help-main {
        width: 100%;
        min-width: 0;
        padding: 0;
        border-radius: 0;
    }

    body.style4-notice-page .help-page-head {
        display: block;
        padding: 14px;
        border: 1px solid #f0dfd2;
        border-radius: 8px;
        box-shadow: none;
    }

    body.style4-notice-page .help-page-head__eyebrow {
        min-height: 23px;
        padding: 0 7px;
        border-radius: 4px;
        font-size: 9px;
        line-height: 23px;
        letter-spacing: 0.06em;
    }

    body.style4-notice-page .help-page-head__copy h1 {
        margin-top: 7px;
        font-size: 22px;
        line-height: 1.35;
    }

    body.style4-notice-page .help-page-head__copy p {
        max-width: none;
        margin-top: 4px;
        font-size: 13px;
        line-height: 1.58;
    }

    body.style4-notice-page .help-page-head__meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
        min-width: 0;
        margin-top: 10px;
    }

    body.style4-notice-page .help-page-head__meta-card {
        min-width: 0;
        padding: 8px;
        border-radius: 6px;
    }

    body.style4-notice-page .help-page-head__meta-card strong {
        overflow: hidden;
        font-size: 15px;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.style4-notice-page .help-page-head__meta-card span {
        margin-top: 2px;
        font-size: 10px;
        line-height: 1.35;
    }

    body.style4-notice-page .help-breadcrumb {
        gap: 6px;
        margin: 8px 2px 0;
        padding: 0 0 7px;
        font-size: 12px;
        line-height: 1.4;
    }

    body.style4-notice-page .help-breadcrumb__icon {
        display: none;
    }

    body.style4-notice-page .style4-notice-list.help-list-card {
        margin-top: 2px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    body.style4-notice-page .style4-notice-list ul {
        margin: 0;
        padding: 0;
    }

    body.style4-notice-page .style4-notice-list li {
        display: block;
        margin-top: 9px;
        padding: 12px;
        border: 1px solid #e4e9ef;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(31, 41, 55, 0.035);
    }

    body.style4-notice-page .style4-notice-list li:first-child {
        margin-top: 0;
    }

    body.style4-notice-page .style4-notice-list li:last-child {
        border-bottom: 1px solid #e4e9ef;
    }

    body.style4-notice-page .style4-notice-list li:hover {
        margin-right: 0;
        margin-left: 0;
        padding-right: 12px;
        padding-left: 12px;
        border-radius: 8px;
        background: #ffffff;
    }

    body.style4-notice-page .help-notice-item__link {
        flex-direction: column;
        gap: 0;
    }

    body.style4-notice-page .help-notice-item__date.date {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        width: auto;
        min-width: 0;
        min-height: 25px;
        height: auto;
        margin: 0 0 8px;
        padding: 4px 8px;
        border-radius: 5px;
        font-size: 12px;
        line-height: 1.35;
        white-space: nowrap;
    }

    body.style4-notice-page .help-notice-item__date.date br {
        display: none;
    }

    body.style4-notice-page .help-notice-item__date .year {
        margin: 0;
        font-size: 10px;
        line-height: 1.35;
    }

    body.style4-notice-page .help-notice-item__text {
        width: 100%;
        min-width: 0;
    }

    body.style4-notice-page .help-notice-item__topline {
        gap: 5px;
        margin-bottom: 5px;
    }

    body.style4-notice-page .help-notice-item__badge,
    body.style4-notice-page .help-notice-item__hint {
        min-height: 21px;
        padding: 0 7px;
        border-radius: 4px;
        font-size: 9px;
        line-height: 21px;
    }

    body.style4-notice-page .style4-notice-list .text h5 {
        display: -webkit-box;
        overflow: hidden;
        margin-bottom: 5px;
        color: #243247;
        font-size: 16px;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    body.style4-notice-page .style4-notice-list .text p {
        color: #687689;
        font-size: 13px;
        line-height: 1.62;
        -webkit-line-clamp: 3;
        overflow-wrap: anywhere;
    }

    body.style4-notice-page .help-empty-state {
        padding: 12px !important;
    }

    body.style4-notice-page .help-empty-state .text {
        padding: 30px 14px;
        border-radius: 8px;
    }

    body.style4-notice-page .help-article-card.agreement-article {
        display: block;
        width: 100%;
        min-width: 0;
        margin-top: 2px;
        padding: 17px 15px 21px;
        border: 1px solid #e4e9ef;
        border-radius: 8px;
        box-shadow: none;
        color: #4d5b6d;
        font-size: 15px;
        line-height: 1.82;
        overflow-wrap: anywhere;
    }

    body.style4-notice-page .help-article-card.agreement-article h1,
    body.style4-notice-page .help-article-card.agreement-article h2,
    body.style4-notice-page .help-article-card.agreement-article h3,
    body.style4-notice-page .help-article-card.agreement-article h4,
    body.style4-notice-page .help-article-card.agreement-article h5,
    body.style4-notice-page .help-article-card.agreement-article h6 {
        margin: 24px 0 12px;
        line-height: 1.45;
    }

    body.style4-notice-page .help-article-card.agreement-article h1 {
        font-size: 22px;
    }

    body.style4-notice-page .help-article-card.agreement-article h2 {
        font-size: 19px;
    }

    body.style4-notice-page .help-article-card.agreement-article h3 {
        font-size: 17px;
    }

    body.style4-notice-page .help-article-card.agreement-article table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        border-radius: 6px;
        -webkit-overflow-scrolling: touch;
    }

    body.style4-notice-page .pagination {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        margin-top: 14px;
        padding: 2px 0;
    }

    body.style4-notice-page .pagination > ul.pagination {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    body.style4-notice-page .pagination .pagination-total {
        flex: 0 0 auto;
        width: auto;
        margin: 0;
    }
}

@media (max-width: 374px) {
    body.style4-notice-page .style4-notice-shell {
        padding-right: 10px;
        padding-left: 10px;
    }

    body.style4-notice-page .style4-help-nav__list {
        gap: 5px;
    }

    body.style4-notice-page .style4-help-nav__list.tree-drawer li a {
        padding-right: 3px;
        padding-left: 3px;
    }

    body.style4-notice-page .style4-help-nav__item-copy strong {
        font-size: 11px;
    }

    body.style4-notice-page .help-page-head,
    body.style4-notice-page .style4-notice-list li {
        padding-right: 10px;
        padding-left: 10px;
    }

    body.style4-notice-page .help-article-card.agreement-article {
        padding-right: 13px;
        padding-left: 13px;
    }
}
