/* Legal pages, About Us and Contact Us. Uses index.css (header, footer, buttons) and guide.css (hero, contents box). */
.lg .g-hero h1{max-width:22ch}
.lg .g-toc li:last-child a::before{content:counter(t)}
.lg .g-layout.lg-wide{grid-template-columns:minmax(0,1fr);max-width:980px}
.lg-doc{display:grid;gap:18px;padding:clamp(22px,4vw,44px);border-radius:24px;background:#fffdf9;border:1px solid #e4dccf;box-shadow:0 24px 48px -36px rgba(70,58,35,.55)}
.lg-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.lg-ico{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:linear-gradient(180deg,#f6e7da,#efd8c6);color:var(--terra2)}
.lg-ico svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.lg-updated{margin:0;padding:6px 14px;border-radius:999px;background:#f3ece1;font-size:14px;color:var(--mute)}
.lg-sec{scroll-margin-top:100px;padding-top:18px;border-top:1px solid #eee6da}
.lg-sec:first-of-type{border-top:0;padding-top:0}
.lg-sec h2{margin:0 0 10px;font-size:clamp(21px,2.2vw,26px);font-weight:700;line-height:1.25;letter-spacing:-.01em;color:var(--olive2)}
.lg-sec p,.lg-sec li{font-size:16.5px;line-height:1.7;color:#3b3930}
.lg-sec p{margin:0 0 12px;max-width:72ch}
.lg-sec ul{margin:0 0 12px;padding:0;list-style:none;display:grid;gap:8px;max-width:72ch}
.lg-sec li{position:relative;padding-left:26px}
.lg-sec li::before{content:"";position:absolute;left:4px;top:.72em;width:8px;height:8px;border-radius:50%;background:var(--terra)}
.lg-sec a{color:var(--terra2);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.lg-sec a:hover{color:#6e3b22}
.lg-sec a.btn{text-decoration:none}
.lg-sec a.btn.g-primary{color:#fff}
.lg-sec code{padding:1px 6px;border-radius:6px;background:#f3ece1;font-size:.92em}
.lg-sec .g-note{margin:0 0 12px;max-width:none}
.lg-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin:4px 0 8px}
.lg-card{display:grid;gap:6px;padding:18px;border-radius:18px;background:#f8f3eb;border:1px solid #ebe2d4}
.lg-card b{font-size:17px;color:var(--olive2)}
.lg-card span{font-size:15px;line-height:1.55;color:var(--mute)}
.lg-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px}
.lg-mail{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;padding:22px;border-radius:20px;background:linear-gradient(180deg,#fbf3ea,#f6ebdf);border:1px solid rgba(169,100,63,.25)}
.lg-mail-ico{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:var(--terra);color:#fff}
.lg-mail-ico svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lg-mail-lbl{display:block;font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}
.lg-sec a.lg-mail-addr{display:inline-block;font-size:clamp(19px,2.4vw,24px);font-weight:700;color:var(--olive2);text-decoration:none;word-break:break-all}
.lg-sec a.lg-mail-addr:hover{color:var(--terra2);text-decoration:underline}
.lg-mail-sub{display:block;font-size:15px;color:var(--mute)}
.lg-mail-btns{display:flex;flex-wrap:wrap;gap:10px}
.lg-mail-btns .btn{min-height:48px}
.lg-copied{grid-column:1/-1;margin:0 !important;font-size:14px !important;color:var(--terra2) !important;min-height:1em}
.lg-copied:empty{display:none}
.lg-table{overflow-x:auto;border-radius:16px;border:1px solid #e4dccf}
.lg-table:focus-visible{outline:2px solid var(--terra);outline-offset:2px}
.lg-table table{width:100%;border-collapse:collapse;min-width:560px;font-size:15px}
.lg-table th{padding:12px 14px;text-align:left;background:#f3ece1;color:var(--olive2);font-weight:600}
.lg-table td{padding:12px 14px;border-top:1px solid #eee6da;color:#3b3930;vertical-align:top}
@media(max-width:760px){.lg-mail{grid-template-columns:minmax(0,1fr)}.lg-mail-btns .btn{flex:1}}
/* guide.css hides .btn.g-ghost in its compact hero: show it again on these pages */
.lg .lg-doc .btn.g-ghost,.lg .g-toc .btn.g-ghost{display:inline-flex}
.lg .g-toc .btn.g-toc-btn{display:flex}
@media(max-width:480px){.lg-sec a.lg-mail-addr{font-size:18px;word-break:normal;overflow-wrap:anywhere}}
.lg-sec a.lg-mail-addr{word-break:normal;overflow-wrap:normal;white-space:nowrap}
.lg-mail-btns .btn{white-space:nowrap}
.lg .g-toc .btn.g-toc-btn{white-space:nowrap;font-size:14.5px}
@media(max-width:760px){.lg-mail-btns{display:grid;grid-template-columns:minmax(0,1fr)}.lg-mail-btns .btn{width:100%;justify-content:center}}
@media(max-width:400px){.lg-sec a.lg-mail-addr{font-size:17px;white-space:normal;overflow-wrap:anywhere}}
.lg-mail{grid-template-columns:auto minmax(0,1fr)}
.lg-mail-btns{grid-column:2}
@media(max-width:760px){.lg-mail{grid-template-columns:minmax(0,1fr)}.lg-mail-btns{grid-column:auto}}
