.ht-legal-page { margin: 0 auto; max-width: 54rem; padding: 2rem 1.25rem; font-size: 1rem; line-height: 1.65; color: #263b30; }
.ht-legal-document { max-width: 54rem; margin: auto; text-align: left; overflow-wrap: anywhere; }
.ht-legal-document :is(h1:not(:where([data-ht-legal-level])),h2:where([data-ht-legal-level="1"])) { font-size: clamp(1.8rem,4vw,2.6rem); line-height:1.2; margin: 0 0 1rem; }
.ht-legal-document :is(h2:not(:where([data-ht-legal-level])),h3:where([data-ht-legal-level="2"])) { font-size:1.4rem; line-height:1.3; margin: 1.75rem 0 .65rem; }
.ht-legal-document :is(h3:not(:where([data-ht-legal-level])),h4:where([data-ht-legal-level="3"])) { font-size:1.1rem; margin:1.2rem 0 .5rem; }
.ht-legal-document p { margin:.75rem 0; line-height:1.65; }
.ht-legal-document ul,.ht-legal-document ol { padding-left:1.6rem; margin:.75rem 0; }
.ht-legal-document ul {list-style:disc;} .ht-legal-document ol {list-style:decimal;}
.ht-legal-document li {margin:.3rem 0;line-height:1.6;}
.ht-legal-document a,.ht-legal-toolbar a {color:#285b42;text-decoration:underline;}
.ht-legal-notice {background:#f5f1e8;padding:.75rem;border-radius:.4rem;}
.ht-legal-dialog {position:fixed;inset:0;margin:auto;width:min(54rem,94vw);max-width:94vw;max-height:90vh;max-height:90dvh;padding:0;border:1px solid #c4cec5;border-radius:1rem;background:#fffdf8;color:#263b30;overflow:hidden;}
.ht-legal-dialog[open] {display:flex;flex-direction:column;}
.ht-legal-dialog:not([open]) {display:none;}
.ht-legal-dialog::backdrop {background:rgba(0,0,0,.65);}
.ht-legal-scroll {overflow:auto;min-height:0;overscroll-behavior:contain;padding:1.25rem clamp(1rem,4vw,2.5rem);}
.ht-legal-toolbar {display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.8rem 1rem;border-bottom:1px solid #d8dfd8;flex-shrink:0;}
.ht-legal-toolbar:last-child {border-bottom:0;border-top:1px solid #d8dfd8;}
.ht-legal-toolbar button {background:#294c38;color:white;border:0;border-radius:.4rem;padding:.6rem 1rem;cursor:pointer;}
html.ht-legal-open {overflow:hidden;}
.ht-legal-dialog :focus-visible {outline:2px solid #285b42;outline-offset:3px;}


/* Happy Tails legal typography refinement */

.ht-legal-dialog,
.ht-legal-page,
.ht-legal-toolbar,
.ht-legal-document {
    font-family: inherit;
}

.ht-legal-toolbar button {
    font: inherit;
    font-weight: 600;
}

.ht-legal-toolbar:last-child {
    justify-content: flex-start;
}

.ht-legal-document :is(h1:not(:where([data-ht-legal-level])),h2:where([data-ht-legal-level="1"])),
.ht-legal-document :is(h2:not(:where([data-ht-legal-level])),h3:where([data-ht-legal-level="2"])),
.ht-legal-document :is(h3:not(:where([data-ht-legal-level])),h4:where([data-ht-legal-level="3"])) {
    letter-spacing: inherit;
}
