:root{--akaiyami-legal-height:64px}
body{padding-bottom:var(--akaiyami-legal-height)!important}
.akaiyamiLegalBar{position:fixed!important;inset:auto 0 0!important;z-index:2147483000!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:8px 20px!important;margin:0!important;padding:10px 20px calc(10px + env(safe-area-inset-bottom))!important;border-top:1px solid #3e4945!important;background:#16231f!important;color:#d7e4dc!important;font:12px/1.5 system-ui,sans-serif!important;text-align:left!important;box-shadow:0 -4px 18px #0002}
.akaiyamiLegalBar nav{display:flex!important;flex-wrap:wrap!important;gap:6px 17px!important;align-items:center!important}
.akaiyamiLegalBar a,.akaiyamiLegalBar button{padding:2px 0!important;margin:0!important;color:#e0eee6!important;background:none!important;border:0!important;border-radius:0!important;font:inherit!important;text-decoration:underline!important;text-underline-offset:3px!important;cursor:pointer!important}
.akaiyamiLegalBar a:focus-visible,.akaiyamiLegalBar button:focus-visible{outline:2px solid #f9c889!important;outline-offset:3px!important}
.akaiyamiPrivacyDialog{box-sizing:border-box;width:min(640px,calc(100vw - 28px));max-height:calc(100dvh - 40px);overflow:auto;padding:28px;color:#e7f0ea;background:#172720;border:1px solid #638371;border-radius:20px;font:15px/1.65 system-ui,sans-serif;box-shadow:0 30px 100px #0006}
.akaiyamiPrivacyDialog::backdrop{background:#07110dc9;backdrop-filter:blur(3px)}
.akaiyamiPrivacyDialog h2{font:700 25px/1.3 system-ui,sans-serif;margin:0 0 18px;color:inherit}.akaiyamiPrivacyDialog p{margin:14px 0;color:inherit}.akaiyamiPrivacyDialog a{color:#bde8d1;text-decoration:underline}
.akaiyamiPrivacyActions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.akaiyamiPrivacyActions button{flex:1 1 200px;min-height:44px;padding:10px 14px;border:1px solid #99b4a5;border-radius:9px;background:#304d3e;color:#fff;font:600 14px/1.4 system-ui,sans-serif;cursor:pointer}.akaiyamiPrivacyActions button[hidden]{display:none}.akaiyamiPrivacyActions button:focus-visible{outline:3px solid #f9c889;outline-offset:2px}
/* Leave room for legal navigation in the existing full-screen workbenches. */
.plotWorkspace.isExpanded{bottom:var(--akaiyami-legal-height)!important}.housingWorkbench.hwmExpanded{bottom:calc(var(--akaiyami-legal-height) + 12px)!important}
@media(min-width:651px){.worldGps{min-height:calc(100dvh - var(--akaiyami-legal-height))!important}.gpsBody{height:calc(100dvh - 78px - var(--akaiyami-legal-height))!important;min-height:350px!important}}
.adminToolbar{bottom:calc(16px + var(--akaiyami-legal-height))!important}
.communityModerationPanel{height:calc(100dvh - var(--akaiyami-legal-height))!important}
.bottombar[component="bottombar"],body:has(.layout-container)>.fixed-bottom{bottom:var(--akaiyami-legal-height)!important}
body.legalDocument{margin:0;background:#f3f2ed;color:#1a3028;font:16px/1.75 system-ui,sans-serif;color-scheme:light;overflow-wrap:anywhere}
.legalHeader{padding:24px max(22px,calc((100% - 1120px)/2));background:#172b23;color:#ecf3ee;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.legalHeader a{color:inherit}.legalBrand{font-size:21px;letter-spacing:.08em;text-decoration:none;font-weight:850}
.legalWrap{max-width:1120px;padding:46px 22px 70px;margin:auto}.legalIntro{max-width:850px}.legalKicker{font-size:12px;letter-spacing:.12em;font-weight:750;text-transform:uppercase;color:#556f61}.legalIntro h1{font-size:clamp(30px,5vw,50px);line-height:1.15;letter-spacing:-.035em;margin:14px 0 20px}.legalIntro>p{font-size:18px;color:#4d6457}.legalNav{display:flex;gap:10px;flex-wrap:wrap;margin:30px 0}.legalNav a{padding:9px 16px;border:1px solid #b2c1b6;border-radius:22px;color:#244b37;text-decoration:none}.legalNav a[aria-current=page]{background:#254634;color:#fff;border-color:#254634}
.legalBody{max-width:880px}.legalBody section{scroll-margin-top:24px;margin-top:38px}.legalBody h2{font-size:24px;line-height:1.35;margin:0 0 12px}.legalBody h3{font-size:18px}.legalBody p{margin:13px 0}.legalBody a{color:#22573e;text-underline-offset:3px}.legalBody ul,.legalBody ol{padding-left:24px}.legalBody li{margin:8px 0}.legalNotice{padding:20px 24px;background:#fff6dd;border-left:4px solid #a66b13;border-radius:0 14px 14px 0;margin:26px 0}.legalCard{padding:24px;background:#fff;border:1px solid #d5dfd7;border-radius:16px}.legalCard dt{font-weight:750;margin-top:12px}.legalCard dd{margin-left:0}.legalTable{overflow-x:auto}.legalBody table{width:100%;border-collapse:collapse;font-size:14px}.legalBody th,.legalBody td{text-align:left;vertical-align:top;padding:13px;border:1px solid #becfc3;min-width:140px}.legalBody th{background:#e2ebe3}.legalBody button[data-open-privacy]{background:#294e3a;color:white;border:0;border-radius:8px;padding:12px 20px;cursor:pointer;font:inherit}.legalSources{font-size:14px;color:#53695c}
@media(max-width:600px){.akaiyamiLegalBar{padding:8px 12px calc(8px + env(safe-area-inset-bottom))!important;gap:4px!important}.akaiyamiLegalBar>span{font-size:10px}.akaiyamiLegalBar nav{gap:3px 12px!important}.legalWrap{padding-top:28px}.legalHeader{padding:18px 22px}.akaiyamiPrivacyDialog{padding:20px}}
.legalStaticLinks{padding:20px;text-align:center;background:#e5ebe1;color:#294532;font:13px/1.7 sans-serif}.legalStaticLinks a{color:inherit}
@media print{.akaiyamiLegalBar,.akaiyamiPrivacyDialog{display:none!important}body{padding:0!important}.legalHeader{background:white;color:black}.legalWrap{padding:0}.legalNotice{border:1px solid black}.legalBody a{color:black}}


/* Shared community and document surfaces. */
@media screen {
  .akaiyamiLegalBar {background:#102139!important;color:#deebfa!important;border-top-color:#3a526d!important}
  .akaiyamiLegalBar a,.akaiyamiLegalBar button {color:#f3f8ff!important;text-decoration-color:#849bb7!important}
  .akaiyamiPrivacyDialog {background:#fff;color:#172940;border-color:#c6d6e9;border-radius:16px;box-shadow:0 24px 95px #091b3855}
  .akaiyamiPrivacyDialog::backdrop {background:#102238a8}
  .akaiyamiPrivacyDialog a {color:#214e9c}
  .akaiyamiPrivacyDialog h2,.legalIntro h1,.legalBody h2 {font-family:Inter,"Segoe UI",Arial,sans-serif;letter-spacing:-.045em}
  .akaiyamiPrivacyActions button {background:#233f65;border-color:#233f65;border-radius:8px;color:white}
  .akaiyamiPrivacyActions button:last-child {background:#eff4fa;color:#263d5a;border-color:#ced9e8}
  body.legalDocument {background:#f5f8fc;color:#1d3048}
  .legalHeader {background:white;color:#182b45;border-bottom:1px solid #d9e2ef}
  .legalBrand {display:inline-flex;align-items:center;gap:10px;letter-spacing:-.04em}
  .legalBrand::before {content:"";width:30px;height:30px;background:url("/brand/akaiyami-mark.svg") center / contain no-repeat}
  .legalIntro h1 {font-weight:750;color:#142a46;font-size:clamp(34px,5.5vw,68px);line-height:1.04;max-width:21ch}
  .legalIntro>p,.legalSources,.legalKicker {color:#4b5e77}
  .legalWrap {max-width:1050px}
  .legalNav a {border-radius:8px;border-color:#ccdaeb;color:#284777;background:#fff}
  .legalNav a[aria-current=page],.legalBody button[data-open-privacy] {background:#1d426f;color:#fff;border-color:#1d426f}
  .legalBody {max-width:78ch}
  .legalBody section {border-top:1px solid #cfdae7;padding-top:24px}
  .legalBody a {color:#2153a4}
  .legalCard {border-color:#d9e2ed;border-radius:12px}
  .legalBody th,.legalStaticLinks {background:#e8eff8;color:#2a3e58}
  body.theme-harmony {--akai-bg:#101c2d;--akai-panel:#1a2c44;--akai-red:#7aaaff;--bs-body-bg:#101c2d;--bs-body-color:#e8f2ff;--bs-border-color:#35485e}
  .theme-harmony .categories-list {display:grid;gap:.55rem}
  .theme-harmony .categories-list [component="categories/category"] {background:#1c2d44!important;border:1px solid #3a506b!important;border-radius:12px!important;padding:1rem!important}
  .theme-harmony .categories-list h2,.theme-harmony main h1,.theme-harmony .topic h1 {font-family:Inter,"Segoe UI",Arial,sans-serif;letter-spacing:-.035em}
  .theme-harmony .categories-list [component="categories/category"] h2 a {color:#f3f8ff!important}
  .theme-harmony .categories-list [component="categories/category"] .description {color:#cad7e7}
  .theme-harmony #content .categories-list>li:hover {border-color:#7598be!important}
  .theme-harmony .topic-list [component="category/topic"] {border-radius:9px}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  .legalNav a,.akaiyamiPrivacyActions button {transition:background-color .15s ease,border-color .15s ease}
  .legalNav a:hover {border-color:#6686ae}
}

.legalHeader .legalLanguage{max-width:10rem;min-height:2.5rem;padding:.35rem .55rem;border:1px solid #63778a;border-radius:.35rem;background:#fff;color:#14283c;font:inherit}
.legalLanguageNotice{max-width:72rem;margin:.75rem auto;padding:0 1rem;font-size:.9rem}
