.legal-nav {
    justify-content: space-between;
}

.legal-main {
    padding: 70px 0 100px;
}

.legal-hero {
    max-width: 900px;
    margin-bottom: 38px;
}

.legal-kicker {
    margin: 0 0 13px;
    color: var(--green);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.legal-hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 7vw, 5.7rem);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: .95;
}

.legal-lead {
    max-width: 760px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.draft-warning {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
    max-width: 900px;
    margin-top: 28px;
    border: 1px solid #d69a35;
    border-radius: 12px;
    background: #fff7e7;
    padding: 20px;
}

.draft-warning > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #d69a35;
    color: #fff;
    font-weight: 900;
}

.draft-warning strong,
.draft-warning p {
    margin: 0;
}

.draft-warning p {
    margin-top: 5px;
    color: #70511d;
    line-height: 1.55;
}

.legal-layout {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 106px;
    display: grid;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .76);
    padding: 17px;
}

.legal-toc strong {
    margin: 0 8px 8px;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.legal-toc a {
    border-radius: 7px;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.35;
    padding: 7px 8px;
    text-decoration: none;
}

.legal-toc a:hover {
    background: var(--mint);
    color: var(--green-dark);
}

.legal-content {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(13, 62, 49, .08);
    padding: clamp(25px, 5vw, 58px);
}

.legal-section {
    scroll-margin-top: 110px;
    border-bottom: 1px solid var(--line);
    padding: 0 0 42px;
}

.legal-section + .legal-section {
    padding-top: 42px;
}

.legal-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    margin: 0 0 20px;
    color: var(--green-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.1;
}

.legal-section h3 {
    margin: 28px 0 10px;
    font-size: 1.02rem;
}

.legal-section p,
.legal-section li {
    color: #46534e;
    font-size: .94rem;
    line-height: 1.75;
}

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

.legal-section ul {
    margin: 10px 0 18px;
    padding-left: 22px;
}

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

.legal-section a {
    color: var(--green);
    font-weight: 750;
    text-underline-offset: 3px;
}

.placeholder {
    display: inline;
    border: 1px solid #d69a35;
    border-radius: 5px;
    background: #fff4d9;
    color: #6f4b0c;
    font-size: .88em;
    font-weight: 850;
    line-height: 1.75;
    padding: 2px 5px;
}

.editor-note {
    margin: 20px 0;
    border-left: 4px solid var(--green);
    border-radius: 0 9px 9px 0;
    background: var(--mint);
    color: var(--green-dark);
    font-size: .88rem;
    line-height: 1.65;
    padding: 15px 17px;
}

.editor-note strong {
    color: var(--green-dark);
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 18px 0;
}

.legal-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    text-align: left;
}

.legal-table th,
.legal-table td {
    border: 1px solid var(--line);
    padding: 12px 13px;
    vertical-align: top;
}

.legal-table th {
    background: #eef5f1;
    color: var(--green-dark);
    font-size: .78rem;
}

.legal-table td {
    color: #46534e;
    font-size: .82rem;
    line-height: 1.55;
}

.publication-checklist {
    border: 1px dashed var(--coral);
    border-radius: 11px;
    background: #fff8f5;
    padding: 20px;
}

.publication-checklist h3 {
    margin-top: 0;
    color: #8a3928;
}

.legal-footer-links {
    justify-content: flex-end;
}

.legal-contact {
    margin-top: 26px;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid #d7e5da;
    border-radius: 14px;
    background: #f5f8f3;
}
.legal-contact > h3, .legal-contact-success h3 { margin-top: 0; }
.legal-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.legal-contact form { display: grid; gap: 18px; }
.legal-contact label { display: grid; gap: 8px; color: var(--green-dark); font-size: .9rem; font-weight: 650; }
.legal-contact input:not([type="checkbox"]), .legal-contact textarea {
    width: 100%; min-width: 0; box-sizing: border-box; padding: 13px 14px;
    border: 1px solid #bccdc1; border-radius: 8px; background: white;
    color: #173c2d; font: inherit; font-size: 16px;
}
.legal-contact textarea { resize: vertical; min-height: 140px; }
.legal-contact input:focus-visible, .legal-contact textarea:focus-visible, .legal-contact-submit:focus-visible {
    outline: 3px solid #88b398; outline-offset: 3px;
}
.legal-contact .legal-contact-privacy { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 12px; font-weight: 400; line-height: 1.6; }
.legal-contact-privacy input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: #0d3e31; }
.legal-contact .legal-contact-note { margin: 0; font-size: .82rem; }
.legal-contact-submit { justify-self: start; min-height: 48px; border: 0; border-radius: 8px; padding: 14px 22px; background: #0d3e31; color: white; font: inherit; font-weight: 700; cursor: pointer; }
.legal-contact-submit:hover { background: #17533f; }
.legal-contact-submit:disabled { opacity: .65; cursor: wait; }
.legal-contact-status:empty { display: none; }
.legal-contact .legal-contact-status { margin: 16px 0 0; }
.legal-contact .legal-contact-status.error { color: #8a3928; }
.legal-contact-success { border-left: 3px solid #0d3e31; padding: 16px; background: #e7f0e6; border-radius: 8px; }
.legal-contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.legal-contact [hidden] { display: none !important; }
@media (max-width: 560px) {
    .legal-contact-grid { grid-template-columns: 1fr; }
    .legal-contact-submit { width: 100%; }
}

@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-toc {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legal-toc strong {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .legal-main {
        padding-top: 48px;
    }

    .legal-nav .account-button {
        font-size: .78rem;
        padding: 0 12px;
    }

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

    .legal-content {
        padding: 22px 18px;
    }

    .draft-warning {
        grid-template-columns: 1fr;
    }
}
