@media screen {
    .legal-print-letterhead {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .legal-mobile-only {
        display: none !important;
    }

    .legal-pc-only {
        display: flex !important;
    }

    .legal-page-wrapper {
        background-color: #f8fafc;
        min-height: 75vh;
        padding: 35px 0 70px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
        color: #0f172a;
    }

    .legal-pc-hero {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 28px 34px;
        margin-bottom: 28px;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    }

    .legal-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #fdf2f4;
        color: #A74463;
        border: 1px solid #f9dbe2;
        padding: 4px 11px;
        border-radius: 20px;
        font-size: 0.76rem;
        font-weight: 600;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        margin-bottom: 10px;
    }

    .legal-main-title {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
        font-size: 1.85rem;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.25;
        margin: 0 0 6px 0;
        letter-spacing: -0.3px;
    }

    .legal-meta-info {
        font-size: 0.88rem;
        color: #64748b;
        margin: 0;
    }

    .btn-legal-print {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #ffffff;
        border: 1px solid #cbd5e1;
        color: #334155;
        padding: 9px 16px;
        border-radius: 10px;
        font-size: 0.86rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    }

    .btn-legal-print:hover {
        background: #f8fafc;
        color: #A74463;
        border-color: #A74463;
        box-shadow: 0 4px 12px rgba(167, 68, 99, 0.12);
    }

    .legal-layout-grid {
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 28px;
        align-items: flex-start;
    }

    .legal-sidebar {
        display: block !important;
    }

    .sidebar-sticky-box {
        position: sticky;
        top: 110px;
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .sidebar-nav-list {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 8px;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .sidebar-nav-header {
        padding: 8px 12px 6px;
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 5px;
    }

    .sidebar-nav-header h4 {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
        font-size: 0.82rem;
        font-weight: 700;
        color: #0f172a;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .sidebar-nav-header span {
        font-size: 0.74rem;
        color: #94a3b8;
        font-weight: 500;
    }

    .sidebar-nav-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 8px;
        text-decoration: none;
        color: #475569;
        font-size: 0.88rem;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .sidebar-nav-item i:first-child {
        font-size: 0.9rem;
        width: 18px;
        text-align: center;
        color: #64748b;
    }

    .sidebar-nav-item .arrow-indicator {
        margin-left: auto;
        font-size: 0.72rem;
        opacity: 0;
        transform: translateX(-4px);
        transition: all 0.2s ease;
    }

    .sidebar-nav-item:hover {
        background: #f8fafc;
        color: #A74463;
    }

    .sidebar-nav-item:hover i:first-child {
        color: #A74463;
    }

    .sidebar-nav-item:hover .arrow-indicator {
        opacity: 1;
        transform: translateX(0);
    }

    .sidebar-nav-item.active {
        background: #fdf2f4;
        color: #A74463;
        font-weight: 600;
        border: 1px solid #f9dbe2;
    }

    .sidebar-nav-item.active i:first-child {
        color: #A74463;
    }

    .sidebar-nav-item.active .arrow-indicator {
        opacity: 1;
        transform: translateX(0);
        color: #A74463;
    }

    .sidebar-support-card {
        background: linear-gradient(145deg, #ffffff, #fcfdfe);
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 18px;
        text-align: center;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    }

    .sidebar-support-card .support-icon {
        width: 40px;
        height: 40px;
        background: #fdf2f4;
        color: #A74463;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.05rem;
        margin-bottom: 10px;
    }

    .sidebar-support-card h5 {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
        font-size: 0.9rem;
        font-weight: 600;
        color: #0f172a;
        margin-bottom: 5px;
    }

    .sidebar-support-card p {
        font-size: 0.8rem;
        color: #64748b;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .support-mail-btn {
        display: block;
        background: #ffffff;
        border: 1px solid #cbd5e1;
        color: #0f172a;
        padding: 7px 10px;
        border-radius: 8px;
        font-size: 0.82rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .support-mail-btn:hover {
        background: #A74463;
        color: #ffffff;
        border-color: #A74463;
    }

    .legal-article-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 40px 45px;
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
        min-width: 0;
    }

    .legal-html-content {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
        color: #334155;
        font-size: 0.98rem;
        line-height: 1.8;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .legal-html-content * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Unnumbered Section Headings (Only for unnumbered headers) */
    .legal-html-content .legal-section-header,
    .legal-html-content h2:not(.auto-clause-heading),
    .legal-html-content h3:not(.auto-clause-heading),
    .legal-html-content h4:not(.auto-clause-heading) {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        margin: 2.2rem 0 1rem 0 !important;
        padding-left: 14px !important;
        border-left: 4px solid #A74463 !important;
        line-height: 1.35 !important;
        display: block !important;
    }

    .auto-legal-intro-subtitle {
        font-size: 1.05rem !important;
        font-weight: 600 !important;
        color: #475569 !important;
        letter-spacing: 0.4px !important;
        margin: 6px 0 22px 0 !important;
        padding-bottom: 8px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        display: block !important;
        text-transform: uppercase !important;
    }

    /* Numbered Clause Headings - Standard Gap & No Left Border */
    .legal-html-content .auto-clause-heading,
    .auto-clause-heading {
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
        margin-top: 2.2rem !important;
        margin-bottom: 0.9rem !important;
        padding-bottom: 8px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        border-left: none !important;
        padding-left: 0 !important;
    }

    .auto-clause-badge {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 36px !important;
        height: 28px !important;
        padding: 0 10px !important;
        background: #fdf2f4 !important;
        color: #A74463 !important;
        border: 1px solid #f9dbe2 !important;
        border-radius: 7px !important;
        font-weight: 700 !important;
        font-size: 0.88rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        margin-right: 14px !important;
        margin-left: 0 !important;
        line-height: 1 !important;
    }

    .auto-clause-title-text {
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        line-height: 1.35 !important;
        margin-left: 0 !important;
    }

    /* Subclauses */
    .auto-subclause-item {
        display: flex !important;
        align-items: flex-start !important;
        gap: 12px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        padding: 10px 14px !important;
        margin: 10px 0 !important;
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        border-left: none !important;
    }

    .auto-subclause-badge {
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        color: #334155 !important;
        font-size: 0.76rem !important;
        font-weight: 700 !important;
        padding: 2px 7px !important;
        border-radius: 4px !important;
        flex-shrink: 0 !important;
        margin-top: 2px !important;
        margin-right: 10px !important;
    }

    .auto-subclause-text {
        flex-grow: 1 !important;
        color: #334155 !important;
    }

    .legal-html-content p {
        margin-bottom: 1.15rem;
        color: #334155;
    }

    .legal-html-content strong,
    .legal-html-content b {
        color: #0f172a;
        font-weight: 600;
    }

    .legal-html-content ol,
    .legal-html-content ul {
        margin: 1.1rem 0 1.4rem 0;
        padding-left: 1.5rem;
    }

    .legal-html-content li {
        margin-bottom: 0.65rem;
        color: #334155;
    }

    .legal-html-content a {
        color: #A74463 !important;
        text-decoration: underline !important;
        text-underline-offset: 3px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .legal-html-content a:hover {
        color: #8c3651 !important;
        text-decoration-thickness: 2px !important;
    }

    .legal-external-link::after {
        content: "\f08e";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 0.72rem;
        margin-left: 5px;
        display: inline-block;
        opacity: 0.8;
    }

    .legal-table-responsive {
        width: 100%;
        overflow-x: auto;
        margin: 22px 0;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
    }

    .legal-html-content table {
        width: 100% !important;
        border-collapse: collapse;
        margin: 0;
        font-size: 0.92rem;
    }

    .legal-html-content th,
    .legal-html-content td {
        padding: 12px 16px;
        border-bottom: 1px solid #e2e8f0;
    }

    .legal-html-content th {
        background: #f8fafc;
        font-weight: 700;
        color: #0f172a;
        text-align: left;
    }

    .legal-html-content tr:last-child td {
        border-bottom: none;
    }

    .legal-html-content tr:hover td {
        background-color: #fafbfc;
    }

    .legal-article-footer {
        margin-top: 40px;
        padding-top: 24px;
        border-top: 1px dashed #cbd5e1;
    }

    .footer-sign-box {
        display: inline-flex;
        align-items: center;
        gap: 14px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 14px 20px;
    }

    .footer-sign-box i {
        font-size: 1.5rem;
        color: #A74463;
    }

    .footer-sign-box strong {
        display: block;
        font-size: 0.92rem;
        color: #0f172a;
    }

    .footer-sign-box span {
        font-size: 0.82rem;
        color: #64748b;
    }
}