/* Synced from legal/page.module.css */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #fff;
    word-break: break-all;
}

.textContent h1,
.textContent h2,
.textContent h3 {
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0.2em;
}

.textContent h1 {
    font-size: 45px;
}

.textContent h2 {
    font-size: 36px;
}

.textContent h3 {
    font-size: 30px;
    margin-top: 0.5em;
}

.textContent p,
.textContent li {
    font-size: 16px;
    margin-bottom: 12px;
}

.textContent li {
    list-style-type: disc;
    margin-left: 20px;
}

.textContent a {
    color: #fff;
}

.textContent ul ul {
    margin-top: 8px;
}

/* Match landing page background and sticky header */
html {
    font-size: 16px;
}

body {
    margin: 0;
    background-color: #161532;
}

.legal-doc-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 2rem;
}

.legal-header {
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    padding: 8px 36px;
    box-sizing: border-box;
    background: #0d0b32;
    position: sticky;
    top: 0;
    z-index: 20;
}

.legal-header a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-header img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.legal-doc-shell > .footer,
.legal-doc-shell > .footerCopyright {
    align-self: stretch;
}

.legal-doc-shell > .footer {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem 0.75rem;
    box-sizing: border-box;
    background: none;
    color: #fff;
    font-size: 14px;
}

.legal-doc-shell .partnerTitle {
    font-size: 66px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.legal-doc-shell .partnerList {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 0.75rem;
}

.legal-doc-shell .partnerItem {
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-doc-shell .partnerItem img {
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.legal-doc-shell .partnerMore {
    text-align: center;
    color: #a3afd7;
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 2rem;
    margin-top: 0.25rem;
}

.legal-doc-shell .footerLinks {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.legal-doc-shell .footerLinks a {
    color: #7c7fff;
    font-size: 0.875rem;
    text-decoration: underline;
    transition: color 0.2s;
}

.legal-doc-shell .footerLinks a:hover {
    color: #ff2fa6;
}

.legal-doc-shell .footerContact {
    text-align: center;
    margin: 0.5rem 0 1rem;
}

.legal-doc-shell .footerContact a {
    color: #fff;
    margin-left: 0.35rem;
}

.legal-doc-shell .footerNotice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0 auto 2rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    max-width: 1100px;
    color: #c1e1ff;
    justify-content: center;
}

.legal-doc-shell .noticeIcon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    object-fit: contain;
    margin-top: -2px;
}

.legal-doc-shell .footerCopyright {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background-color: #0d0c28;
    color: #bdb9e3;
    font-size: 0.8125rem;
    line-height: 1.5;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-doc-shell .footerCopyrightInner {
    max-width: 1100px;
    width: 100%;
    word-break: break-word;
    color: #c1e1ff;
}

@media (min-width: 900px) {
    .legal-doc-shell .partnerTitle {
        margin-top: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .legal-doc-shell .partnerList {
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }

    .legal-doc-shell .partnerItem img {
        height: 56px;
        max-width: 180px;
    }

    .legal-doc-shell .footerCopyrightInner {
        font-size: 0.875rem;
        text-align: justify;
    }
}
