/* Shared public scrolling shell; landing pages add scroll snapping. */
html:has(body.scroll-section) {
    overflow-y: hidden;
}

body:not(:has(.landing-page)) #navbar {
    position: relative;
}

body:not(:has(.landing-page)) {
    scroll-snap-type: none;
}

.scroll-section {
    height: 100vh;
    height: 100dvh;
}

@media only screen and (min-width: 992px) {
    .scroll-section {
        overflow-x:hidden ;
        overflow-y: scroll;
    }
}

.footer-snap {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

header {
    border-bottom: 0.5px  solid rgba(192, 192, 192, 0.137);
}

.legal-page-shell {
    background: #ffffff;
    padding: clamp(2rem, 5vw, 5rem) 1rem;
}

.legal-page-layout {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 960px);
    gap: 3rem;
    align-items: start;
}

.legal-paper {
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 5rem);
    background: #ffffff;
    color: #1c1c1c;
    box-shadow: 0 12px 40px rgba(33, 37, 41, 0.12);
    font-family: "Times New Roman", Times, serif;
    font-size: 0.95rem;
    line-height: 1.8;
}

.legal-paper h1,
.legal-paper h2,
.legal-paper h3,
.legal-paper h4 {
    color: #171717;
    font-family: "Times New Roman", Times, serif;
    line-height: 1.3;
}

.legal-paper h1 {
    margin: 0;
    text-align: center;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
}

.legal-document-meta {
    color: #6c757d;
    text-align: center;
}

.legal-paper h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.18rem;
    font-weight: 700;
}

.legal-paper h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.legal-toc {
    align-self: start;
    position: sticky;
    top: 1.5rem;
    margin: 0;
    padding: 1.75rem 2rem;
    border: 1px solid #dee2e6;
    background: #ffffff;
    font-family: "Times New Roman", Times, serif;
}

.legal-toc h2,
.legal-toc .legal-toc-title {
    margin: 0 0 0.75rem;
    font-family: "Times New Roman", Times, serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.legal-toc ol {
    margin: 0;
    padding-left: 1.5rem;
    list-style: decimal;
}

.legal-toc a {
    color: #242424;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
}

.legal-toc a.legal-toc-current {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.legal-paper p {
    margin-bottom: 1rem;
    font-family: "Times New Roman", Times, serif;
    font-size: 1rem;
}

.legal-content h2[id],
.legal-content h3[id] {
    scroll-margin-top: 6rem;
}

@media (max-width: 576px) {
    .legal-page-shell {
        padding: 1rem 0;
    }

    .legal-page-layout {
        display: block;
    }

    .legal-paper {
        padding: 2rem 1.25rem;
        box-shadow: 0 6px 20px rgba(33, 37, 41, 0.1);
    }

    .legal-toc {
        position: static;
        margin: 2rem 0 3rem;
        padding: 1.25rem;
    }
}


.logo {
    color: white;
    align-self: center;
    font-weight: bold;

}



.btn a {
   text-decoration: none;
}

.btn-header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 40px;
    font-weight: 600;
    border-radius: 15px;
    border: none;
    color: #000000;
    background-color: white;
}

.btn-header:hover {
    color:white !important;
    background-color: #000000;
    border: none;
}
