/* A focused reading layout for the terms page. */

body.info-page.terms-page {
    background: #f6f8fc;
}

.terms-page .info-shell {
    width: min(1120px, calc(100% - 48px));
}

.terms-page .info-breadcrumb {
    min-height: 66px;
    font-size: 11px;
}

.terms-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 0px 0 0px;
}

.terms-hero-copy {
    min-width: 0;
    max-width: 700px;
}

.terms-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    color: #0051bb;
    font-size: 11px;
    font-weight: 600;
}

.terms-page .terms-hero h1 {
    margin: 0 0 0px;
    color: #18243b !important;
    overflow-wrap: anywhere;
}

.terms-page .terms-intro {
    max-width: 640px;
    margin: 0;
    color: #68758a !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
}

.terms-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 0px;
    color: #768397;
    font-size: 11px;
}

.terms-meta>span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.terms-meta i {
    color: #7a8fab;
    font-size: 16px;
}

.terms-meta time {
    color: #42536c;
    font-variant-numeric: tabular-nums;
}

.terms-hero-mark {
    display: grid;
    place-items: center;
    flex: 0 0 112px;
    width: 112px;
    height: 112px;
    margin-right: 18px;
    border: 1px solid #dbe6f5;
    border-radius: 30px;
    background: #edf3fd;
    transform: rotate(5deg);
}

.terms-hero-mark svg {
    width: 62px;
    height: 72px;
    transform: rotate(-5deg);
}

.terms-layout {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.terms-sidebar {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 16px;
    min-width: 0;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d7e1ee transparent;
}

.terms-toc {
    overflow: hidden;
    border: 1px solid #e1e7f0;
    border-radius: 18px;
    background: #fff;
}

.terms-toc>summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 16px;
    color: #263852;
    font-size: 12px;
    font-weight: 650;
    list-style: none;
    cursor: pointer;
}

.terms-toc>summary::-webkit-details-marker {
    display: none;
}

.terms-toc>summary>span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.terms-toc>summary>span>i {
    color: #0051bb;
    font-size: 19px;
}

.terms-toc>summary>i {
    color: #8a98aa;
    font-size: 15px;
    transition: transform .18s ease;
}

.terms-toc[open]>summary {
    border-bottom: 1px solid #eef1f6;
}

.terms-toc[open]>summary>i {
    transform: rotate(180deg);
}

.terms-toc ol {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 10px;
    list-style: none;
}

.terms-toc a {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: baseline;
    gap: 8px;
    padding: 10px 9px;
    border-radius: 9px;
    color: #657289;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background .18s ease, color .18s ease;
}

.terms-toc-number {
    color: #9aa8ba;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.terms-toc a:hover {
    background: #f5f8fd;
    color: #0051bb;
}

.terms-toc a[aria-current="location"] {
    background: #eaf1fd;
    color: #0051bb;
    font-weight: 650;
}

.terms-toc a[aria-current="location"] .terms-toc-number {
    color: #0051bb;
}

.terms-help {
    padding: 20px;
    border: 1px solid #e1e7f0;
    border-radius: 18px;
    background: #eef3fb;
}

.terms-help-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border: 1px solid #dbe5f4;
    border-radius: 11px;
    background: #fff;
    color: #0051bb;
    font-size: 19px;
}

.terms-page .terms-help h2 {
    margin: 0 0 8px;
    color: #263852 !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.5;
}

.terms-page .terms-help p {
    margin: 0 0 14px;
    color: #738097 !important;
    font-size: 11px !important;
    line-height: 1.8 !important;
}

.terms-help>a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    color: #0051bb;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.terms-document {
    min-width: 0;
    padding: 36px 40px 24px;
    border: 1px solid #e1e7f0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(30, 50, 80, .025);
}

.terms-content {
    color: #526078;
    overflow-wrap: anywhere;
}

.terms-page .terms-content :is(p, li) {
    color: #526078 !important;
    font-weight: 400 !important;
    line-height: 1.95 !important;
}

.terms-content p {
    margin: 0 0 18px;
}

.terms-page .terms-content>p:first-child {
    margin: 0 0 30px;
    padding: 18px 20px;
    border-left: 3px solid #5985ca;
    border-radius: 0 12px 12px 0;
    background: #f4f7fc;
    color: #455c7d !important;
    font-size: 13px !important;
}

.terms-page .terms-content :is(h1, h2, h3, h4, h5, h6) {
    margin: 30px 0 14px;
    padding-top: 28px;
    border-top: 1px solid #eaf0f6;
    color: #23354f !important;
    font-size: 18px !important;
    font-weight: 650 !important;
    line-height: 1.55;
    letter-spacing: -.25px;
    scroll-margin-top: 16px;
}

.terms-page .terms-content> :is(h2, h3):first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.terms-content> :last-child {
    margin-bottom: 0;
}

.terms-content :is(ul, ol) {
    padding-left: 24px;
}

.terms-content li {
    margin: 8px 0;
}

.terms-content li::marker {
    color: #0051bb;
}

.terms-content a {
    color: #0051bb;
    text-underline-offset: 3px;
}

.terms-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.terms-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.terms-content :is(td, th) {
    padding: 12px;
    border: 1px solid #e1e7f0;
}

.terms-content blockquote {
    margin: 24px 0;
    padding: 14px 20px;
    border-left: 3px solid #a6bfe3;
    background: #f6f9fe;
}

.terms-questions {
    margin-top: 28px;
}

.terms-questions details {
    padding: 16px 0;
    border-top: 1px solid #eaf0f6;
}

.terms-questions summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.terms-document-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid #eaf0f6;
}

.terms-document-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    color: #64758e;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
}

.terms-document-footer a:hover,
.terms-help>a:hover {
    color: #0051bb;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.terms-page :is(.terms-toc a, .terms-toc summary, .terms-help a, .terms-document-footer a):focus-visible {
    outline: 2px solid #0051bb;
    outline-offset: 3px;
    border-radius: 6px;
}

@media (max-width: 900px) {
    .terms-page .info-shell {
        width: calc(100% - 36px);
    }
    .terms-hero {
        padding-top: 12px;
        padding-bottom: 28px;
    }
    .terms-hero-mark {
        display: none;
    }
    .terms-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .terms-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }
    .terms-sidebar .terms-help {
        display: none;
    }
    .terms-document {
        padding: 28px;
    }
    .terms-toc a {
        min-height: 44px;
        align-items: center;
    }
}

@media (max-width: 560px) {
    .terms-page .info-shell {
        width: calc(100% - 28px);
    }
    .terms-page .info-breadcrumb {
        min-height: 54px;
        font-size: 10px;
    }
    .terms-hero {
        padding: 8px 2px 24px;
    }
    .terms-page .terms-hero h1 {
        font-size: 28px !important;
        letter-spacing: -.6px;
    }
    .terms-page .terms-intro {
        font-size: 12px !important;
    }
    .terms-meta {
        gap: 8px;
        font-size: 10px;
    }
    .terms-document {
        padding: 22px 18px;
        border-radius: 18px;
    }
    .terms-page .terms-content :is(p, li) {
        font-size: 13px !important;
        line-height: 1.9 !important;
    }
    .terms-page .terms-content>p:first-child {
        padding: 14px 16px;
        font-size: 12px !important;
    }
    .terms-page .terms-content :is(h1, h2, h3, h4, h5, h6) {
        margin-top: 26px;
        padding-top: 24px;
        font-size: 16px !important;
    }
    .terms-document-footer {
        margin-top: 28px;
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .terms-toc a,
    .terms-toc>summary>i {
        transition: none;
    }
}