/* legal.css
   ---------
   Shared styling for the Imprint, Privacy Policy, Terms and Conditions and
   Opt-out preferences pages. These render under LegalLayout (no MudBlazor
   chrome) so they are readable whether or not the visitor is signed in. */

.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem 1.5rem;
    color: #131313;
    line-height: 1.6;
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #ffffff;
}

.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #086A76;
}

    .legal-header img {
        height: 32px;
        width: auto;
    }

    .legal-header a {
        color: #ffffff;
        text-decoration: underline;
        white-space: nowrap;
    }

.legal-page h1 {
    color: #086A76;
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
}

.legal-page h2 {
    color: #086A76;
    font-size: 1.35rem;
    margin: 2.25rem 0 0.75rem 0;
}

.legal-page h3 {
    color: #086A76;
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem 0;
}

.legal-page h4 {
    color: #131313;
    font-size: 1rem;
    margin: 1.25rem 0 0.4rem 0;
}

.legal-updated {
    color: #636464;
    font-size: 0.9rem;
    margin: 0 0 2rem 0;
}

.legal-page a {
    color: #086A76;
    text-decoration: underline;
}

.legal-page ul {
    padding-left: 1.4rem;
}

.legal-page li {
    margin-bottom: 0.35rem;
}

.legal-table-wrap {
    overflow-x: auto;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0 1.5rem 0;
    font-size: 0.92rem;
}

    .legal-table th,
    .legal-table td {
        border: 1px solid #dee2e6;
        padding: 0.5rem 0.65rem;
        text-align: left;
        vertical-align: top;
    }

    .legal-table th {
        background: #f5f5f5;
        color: #086A76;
        font-weight: 500;
        white-space: nowrap;
    }

    .legal-table code {
        font-size: 0.9em;
        color: #086A76;
    }

.legal-service {
    border-left: 4px solid #086A76;
    padding: 0.25rem 0 0.25rem 1rem;
    margin: 1.5rem 0;
}

.legal-callout {
    background: #f5f5f5;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

/* Deliberately quiet: brand teal so it disappears into the teal MudMainContent,
   with muted grey links that are there when you look for them but do not compete
   with the page content. */
.legal-footer {
    margin-top: 2rem;
    padding: 0.85rem 1.25rem;
    background: #086A76;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    font-size: 0.85rem;
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

    .legal-footer a {
        color: #B6C6C8;
        text-decoration: none;
    }

        .legal-footer a:hover,
        .legal-footer a:focus-visible {
            color: #ffffff;
            text-decoration: underline;
        }

/* ---- Consent toggles on the Opt-out preferences page ---- */

.jd-cc-pref {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #dee2e6;
}

    .jd-cc-pref input[type="checkbox"] {
        margin-top: 0.25rem;
        width: 1.1rem;
        height: 1.1rem;
        accent-color: #086A76;
    }

    .jd-cc-pref label {
        font-weight: 500;
        color: #086A76;
    }

.jd-cc-pref-note {
    margin: 0.15rem 0 0 0;
    color: #636464;
    font-size: 0.9rem;
    font-weight: 400;
}

.jd-cc-pref-status {
    margin-top: 1rem;
    color: #636464;
    font-size: 0.9rem;
}

.jd-cc-button {
    background: #086A76;
    color: #ffffff;
    border: none;
    border-radius: 0.35rem;
    padding: 0.7rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

    .jd-cc-button:hover {
        background: #065159;
    }
