/* Privacy notice page.

   Loaded AFTER the site's own css/style.css so the page inherits the
   template's fonts and palette, then lays itself out with its own classes.
   It deliberately reuses none of a template's structural classes: this file
   ships with the scaffold and has to work on a template it has never seen,
   including ones written later.

   Colours fall back to literals for the same reason the consent banner's do. */

.legal-page {
    background: var(--color-light, #ffffff);
    color: var(--color-text, #1f2937);
}

.legal-wrap {
    max-width: 46rem;
    margin: 0 auto;
    padding: 3rem 1.25rem 4rem;
    line-height: 1.7;
}

.legal-back {
    margin: 0 0 2rem;
    font-size: 0.9rem;
}

.legal-back a {
    color: var(--color-text-muted, #5e6470);
    text-decoration: none;
}

.legal-back a:hover {
    text-decoration: underline;
}

.legal-wrap h1 {
    margin: 0 0 1rem;
    font-size: 2.1rem;
    line-height: 1.2;
}

.legal-intro {
    margin: 0 0 2.5rem;
    color: var(--color-text-muted, #5e6470);
}

.legal-wrap h2 {
    margin: 2.75rem 0 0.85rem;
    font-size: 1.3rem;
    line-height: 1.3;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-line, #e3e7ec);
}

.legal-wrap h3 {
    margin: 1.85rem 0 0.6rem;
    font-size: 1.05rem;
}

.legal-wrap p,
.legal-wrap li {
    margin: 0 0 1rem;
}

.legal-wrap ul {
    margin: 0 0 1rem;
    padding-left: 1.35rem;
}

.legal-wrap a {
    color: inherit;
}

.legal-note {
    font-size: 0.9rem;
    color: var(--color-text-muted, #5e6470);
}

/* The live control, not a description of one — this is where a visitor
   actually changes the answer they gave the banner. */
.legal-consent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.25rem 0 0.75rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--color-line, #e3e7ec);
    border-radius: 8px;
    background: var(--color-tint, #f6f8fa);
}

.legal-consent__status {
    margin: 0;
    font-weight: 600;
}

.legal-consent__actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

.legal-consent__btn {
    font: inherit;
    font-weight: 600;
    padding: 0.55rem 1.35rem;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--color-text, #1f2937);
    background: transparent;
    color: var(--color-text, #1f2937);
    transition: opacity 0.15s ease;
}

.legal-consent__btn:hover {
    opacity: 0.75;
}

.legal-consent__btn:focus-visible {
    outline: 2px solid var(--color-primary, #1f2937);
    outline-offset: 2px;
}

.legal-consent__btn--accept {
    background: var(--color-text, #1f2937);
    color: var(--color-light, #ffffff);
}

.legal-footer {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-line, #e3e7ec);
    font-size: 0.85rem;
    color: var(--color-text-muted, #5e6470);
}

.legal-footer p {
    margin: 0 0 0.35rem;
}

@media (max-width: 640px) {
    .legal-wrap {
        padding: 2rem 1.1rem 3rem;
    }

    .legal-wrap h1 {
        font-size: 1.7rem;
    }

    .legal-consent {
        align-items: stretch;
        flex-direction: column;
    }

    .legal-consent__actions {
        width: 100%;
    }

    .legal-consent__btn {
        flex: 1;
    }
}
