.legal-page {
    color: var(--color-text);
    background: #fbfcfa;
}

.legal-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 78% 10%, rgba(114, 190, 151, .2), transparent 28rem),
        linear-gradient(135deg, #123f34 0%, #0c5c45 100%);
}

.legal-hero::after {
    position: absolute;
    right: -8rem;
    bottom: -13rem;
    width: 32rem;
    height: 32rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    box-shadow: 0 0 0 5rem rgba(255,255,255,.025), 0 0 0 10rem rgba(255,255,255,.018);
    content: "";
}

.legal-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 15rem;
    align-items: center;
    gap: 4rem;
    min-height: 33rem;
    padding-top: clamp(5rem, 10vw, 8rem);
    padding-bottom: clamp(4rem, 8vw, 6.5rem);
}

.legal-hero__copy { max-width: 51rem; }

.legal-page__eyebrow {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0 0 1.1rem;
    color: #aee2c9;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.legal-page__eyebrow span {
    width: 1.8rem;
    height: 2px;
    background: #82d0ab;
}

.legal-hero h1 {
    max-width: 48rem;
    margin: 0;
    color: #fff;
    font: 600 clamp(2.8rem, 6vw, 5rem)/1.04 "Lora", serif;
    letter-spacing: -.035em;
}

.legal-page__intro {
    max-width: 47rem;
    margin: 1.4rem 0 0;
    color: rgba(255,255,255,.82);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.75;
}

.legal-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.75rem;
    margin-top: 2rem;
}

.legal-hero__meta span,
.legal-hero__meta button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.76);
    font: inherit;
    font-size: .9rem;
}

.legal-hero__meta button {
    padding: .55rem .85rem;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 2rem;
    background: rgba(255,255,255,.07);
    cursor: pointer;
}

.legal-hero__meta button:hover { background: rgba(255,255,255,.15); }
.legal-hero__meta svg { width: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; }

.legal-hero__mark {
    display: grid;
    width: 14rem;
    height: 14rem;
    place-items: center;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    box-shadow: inset 0 0 0 1.25rem rgba(255,255,255,.025);
}

.legal-hero__mark svg { width: 7rem; fill: none; stroke: #9cdbbd; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; }

.legal-highlights { position: relative; z-index: 2; margin-top: -2.5rem; }

.legal-highlights__panel {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: clamp(2rem, 6vw, 5rem);
    padding: clamp(1.6rem, 4vw, 2.5rem);
    border: 1px solid #dce8e2;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 1.25rem 3rem rgba(15, 71, 55, .09);
}

.legal-highlights__panel > div > span,
.legal-related__heading span,
.legal-contact__inner > div > span {
    color: #227459;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.legal-highlights h2 { margin: .4rem 0 0; color: #153f34; font-size: clamp(1.45rem, 3vw, 2rem); }
.legal-highlights ul { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.legal-highlights li { display: flex; gap: .7rem; color: #405c54; line-height: 1.5; }
.legal-highlights li span { display: grid; flex: 0 0 1.45rem; width: 1.45rem; height: 1.45rem; place-items: center; border-radius: 50%; background: #e0f3e9; color: #167052; font-weight: 800; }

.legal-content {
    display: grid;
    grid-template-columns: 16rem minmax(0, 1fr);
    align-items: start;
    gap: clamp(2rem, 6vw, 5.5rem);
    padding-top: clamp(4rem, 9vw, 7rem);
    padding-bottom: clamp(5rem, 10vw, 8rem);
}

.legal-toc { position: sticky; top: 7rem; }
.legal-toc > p { margin: 0 0 1rem; color: #173f35; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.legal-toc nav { display: grid; border-left: 1px solid #d4e1db; }
.legal-toc nav a { display: grid; grid-template-columns: 1.8rem 1fr; gap: .45rem; padding: .58rem 0 .58rem 1rem; color: #597068; font-size: .88rem; line-height: 1.35; text-decoration: none; transition: color 160ms ease, border-color 160ms ease; }
.legal-toc nav a:hover { color: #147052; }
.legal-toc nav span { color: #8ca098; font-size: .72rem; font-weight: 700; }

.legal-toc__help { display: grid; gap: .25rem; margin-top: 1.6rem; padding: 1.1rem; border-radius: .85rem; background: #eaf4ef; color: #174c3d; text-decoration: none; }
.legal-toc__help span { color: #24765c; font-size: .85rem; }

.legal-page__sections { min-width: 0; }
.legal-page__sections section { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1.25rem; scroll-margin-top: 7rem; }
.legal-page__sections section + section { margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid #dfe8e3; }
.legal-section__number { display: grid; width: 2.55rem; height: 2.55rem; place-items: center; border-radius: .7rem; background: #e4f2eb; color: #187053; font-size: .75rem; font-weight: 800; }
.legal-page__sections h2 { margin: .15rem 0 .85rem; color: #143f34; font: 600 clamp(1.55rem, 3vw, 2rem)/1.25 "Lora", serif; }
.legal-page__sections p { max-width: 50rem; margin: 0; color: #536b64; font-size: 1.02rem; line-height: 1.75; }
.legal-page__sections ul { display: grid; gap: .7rem; max-width: 50rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.legal-page__sections li { position: relative; padding-left: 1.45rem; color: #536b64; line-height: 1.65; }
.legal-page__sections li::before { position: absolute; top: .67rem; left: 0; width: .45rem; height: .45rem; border-radius: 50%; background: #55ac85; content: ""; }

.legal-section__note { max-width: 50rem; margin-top: 1.35rem; padding: 1.15rem 1.25rem; border-left: 3px solid #47a27b; border-radius: 0 .7rem .7rem 0; background: #edf6f1; }
.legal-section__note strong { display: block; margin-bottom: .25rem; color: #175a45; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.legal-section__note p { font-size: .94rem; }

.legal-related { padding: clamp(4rem, 8vw, 6rem) 0; background: #eef5f1; }
.legal-related__heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.legal-related__heading h2 { margin: .35rem 0 0; color: #143f34; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.legal-related__heading > p { max-width: 29rem; margin: 0; color: #5d716b; line-height: 1.6; }
.legal-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.legal-related__grid a { position: relative; min-height: 11rem; padding: 1.5rem; border: 1px solid #d8e5df; border-radius: 1rem; background: #fff; color: inherit; text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease; }
.legal-related__grid a:hover { transform: translateY(-4px); box-shadow: 0 1rem 2.5rem rgba(18, 72, 57, .1); }
.legal-related__grid span { color: #174d3e; font: 600 1.15rem "Lora", serif; }
.legal-related__grid p { max-width: 14rem; margin: .7rem 0 0; color: #677b74; font-size: .9rem; line-height: 1.55; }
.legal-related__grid strong { position: absolute; right: 1.4rem; bottom: 1.2rem; color: #25805f; font-size: 1.3rem; }

.legal-contact { padding: 4rem 0; color: #fff; background: #133f34; }
.legal-contact__inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.legal-contact h2 { margin: .35rem 0 .55rem; color: #fff; font-size: clamp(1.75rem, 4vw, 2.4rem); }
.legal-contact p { max-width: 43rem; margin: 0; color: rgba(255,255,255,.72); line-height: 1.65; }
.legal-contact .button { flex: 0 0 auto; background: #fff; color: #14523f; }

@media (max-width: 58rem) {
    .legal-hero__inner { grid-template-columns: 1fr; min-height: 0; }
    .legal-hero__mark { display: none; }
    .legal-content { grid-template-columns: 1fr; }
    .legal-toc { position: static; }
    .legal-toc nav { grid-template-columns: repeat(2, 1fr); gap: .25rem; border-left: 0; }
    .legal-toc nav a { border-left: 1px solid #d4e1db; }
    .legal-toc__help { display: inline-grid; }
}

@media (max-width: 44rem) {
    .legal-highlights__panel, .legal-related__grid { grid-template-columns: 1fr; }
    .legal-highlights { margin-top: -1.5rem; }
    .legal-related__heading, .legal-contact__inner { align-items: flex-start; flex-direction: column; }
    .legal-page__sections section { grid-template-columns: 1fr; gap: .7rem; }
    .legal-page__sections section + section { margin-top: 2.5rem; padding-top: 2.5rem; }
}

@media print {
    .site-header, .site-footer, .legal-highlights, .legal-toc, .legal-related, .legal-contact, .legal-hero__mark, .legal-hero__meta button { display: none !important; }
    .legal-hero { color: #111; background: none; }
    .legal-hero h1, .legal-page__eyebrow, .legal-page__intro, .legal-hero__meta span { color: #111; }
    .legal-hero__inner { min-height: auto; padding: 1rem 0 2rem; }
    .legal-content { display: block; padding: 0; }
    .legal-page__sections section { break-inside: avoid; }
}
