.legal-page-main {
    background-color: #f4f8f7;
}

.legal-hero {
    position: relative;
    padding: 28px 0 clamp(52px, 7vw, 78px);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(115deg, #fff 0%, #fff 64%, #eaf6f4 64%, #f6fbfa 100%);
}

.legal-hero .breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 12px;
}

.legal-hero .breadcrumbs a {
    color: var(--teal-700);
    font-weight: 750;
}

.legal-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(42px, 7vw, 96px);
    align-items: center;
}

.legal-hero__content {
    max-width: 850px;
}

.legal-hero h1 {
    max-width: 840px;
    margin: 8px 0 20px;
    color: var(--ink);
    font-size: clamp(2.5rem, 5.2vw, 4.6rem);
    font-weight: 880;
    letter-spacing: -.055em;
    line-height: .98;
    text-transform: uppercase;
}

.legal-hero h1 span {
    display: block;
    color: var(--teal-700);
}

.legal-hero__lead {
    max-width: 730px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.7;
}

.legal-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.legal-hero__actions .button {
    gap: 9px;
}

.legal-hero__actions .icon {
    width: 17px;
    height: 17px;
}

.legal-hero__facts {
    display: flex;
    margin: 28px 0 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 14px 24px;
    list-style: none;
}

.legal-hero__facts li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 750;
}

.legal-hero__facts .icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: var(--teal-700);
}

.legal-hero__card {
    padding: 26px;
    border: 1px solid #0d5f59;
    border-radius: 22px;
    color: #fff;
    background-color: #064a45;
}

.legal-hero__card-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 16px;
    color: #fff;
    background-color: rgba(255, 255, 255, .1);
}

.legal-hero__card-icon .icon {
    width: 27px;
    height: 27px;
}

.legal-hero__card > p {
    margin: 0 0 4px;
    color: rgba(255, 255, 255, .62);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.legal-hero__card > strong {
    display: block;
    margin-bottom: 20px;
    color: #fff;
    font-size: 26px;
    letter-spacing: -.035em;
}

.legal-hero__meta {
    display: grid;
    gap: 0;
    margin: 0;
}

.legal-hero__meta div {
    display: grid;
    gap: 3px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.legal-hero__meta div:last-child {
    padding-bottom: 0;
}

.legal-hero__meta dt {
    color: rgba(255, 255, 255, .5);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.legal-hero__meta dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.legal-layout {
    display: grid;
    padding-top: clamp(44px, 6vw, 74px);
    padding-bottom: clamp(68px, 8vw, 108px);
    grid-template-columns: minmax(240px, .34fr) minmax(0, 1fr);
    gap: clamp(36px, 5vw, 70px);
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 100px;
    padding: 24px 20px 20px;
    border: 1px solid #0d5f59;
    border-radius: 20px;
    background-color: #063f3b;
}

.legal-toc__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #70ded5;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.legal-toc > strong {
    display: block;
    margin-bottom: 15px;
    color: #fff;
    font-size: 19px;
    letter-spacing: -.02em;
}

.legal-toc ol {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: legal-toc;
}

.legal-toc li {
    counter-increment: legal-toc;
}

.legal-toc a {
    display: grid;
    padding: 8px 9px;
    grid-template-columns: 23px minmax(0, 1fr);
    gap: 7px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    line-height: 1.4;
    transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

.legal-toc a::before {
    content: counter(legal-toc, decimal-leading-zero);
    color: #70ded5;
    font-size: 9px;
    font-weight: 850;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
    border-color: rgba(255, 255, 255, .14);
    color: #fff;
    background-color: #0b5752;
}

.legal-document {
    min-width: 0;
}

.legal-owner-note {
    display: grid;
    margin-bottom: 22px;
    padding: 22px;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    border: 1px solid #d6b55f;
    border-left-width: 4px;
    border-radius: 16px;
    background-color: #fff9e7;
}

.legal-owner-note > .icon {
    width: 27px;
    height: 27px;
    color: #8a6412;
}

.legal-owner-note strong {
    display: block;
    margin-bottom: 5px;
    color: #60460c;
    font-size: 13px;
}

.legal-owner-note p {
    margin: 0;
    color: #75602e;
    font-size: 12px;
    line-height: 1.65;
}

.legal-section {
    padding: clamp(26px, 4vw, 42px);
    scroll-margin-top: 104px;
    border: 1px solid var(--line);
    border-left: 4px solid #b8ded9;
    border-radius: 20px;
    background-color: #fff;
    transition: border-color .16s ease;
}

.legal-section:hover {
    border-color: rgba(7, 143, 135, .35);
    border-left-color: var(--teal-700);
}

.legal-section + .legal-section {
    margin-top: 18px;
}

.legal-section:nth-of-type(n + 2) {
    content-visibility: auto;
    contain-intrinsic-size: auto 560px;
}

.legal-section h2 {
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: clamp(21px, 2.6vw, 30px);
    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.16;
    text-transform: uppercase;
}

.legal-section h3 {
    margin: 26px 0 11px;
    color: var(--teal-800);
    font-size: 16px;
    letter-spacing: -.015em;
}

.legal-section p,
.legal-section li {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.75;
}

.legal-section p {
    margin: 0 0 15px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
    display: grid;
    gap: 9px;
    margin: 13px 0 16px;
    padding-left: 22px;
}

.legal-section li::marker {
    color: var(--teal-700);
    font-weight: 850;
}

.legal-section a {
    color: var(--teal-800);
    font-weight: 750;
    text-decoration: underline;
    text-decoration-color: rgba(7, 143, 135, .38);
    text-underline-offset: 3px;
}

.legal-section code {
    padding: 2px 6px;
    border: 1px solid rgba(7, 143, 135, .18);
    border-radius: 6px;
    color: var(--teal-800);
    background-color: var(--teal-50);
    font-size: .9em;
    overflow-wrap: anywhere;
}

.legal-table-wrap {
    max-width: 100%;
    margin: 18px 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background-color: #fff;
    scrollbar-color: var(--teal-700) #e9f1ef;
    scrollbar-width: thin;
}

.legal-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 11px;
}

.legal-table th,
.legal-table td {
    padding: 15px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    line-height: 1.58;
}

.legal-table th:last-child,
.legal-table td:last-child {
    border-right: 0;
}

.legal-table th {
    color: #fff;
    background-color: #075a55;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .025em;
}

.legal-table tbody tr:nth-child(even) {
    background-color: #f4f9f8;
}

.legal-table tbody tr:hover {
    background-color: #eaf6f4;
}

.legal-table tr:last-child td {
    border-bottom: 0;
}

.legal-contact-card {
    display: grid;
    margin-bottom: 20px;
    padding: 24px;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 17px;
    border: 1px solid #0d5f59;
    border-radius: 18px;
    color: #fff;
    background-color: #064a45;
}

.legal-contact-card > span {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 15px;
    background-color: rgba(255, 255, 255, .1);
}

.legal-contact-card .icon {
    width: 25px;
    height: 25px;
}

.legal-contact-card strong,
.legal-contact-card a {
    color: #fff;
}

.legal-contact-card p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, .74);
    font-size: 12px;
}

@media (max-width: 980px) {
    .legal-hero {
        background: linear-gradient(150deg, #fff 0%, #fff 68%, #eaf6f4 68%, #f6fbfa 100%);
    }

    .legal-hero__inner,
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-hero__card {
        width: min(100%, 620px);
    }

    .legal-hero__meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .legal-hero__meta div {
        padding: 12px;
        border-top: 1px solid rgba(255, 255, 255, .14);
        border-left: 1px solid rgba(255, 255, 255, .14);
    }

    .legal-hero__meta div:first-child {
        padding-left: 0;
        border-left: 0;
    }

    .legal-toc {
        position: static;
    }

    .legal-toc ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px 14px;
    }
}

@media (max-width: 760px) {
    .legal-hero {
        padding: 20px 0 48px;
        background: linear-gradient(145deg, var(--teal-50), #fff 74%);
    }

    .legal-hero .breadcrumbs {
        margin-bottom: 25px;
    }

    .legal-hero__inner {
        gap: 34px;
    }

    .legal-hero h1 {
        font-size: clamp(2.15rem, 11vw, 3.2rem);
    }

    .legal-hero__lead {
        font-size: 14px;
    }

    .legal-hero__actions {
        flex-direction: column;
    }

    .legal-hero__actions .button {
        width: 100%;
        justify-content: center;
    }

    .legal-hero__facts {
        display: grid;
        gap: 11px;
    }

    .legal-hero__card {
        padding: 22px;
    }

    .legal-hero__meta,
    .legal-toc ol {
        grid-template-columns: 1fr;
    }

    .legal-hero__meta div,
    .legal-hero__meta div:first-child {
        padding: 11px 0;
        border-top: 1px solid rgba(255, 255, 255, .14);
        border-left: 0;
    }

    .legal-layout {
        padding-top: 36px;
        gap: 28px;
    }

    .legal-section {
        padding: 25px 19px;
        border-radius: 16px;
    }

    .legal-section h2 {
        font-size: clamp(20px, 7vw, 25px);
    }

    .legal-owner-note,
    .legal-contact-card {
        grid-template-columns: 1fr;
    }

    .legal-table {
        min-width: 700px;
    }
}

@media (hover: none) {
    .legal-toc a,
    .legal-section {
        transition: none;
    }

    .legal-section:hover {
        border-color: var(--line);
        border-left-color: #b8ded9;
    }
}

@media (prefers-reduced-motion: reduce) {
    .legal-toc a,
    .legal-section {
        transition: none;
    }
}
