.legal-main {
    max-width: 960px;
    min-height: calc(100svh - 100px);
    margin-inline: auto;
    padding: 130px 24px 80px;
    font-size: 1rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.legal-title {
    font-size: clamp(2.75rem, 7vw, 5rem);
}

.legal-nav {
    border-block: 1px solid #6d5d6540;
}

.legal-section {
    margin-top: 3rem;
    scroll-margin-top: 100px;
}

.legal-section h2 {
    font-size: 1.5rem;
    line-height: 1.3;
}

.legal-details dt {
    color: #6d5d65;
    font-weight: 400;
}

.legal-details dd {
    margin-bottom: 1rem;
}

.legal-main a:focus-visible,
.site-footer a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.legal-page {
    --legal-gutter: clamp(16px, 4vw, 32px);
    --legal-header-offset: 110px;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    background: #fff;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
}

.legal-page .brand-pill {
    min-width: 0;
    min-height: 44px;
}

.legal-page .site-header {
    background: #fff;
}

.legal-page .contact-button {
    flex-shrink: 0;
    min-height: 44px;
    white-space: nowrap;
}

.legal-page .site-footer a {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.legal-document a {
    color: inherit;
    text-underline-offset: 3px;
}

.legal-document {
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 900px;
    margin-inline: auto;
    padding: var(--legal-header-offset) var(--legal-gutter) clamp(32px, 5vw, 56px);
    font-size: 1rem;
    line-height: 1.7;
}

.legal-document h1 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    font-weight: 700;
    line-height: 1.3;
}

.legal-updated {
    margin-bottom: 24px;
    color: #595959;
    font-size: 0.875rem;
}

.legal-contents {
    margin-block: 28px;
    padding-block: 20px;
    border-block: 1px solid #ddd;
}

.legal-contents p {
    margin-bottom: 8px;
    font-weight: 700;
}

.legal-contents ol {
    margin: 0;
    padding-left: 24px;
}

.legal-contents li + li {
    margin-top: 4px;
}

.legal-document .legal-section {
    margin-top: 28px;
    scroll-margin-top: 0;
}

.legal-document h2 {
    margin-bottom: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
}

.legal-document h3 {
    margin: 20px 0 10px;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.5;
}

.legal-document .legal-details dt {
    color: inherit;
    font-weight: 700;
}

.legal-page a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

@media (max-width: 575.98px) {
    .legal-page {
        --legal-header-offset: 100px;
    }

    .legal-document .legal-section {
        margin-top: 24px;
    }

    .legal-contents {
        margin-block: 24px;
        padding-block: 16px;
    }

    .legal-contents a {
        display: block;
        padding-block: 4px;
    }

    .legal-page .site-footer a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
    }
}
