/* Legal pages (terms, privacy, payments & refunds). Loaded only on those pages. */

.legal-content {
    flex: 1 1 auto;
    width: 100%;
    max-width: 46rem;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #4b5563;
    overflow-wrap: break-word;
}

/* The stored text puts <br> between sections; spacing comes from the headings instead */
.legal-content > br { display: none; }

.legal-content h2 {
    margin: 2.5rem 0 .75rem !important;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f3;
    color: #111827 !important;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
    scroll-margin-top: 6.5rem;
}
.legal-content h2:first-child,
.legal-content > br:first-child + h2 {
    margin-top: 0 !important;
    padding-top: 0;
    border-top: 0;
}
.legal-content h3 {
    margin: 1.75rem 0 .5rem !important;
    color: #111827;
    font-size: 1.125rem;
    font-weight: 700;
}

.legal-content p { margin: 0 0 1.1em; }
.legal-content p:last-child { margin-bottom: 0; }

.legal-content ul,
.legal-content ol {
    margin: .5em 0 1.25em !important;
    padding-left: 1.5rem !important;
}
.legal-content ul { list-style: disc !important; }
.legal-content ol { list-style: decimal !important; }
.legal-content ul ul,
.legal-content ol ul {
    margin: .5em 0 .25em !important;
    list-style: circle !important;
}
.legal-content li {
    margin: .5em 0;
    padding-left: .375rem;
}
.legal-content li::marker { color: #9146ff; }

.legal-content a {
    color: #772ce8;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.legal-content a:hover { color: #9146ff; }
.legal-content strong,
.legal-content b { color: #111827; font-weight: 600; }

@media (max-width: 639px) {
    .legal-content { font-size: 1rem; }
    .legal-content h2 { font-size: 1.25rem; margin-top: 2rem !important; padding-top: 1.5rem; }
    .legal-content ul,
    .legal-content ol { padding-left: 1.25rem !important; }
}
