/* Typography for the standalone legal pages (data-protection.html).
   These pages are plain static HTML outside the Blazor app, so they cannot use
   the shared layout components — they pull the theme from restyle.css and only
   add what a long-form legal document needs on top. */

/* restyle.css pads .page-header down from the app's fixed navbar. This page is
   standalone and has no navbar, so that headroom would just be dead space. */
.legal-page .page-header {
    padding: 4.5rem 0 3rem;
}

.legal-page .page-header__title {
    margin-bottom: 0;
}

.legal {
    font-family: var(--at-font);
    color: var(--at-ink);
    padding: 3.5rem 0 4rem;
}

/* A legal text is read, not scanned: cap the measure at a comfortable line
   length instead of letting it run the full container width. */
.legal__body {
    max-width: 72ch;
    margin: 0 auto;
}

.legal__body p {
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 1.15rem;
}

.legal__body h2 {
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--at-ink);
    margin: 3rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--at-green);
    scroll-margin-top: 1rem;
}

.legal__body h3 {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--at-ink);
    margin: 1.75rem 0 0.6rem;
}

/* The generator wraps the lettered sub-sections in list-style:none lists purely
   for indentation. Strip the list chrome and indent with a green rule instead. */
.legal__body ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.15rem;
}

.legal__body li > h3:first-child {
    margin-top: 1.5rem;
}

.legal__body ul ul {
    padding-left: 1.25rem;
    border-left: 2px solid #e6ecd6;
}

.legal__body ul ul li {
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 0.6rem;
    padding-left: 0.25rem;
}

.legal__body a {
    color: var(--at-green-dark);
    overflow-wrap: anywhere;   /* the generator embeds long bare URLs */
}

.legal__address {
    font-style: normal;
    font-weight: 300;
    line-height: 1.8;
    margin: 0 0 1.15rem;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--at-green);
    background: #fafbf6;
}

/* Credit line of the policy generator — present, but visually subordinate. */
.legal__credit {
    max-width: 72ch;
    margin: 3rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid #e3e3e3;
    font-size: 0.85rem;
    color: var(--at-muted);
}

.legal__credit p {
    margin: 0;
    line-height: 1.6;
}

/* Slim footer: deliberately not a copy of the app's <Footer>, which would drift
   out of sync. Just a way back to the site. */
.legal-footer {
    padding: 1.5rem 0 2rem;
    border-top: 1px solid #d7dccb;
    text-align: center;
    font-family: var(--at-font);
    font-size: 0.9rem;
    color: #555c63;
}

.legal-footer a {
    color: var(--at-green-dark);
    text-decoration: none;
    font-weight: 600;
}

.legal-footer a:hover,
.legal-footer a:focus {
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .legal {
        padding: 2rem 0 2.5rem;
    }

    .legal__body h2 {
        font-size: 1.25rem;
        margin-top: 2.25rem;
    }
}

@media print {
    .legal-footer,
    .page-header::before {
        display: none;
    }

    .legal__body {
        max-width: none;
    }
}
