/* Shared legal/resource pages and footer links. Loaded separately so live cache stamps stay put. */
.page{max-width:40rem;padding:1rem 1.25rem 3rem}
.page h1{margin:.4rem 0 .8rem;font-size:1.6rem}
.page h2{margin:1.6rem 0 .5rem;font-size:1.15rem}
.page h3{margin:1.1rem 0 .4rem;font-size:1.02rem}
.page p,.page li{line-height:1.55}
.page p{margin:.4rem 0 .8rem}
.page ul{margin:.2rem 0 1rem;padding-left:1.2rem}
.page li{margin:.25rem 0}
.page .updated{color:#567;font-size:.92rem;margin:-.3rem 0 1rem}
body.dark .page .updated{color:#9aa}
.about-lang{margin:0 0 1rem}
.about-lang label{margin-right:.4rem}
[dir=rtl] .page{text-align:right}
.site-legal-note{font-size:.92rem;color:#456}
.addr{font-style:normal;line-height:1.5;margin:.4rem 0 1rem}
.addr span{display:block}
.page-nav{display:flex;flex-wrap:wrap;gap:.35rem .9rem;margin:1.2rem 0 .6rem;padding-top:8px;border-top:1px solid #ddd;font-size:.95rem}
.page-nav a{color:#1a5fb4;text-decoration:none}
.page-nav a:hover{text-decoration:underline}
body.dark .page-nav{border-color:#333}
body.dark .page-nav a{color:#8cb4ee}
.hm-foot .page-nav, .hm-foot nav.page-nav{border-top:0;padding-top:6px;margin:6px 0 0;justify-content:center;font-size:11px;gap:.2rem .65rem}
.hm-foot .page-nav a{color:inherit}
#more a.site-page-link{display:block}

/* Keep footer links visible in the Layers panel (phone sheet is short). */
#panel .hm-foot{position:sticky;bottom:0;background:#fff;margin-top:8px;padding:8px 0 10px;z-index:2}
body.dark #panel .hm-foot{background:#15171a}

/* Legal-page header (also used when the map stylesheet is present). */
body[data-page] header.top{display:block;background:var(--ca-theme,#b3141c);color:#fff;padding:.55rem 1rem}
html[data-brand="cwm"] body[data-page] header.top{background:#0f4c81}
body[data-page] header.top a.logo{color:#fff;text-decoration:none;font-weight:700;font-size:1.15rem;display:flex;align-items:center;gap:8px;line-height:1.2}body[data-page] header.top .logo-mark{width:32px;height:32px;flex:0 0 32px;border-radius:7px;display:block}body[data-page] header.top .logo-text{display:flex;flex-direction:column;min-width:0}
body[data-page] header.top a.logo .tagline{display:block;font-weight:400;font-size:.8rem;opacity:.92;margin-top:.15rem}
.uc{background:#1f4e9e;color:#fff;text-align:center;padding:5px 10px;font-weight:600}
html[data-brand="cwm"] .uc{background:#163d66}

#panel .hm-foot .page-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 10px;margin:4px 0 0;padding-top:4px}
