/* =====================================================================
   Terms & Conditions / Privacy Policy pages
   Shared by:  /Terms, /Terms/Privacy  (full website, with header/footer)
               /mobile/Terms, /mobile/Terms/Privacy  (app webview, stripped)
   Goal: a clean, readable, responsive legal-document layout.
   ===================================================================== */

.shop-template {
    font-family: 'DM Sans', sans-serif;
    color: #2a2f3a;
    width: 100%;
    padding: 0 20px;
    text-align: left;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.shop-template .container {
    padding: 24px 0 96px;
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
    min-height: calc(100vh - 75px);
}

/* Breadcrumb (desktop) */
.shop-template .page_title {
    color: #707070;
    font-weight: 400;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
}

.shop-template .page_title a,
.shop-template .card a {
    color: #191919;
    text-decoration: none;
}

.shop-template .page_title a:hover {
    text-decoration: underline;
}

/* Page title ("Terms" / "Privacy") */
.shop-template .mb_48 {
    font-weight: 700;
    font-size: 1.9rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #14181f;
    margin: 4px 0 20px;
}

/* ===== Document body =============================================== */
.page-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #363b47;
}

.page-content img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    margin-bottom: 36px;
}

/* PART dividers (rendered as <h3>) */
.page-content h3 {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #14181f;
    margin: 48px 0 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e7e9f0;
}

.page-content h3:first-child {
    margin-top: 4px;
}

/* Section headings: <p><b>N. Title</b></p> (in these documents every <p><b> is a
   whole-paragraph heading, so styling the <b> directly is safe and needs no :has()). */
.page-content p > b {
    color: #14181f;
    font-weight: 700;
    font-size: 1.07rem;
    line-height: 1.4;
}

/* Extra breathing room above a heading paragraph (progressive enhancement). */
.page-content p:has(> b:only-child) {
    margin: 30px 0 8px;
}

/* Clause / body paragraphs */
.page-content p {
    margin: 0 0 14px;
}

/* Lists */
.page-content ul,
.page-content ol {
    margin: 8px 0 18px;
    padding-left: 1.4em;
}

.page-content ul {
    list-style: disc;
}

.page-content ol {
    list-style: decimal;
}

.page-content li {
    margin-bottom: 9px;
    padding-left: 4px;
}

.page-content li:last-child {
    margin-bottom: 0;
}

.page-content li > b {
    color: #14181f;
}

/* Nested lists */
.page-content li > ul,
.page-content li > ol {
    margin: 9px 0 4px;
}

/* Links (contact e-mails, agreement links) */
.page-content a {
    color: #1971e4;
    text-decoration: none;
    word-break: break-word;
}

.page-content a:hover {
    text-decoration: underline;
}

.page-content a.termsLink {
    font-weight: 600;
}

/* ===== Tablet ====================================================== */
@media (max-width: 860px) {
    .shop-template .container {
        max-width: 100%;
    }
}

/* ===== Mobile ====================================================== */
@media (max-width: 600px) {
    .shop-template {
        padding: 0 16px;
    }

    .shop-template .container {
        padding: 16px 0 56px;
    }

    .shop-template .mb_48 {
        font-size: 1.45rem;
        margin-bottom: 14px;
    }

    .page-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .page-content img {
        border-radius: 10px;
        margin-bottom: 24px;
    }

    .page-content h3 {
        font-size: 1rem;
        margin: 34px 0 16px;
        padding-bottom: 10px;
    }

    .page-content p > b {
        font-size: 1.02rem;
    }

    .page-content p:has(> b:only-child) {
        margin-top: 24px;
    }

    .page-content ul,
    .page-content ol {
        padding-left: 1.2em;
    }
}
