:root {
    --paper: #ffffff;
    --mist: #f3f8fb;
    --mist-strong: #e5f0f5;
    --line: #bfd3dd;
    --steel: #5d7380;
    --ink: #365567;
    --ink-strong: #24485c;
    --teal: #257b89;
    --teal-dark: #326b75;
    --coral: #c85f4f;
    --coral-dark: #ad5144;
    --focus: #7868ba;
    --radius: 14px;
    --wrap: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

body,
button,
a {
    -webkit-font-smoothing: antialiased;
}

p {
    margin: 0 0 1rem;
    font-size: 16px;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink-strong);
    line-height: 1.15;
}

h1 {
    margin-bottom: 1.2rem;
    font-size: 40px;
    letter-spacing: -0.035em;
}

h2 {
    margin-bottom: 1rem;
    font-size: 28px;
    letter-spacing: -0.02em;
}

h3 {
    margin-bottom: 0.75rem;
    font-size: 20px;
}

a {
    color: inherit;
}

.wrap {
    width: min(var(--wrap), calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
}

.header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}

.brand {
    flex: 0 0 auto;
    color: var(--ink-strong);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand::before {
    content: "●";
    margin-right: 10px;
    color: var(--teal);
    font-size: 18px;
}

.nav-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-main a {
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--steel);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.nav-main a:hover,
.nav-main a:focus-visible,
.nav-main a[aria-current="page"] {
    background: var(--mist-strong);
    color: var(--ink-strong);
}

.contact-label {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px 11px;
    color: var(--steel);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.eyebrow,
.section-index,
.note-label {
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow,
.note-label {
    display: block;
    margin-bottom: 10px;
}

.section-index {
    display: block;
    margin-bottom: 10px;
}

.lead,
.home-lead,
.help-lead {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--mist);
}

.lead::after,
.home-lead::after,
.help-lead::after {
    position: absolute;
    right: -70px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border: 26px solid rgba(37, 123, 137, 0.12);
    border-radius: 50%;
    content: "";
}

.lead-layout,
.home-lead-layout,
.help-lead-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
    gap: 56px;
    align-items: center;
    padding-block: 70px;
}

.lead-copy > p,
.home-lead-copy > p,
.help-lead-copy > p {
    max-width: 760px;
}

.legal-note,
.document-note,
.children-note,
.evidence-note,
.process-note,
.judgment-note,
.privacy-note {
    border: 1px solid var(--line);
    border-left: 5px solid var(--teal);
    border-radius: var(--radius);
    background: var(--paper);
    padding: 24px;
}

.legal-note p,
.document-note p,
.children-note p,
.evidence-note p,
.process-note p,
.judgment-note p,
.privacy-note p {
    margin-bottom: 0.6rem;
}

.legal-note p:last-child,
.document-note p:last-child,
.children-note p:last-child,
.evidence-note p:last-child,
.process-note p:last-child,
.judgment-note p:last-child,
.privacy-note p:last-child {
    margin-bottom: 0;
}

.section {
    padding-block: 64px;
}

.section-tint {
    border-block: 1px solid var(--line);
    background: var(--mist);
}

.prose-with-rail,
.evidence-layout,
.children-layout,
.document-layout,
.judgment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 48px;
    align-items: start;
}

.prose-main,
.narrow-prose {
    max-width: 820px;
}

.document-note,
.evidence-note,
.judgment-note {
    border-left-color: var(--coral);
}

.note-title {
    color: var(--coral-dark);
    font-weight: 800;
}

.rule-lines .wrap,
.claim-lines .wrap,
.hearing-lines .wrap {
    position: relative;
    border-left: 3px solid var(--mist-strong);
    padding-left: 32px;
}

.process-strip .wrap,
.preparation-strip .wrap,
.scope-strip .wrap {
    max-width: 900px;
}

.inline-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 34px;
    margin-top: 26px;
    border-top: 1px solid var(--line);
}

.inline-step {
    padding: 18px 0 4px;
    border-bottom: 1px solid var(--line);
}

.inline-step strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ink-strong);
    font-size: 16px;
}

.inline-step p {
    margin-bottom: 0.8rem;
}

.closing-section {
    padding-top: 56px;
    padding-bottom: 42px;
}

.closing-line {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.closing-line > div:first-child {
    max-width: 760px;
}

.closing-marker {
    flex: 0 0 auto;
    border-left: 4px solid var(--coral);
    padding: 6px 0 6px 18px;
    color: var(--steel);
    font-size: 14px;
    font-weight: 700;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--mist);
}

.footer-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 92px;
}

.footer-line p {
    margin: 0;
    color: var(--ink-strong);
    font-weight: 800;
}

.footer-line nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-line a {
    color: var(--ink-strong);
    font-size: 14px;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.footer-line .privacy {
    color: var(--steel);
    font-weight: 400;
}

.policy-main {
    padding-block: 68px;
}

.policy-main .wrap {
    max-width: 820px;
}

.policy-main h1 {
    margin-bottom: 28px;
}

.brand:focus-visible,
.nav-main a:focus-visible,
.site-footer a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .wrap {
        width: min(var(--wrap), calc(100% - 40px));
    }

    .header-line {
        flex-wrap: wrap;
        padding-block: 12px;
    }

    .nav-main {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }

    .lead-layout,
    .home-lead-layout,
    .help-lead-layout,
    .prose-with-rail,
    .evidence-layout,
    .children-layout,
    .document-layout,
    .judgment-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .legal-note,
    .document-note,
    .children-note,
    .evidence-note,
    .process-note,
    .judgment-note,
    .privacy-note {
        max-width: 680px;
    }

    .closing-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .header-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding-block: 14px;
    }

    .nav-main {
        order: initial;
        width: 100%;
        flex-wrap: wrap;
    }

    .nav-main a {
        padding: 7px 10px;
    }

    .contact-label {
        align-self: flex-start;
    }

    .lead-layout,
    .home-lead-layout,
    .help-lead-layout {
        padding-block: 52px;
    }

    .section {
        padding-block: 52px;
    }

    .rule-lines .wrap,
    .claim-lines .wrap,
    .hearing-lines .wrap {
        padding-left: 24px;
    }

    .inline-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .wrap {
        width: min(var(--wrap), calc(100% - 28px));
    }

    h1 {
        font-size: 40px;
        overflow-wrap: break-word;
    }

    h2 {
        font-size: 28px;
        overflow-wrap: break-word;
    }

    .legal-note,
    .document-note,
    .children-note,
    .evidence-note,
    .process-note,
    .judgment-note,
    .privacy-note {
        padding: 20px;
    }

    .footer-line {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 24px;
    }
}
