/* Generated by bin/build-assets.php — do not edit. Source: resources/css/pages/legal.css */
/* row 265 — legal page bundle (reading measure ~66ch, long-form documents). Source: style.css */

/* ── Page shell ──────────────────────────────────────────────────────── */
.page-legal .legal-page {
    padding: var(--sp-400) var(--sp-300);
}

.legal-page__wrap {
    max-width: 72ch;
    margin: 0 auto;
}

/* ── Back link ───────────────────────────────────────────────────────── */
.legal-page__back {
    margin-bottom: var(--sp-400);
    font-size: var(--fs-sm);
}

.legal-page__back a {
    color: var(--c-navy);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-page__back a:hover {
    color: var(--c-green);
}

/* ── Document article ────────────────────────────────────────────────── */
.legal-doc {
    line-height: 1.7;
}

.legal-doc__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: var(--c-navy);
    line-height: 1.2;
    margin: 0 0 var(--sp-500);
    padding-bottom: var(--sp-300);
    border-bottom: 2px solid var(--c-green);
}

/* ── Sections ────────────────────────────────────────────────────────── */
.legal-section {
    margin-bottom: var(--sp-500);
}

.legal-section h2,
.legal-doc__html h2 {
    font-size: var(--fs-lg);
    color: var(--c-navy);
    margin: 0 0 var(--sp-300);
}

/* html-block (raw-markup) docs lack .legal-section wrappers, so their
   headings/paras fell through to the base scale. Pull them onto the same
   structured navy typography as the structured-doc sections. */
.legal-doc__html h3 {
    font-size: var(--fs-md);
    color: var(--c-navy);
    margin: var(--sp-300) 0 var(--sp-200);
}

.legal-doc__html p {
    margin: 0 0 var(--sp-200);
}

.legal-section p {
    margin: 0 0 var(--sp-200);
}

.legal-section p.note {
    font-size: var(--fs-sm);
    color: var(--c-text-secondary);
    margin-top: var(--sp-300);
}

/* ── Lists ───────────────────────────────────────────────────────────── */
.legal-section ul,
.legal-section ol {
    margin: var(--sp-200) 0 var(--sp-300) var(--sp-400);
    padding: 0;
}

.legal-section li {
    margin-bottom: var(--sp-150);
}

/* Tick lists */
.legal-section .ticks {
    list-style: none;
    margin-left: 0;
    padding: 0;
}

.legal-section .ticks li {
    padding-left: var(--sp-400);
    position: relative;
    margin-bottom: var(--sp-250);
}

.legal-section .ticks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .4em;
    width: .9em;
    height: .9em;
    background: var(--c-green);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 65%;
}

/* Step lists */
.legal-section .steps {
    counter-reset: step;
    list-style: none;
    margin-left: 0;
    padding: 0;
}

.legal-section .steps li {
    counter-increment: step;
    padding-left: 2.75rem;
    position: relative;
    margin-bottom: var(--sp-300);
}

.legal-section .steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: .1em;
    width: 1.9rem;
    height: 1.9rem;
    background: var(--c-navy);
    color: white;
    font-size: var(--fs-xs);
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Callouts ────────────────────────────────────────────────────────── */
.legal-section .callout {
    background: color-mix(in srgb, var(--c-navy) 5%, white);
    border: 1px solid color-mix(in srgb, var(--c-navy) 15%, white);
    border-left: 3px solid var(--c-green);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    padding: var(--sp-400);
    margin: var(--sp-300) 0;
}

.legal-section .callout h3 {
    font-size: var(--fs-md);
    color: var(--c-navy);
    margin: 0 0 var(--sp-200);
}

/* ── Tables ──────────────────────────────────────────────────────────── */
/* Structured key/value tables (.legal-table, wrapped in .table-scroll) and
   raw tables inside html-block docs (.legal-doc__html table) shipped with no
   styling. Give both a shared bordered grid + tinted header. */
.legal-table,
.legal-doc__html table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--sp-300) 0;
}

.legal-table th,
.legal-table td,
.legal-doc__html table th,
.legal-doc__html table td {
    border: 1px solid var(--c-border);
    padding: var(--sp-200) var(--sp-300);
    text-align: left;
    vertical-align: top;
}

.legal-table thead th,
.legal-table th,
.legal-doc__html table thead th,
.legal-doc__html table th {
    background: var(--c-bg-alt);
    color: var(--c-navy);
}

/* Wide tables scroll horizontally rather than overflow the reading column.
   .table-scroll wraps structured tables; injected html-block tables have no
   wrapper element, so the html block itself becomes the scroll container. */
.table-scroll,
.legal-doc__html {
    overflow-x: auto;
}

/* ── Document footer ─────────────────────────────────────────────────── */
.legal-doc__footer {
    margin-top: var(--sp-600);
    padding-top: var(--sp-400);
    border-top: 1px solid var(--c-border);
    font-size: var(--fs-xs);
    color: var(--c-text-secondary);
}

.ccfs-ico-footnote {
    margin-top: var(--sp-500);
    color: var(--c-ink-subtle);
    font-size: var(--fs-xs);
}

/* ── Legal index (overview page) ─────────────────────────────────────── */
.legal-index-page .legal-group-heading {
    font-size: var(--fs-lg);
    color: var(--c-navy);
    margin: var(--sp-500) 0 var(--sp-300);
    padding-bottom: var(--sp-200);
    border-bottom: 1px solid var(--c-border);
}

.legal-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: var(--sp-300);
    margin-bottom: var(--sp-500);
}

.legal-doc-card {
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: var(--sp-350);
    background: white;
    display: flex;
    flex-direction: column;
    gap: var(--sp-200);
    transition: box-shadow .15s;
}

.legal-doc-card:hover {
    box-shadow: 0 2px 12px color-mix(in srgb, var(--c-navy) 12%, transparent);
}

.legal-doc-card__title {
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--c-navy);
    text-decoration: none;
}

.legal-doc-card__title:hover {
    color: var(--c-green);
    text-decoration: underline;
}

.legal-doc-card__summary {
    font-size: var(--fs-sm);
    color: var(--c-text-secondary);
    flex: 1;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .legal-page__wrap {
        max-width: 100%;
    }

    .legal-doc-grid {
        grid-template-columns: 1fr;
    }
}
