
/* ==========================================================
   NORTH SCOTT GEMSTONES
   TERMS & LEGAL PAGE
========================================================== */

/* Main page layout */
.legal-page {
    padding: var(--section-space, 90px) 0;
}

.legal-container {
    width: min(100% - 40px, 850px);
    margin-inline: auto;
}

/* Page introduction */
.legal-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 65px;
}

.legal-header .script-text {
    margin-bottom: 12px;
}

.legal-header h1 {
    margin-bottom: 22px;
}

.legal-header > p:last-child {
    max-width: 650px;
    margin-inline: auto;
    line-height: 1.8;
}

/* Legal content sections */
.legal-content {
    display: flex;
    flex-direction: column;
    gap: 42px;
}

.legal-section {
    min-width: 0;
    overflow-wrap: anywhere;
}

.legal-content h2 {
    margin: 38px 0 20px;
    line-height: 1.4;
}

.legal-content h3 {
    margin: 30px 0 16px;
    line-height: 1.4;
}

.legal-section h3:first-child {
    margin-top: 0;
}

.legal-content p {
    margin: 0 0 16px;
    line-height: 1.8;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

/* Links inside legal text */
.legal-section a {
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Lists, if added to the page later */
.legal-section ul,
.legal-section ol {
    margin: 15px 0 20px;
    padding-left: 25px;
}

.legal-section ul {
    list-style: disc;
}

.legal-section ol {
    list-style: decimal;
}

.legal-section li {
    margin-bottom: 10px;
    padding-left: 4px;
    line-height: 1.7;
}

.legal-section li::marker {
    color: var(--lavender, #a99ac7);
}

/* Last updated date */
.legal-updated {
    margin-top: 5px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color, #dedbd8);
    color: var(--text-muted, #777);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Tablet and mobile layout */
@media (max-width: 700px) {
    .legal-page {
        padding: 60px 0;
    }

    .legal-container {
        width: min(100% - 32px, 850px);
    }

    .legal-header {
        margin-bottom: 42px;
    }

    .legal-header h1 {
        margin-bottom: 16px;
    }

    .legal-content {
        gap: 32px;
    }

    .legal-section h2 {
        margin-bottom: 14px;
    }

    .legal-section h3 {
        margin-top: 23px;
    }

    .legal-section p {
        line-height: 1.75;
    }
}

/* Small phones */
@media (max-width: 420px) {
    .legal-page {
        padding: 45px 0;
    }

    .legal-container {
        width: calc(100% - 28px);
    }

    .legal-header {
        margin-bottom: 34px;
    }

    .legal-content {
        gap: 28px;
    }
}

/* Match the Privacy Policy's clean text layout */
.legal-page {
    padding: 55px 0 70px;
    background: transparent;
}

.legal-container {
    width: calc(100% - 40px);
    max-width: 550px;
    margin: 0 auto;
}

.legal-header {
    margin-bottom: 45px;
    text-align: left;
}

.legal-header > p:last-child {
    margin-left: 0;
    margin-right: 0;
}

.legal-content {
    display: block;
    gap: 0;
}

.legal-section {
    margin: 0 0 42px;
    padding: 0;
    background: transparent !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.legal-section h2 {
    margin: 0 0 22px;
}

.legal-section h3 {
    margin: 26px 0 12px;
}

.legal-section p {
    margin: 0 0 20px;
    line-height: 1.8;
}

.legal-updated {
    margin-top: 10px;
}

@media (max-width: 700px) {
    .legal-page {
        padding: 40px 0 55px;
    }

    .legal-container {
        width: calc(100% - 36px);
    }

    .legal-header {
        margin-bottom: 35px;
    }

    .legal-section {
        margin-bottom: 35px;
    }
}
/* Shorten legal page title height without shrinking text */
/* Legal page title: reduce vertical height, keep font size */
body .bg-cream h1 {
    line-height: 1 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    height: auto !important;
    min-height: 0 !important;
}