/* Public legal document pages (service terms).
   Anonymous visitors get a CSP without 'unsafe-inline' for style-src, so all
   styling for these pages must live in this file. Colours come from the
   hiLina light theme tokens in hilina_theme.css. */

.hl-legal-page {
    min-height: 100vh;
    background: var(--hl-bg, #FAFAFA);
    padding: 2rem 1.5rem 4rem;
}

.hl-legal-shell {
    max-width: 50rem;
    margin: 0 auto;
    padding: 2.5rem 3rem 3.5rem;
    background: var(--hl-surface, #FFFFFF);
    border: 1px solid var(--hl-bdr, rgba(0, 0, 0, 0.08));
    border-radius: var(--hl-radius-card, 16px);
    box-shadow: var(--hl-shadow-card, 0 2px 8px rgba(0, 0, 0, 0.06));
    color: var(--hl-txt, #000000);
    font-family: var(--hl-font-body, "DM Sans", "Segoe UI", sans-serif);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.hl-legal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.hl-legal-back {
    color: var(--hl-cobalt, #000000);
    text-decoration: none;
    font-size: 0.875rem;
    white-space: nowrap;
}

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

.hl-legal-header {
    border-bottom: 1px solid var(--hl-bdr-mid, rgba(0, 0, 0, 0.13));
    padding-bottom: 1.25rem;
    margin-bottom: 1.75rem;
}

.hl-legal-title {
    font-family: var(--hl-font-headline, "Inter", "Segoe UI", system-ui, sans-serif);
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
}

.hl-legal-updated {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    color: var(--hl-txt2, #666666);
}

.hl-legal-intro {
    margin: 0 0 1rem;
}

.hl-legal-clause {
    margin-top: 1.75rem;
}

/* Hanging indents are done with flex rather than negative text-indent so the
   clause number can never escape the content column. */
.hl-legal-h2,
.hl-legal-sub,
.hl-legal-alpha,
.hl-legal-roman {
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
    margin: 0 0 0.875rem;
}

.hl-legal-h2 {
    font-family: var(--hl-font-headline, "Inter", "Segoe UI", system-ui, sans-serif);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.875rem;
}

.hl-legal-sub {
    margin-left: 1.5rem;
}

.hl-legal-alpha {
    margin-left: 4rem;
}

.hl-legal-roman {
    margin-left: 6.25rem;
}

.hl-legal-def {
    margin: 0 0 0.875rem 1.5rem;
}

.hl-legal-notice {
    margin: 0 0 0.375rem 4rem;
}

.hl-legal-num {
    flex: 0 0 auto;
    min-width: 2.25rem;
    font-variant-numeric: tabular-nums;
    color: var(--hl-txt2, #666666);
}

.hl-legal-alpha .hl-legal-num,
.hl-legal-roman .hl-legal-num {
    min-width: 1.75rem;
}

@media (max-width: 720px) {
    .hl-legal-page {
        padding: 0;
    }

    .hl-legal-shell {
        padding: 1.5rem 1.25rem 2.5rem;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .hl-legal-sub,
    .hl-legal-def {
        margin-left: 0;
    }

    .hl-legal-alpha {
        margin-left: 1.25rem;
    }

    .hl-legal-roman {
        margin-left: 2.5rem;
    }

    .hl-legal-notice {
        margin-left: 1.25rem;
    }
}
