.site-legal-footer {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 68px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 28px;
  padding: 12px clamp(18px, 3vw, 48px);
  border-top: 1px solid rgba(231, 220, 197, .15);
  background:
    linear-gradient(90deg, rgba(168, 186, 56, .035), transparent 34%),
    #0b0d0a;
  color: #aaa99f;
  font: 700 13px/1.45 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .015em;
}
.site-legal-footer > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}
.site-legal-footer > span::before {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border: 2px solid #9eae37;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(158, 174, 55, .08);
  content: "";
}
.site-legal-footer nav { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 8px; }
.site-legal-footer a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(182, 200, 63, .22);
  border-radius: 5px;
  background: rgba(182, 200, 63, .035);
  color: #bdce4b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .045em;
  text-align: center;
  text-transform: uppercase;
}
.site-legal-footer a:hover,
.site-legal-footer a:focus-visible {
  border-color: #cddd54;
  background: rgba(182, 200, 63, .1);
  color: #eef5a4;
  outline: 2px solid rgba(205, 221, 84, .22);
  outline-offset: 2px;
}
.site-legal-footer-inline { min-width: 0; }
.command-home-footer .site-legal-footer {
  min-height: 48px;
  grid-column: 1 / -1;
  padding: 9px 0 0;
  border-top-color: #30342b;
  background: transparent;
}
.command-home-footer .site-legal-footer > span { font-size: 12px; }
.command-home-footer .site-legal-footer a { min-height: 34px; padding: 0 11px; font-size: 11px; }
.player-footer .site-legal-footer { margin-left: auto; }
.site-legal-footer-shop,
.site-legal-footer-mods,
.site-legal-footer-admin,
.site-legal-footer-page { min-height: 68px; }
.site-legal-footer-admin { color: #5e594d; background: rgba(238, 228, 205, .9); }
.site-legal-footer-admin a { color: #68731d; }
.site-legal-footer-mods { margin-top: 28px; padding-right: 0; padding-left: 0; background: transparent; }
.login-legal-footer { width: min(780px, 100%); margin-top: 24px; border-top: 1px solid var(--login-line); background: transparent; color: #77705f; }
.login-legal-footer a { color: #68731d; }

.legal-workspace {
  --legal-paper: #e9dec7;
  --legal-ink: #272319;
  --legal-muted: #696150;
  --legal-line: rgba(62, 55, 40, .2);
  --legal-rust: #a45132;
  position: fixed;
  z-index: 108;
  inset: 0;
  display: grid;
  min-height: 100dvh;
  grid-template-rows: var(--app-header-height, 84px) minmax(0, 1fr);
  overflow: hidden;
  background: #090a08;
  color: #f1ecdf;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.legal-header {
  position: relative;
  z-index: 3;
  display: grid;
  height: var(--app-header-height, 84px);
  grid-template-columns: minmax(280px, 1fr) auto minmax(280px, 1fr);
  align-items: center;
  gap: 26px;
  padding: 0 var(--app-header-gutter, clamp(24px, 3vw, 50px));
  border-bottom: 1px solid rgba(231, 220, 197, .16);
  background: rgba(7, 8, 6, .985);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .3);
}
.legal-brand { display: inline-flex; min-width: 0; align-items: center; gap: 14px; }
.legal-brand img { width: var(--app-brand-icon-size, 54px); height: var(--app-brand-icon-size, 54px); flex: 0 0 var(--app-brand-icon-size, 54px); object-fit: contain; }
.legal-brand div { min-width: 0; }
.legal-brand strong,
.legal-brand span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legal-brand strong { color: #f3eee2; font: 700 clamp(24px, 1.8vw, 30px)/1 "Oswald", "Arial Narrow", sans-serif; }
.legal-brand span { margin-top: 4px; color: #acbd3d; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.legal-header-nav { display: flex; height: 100%; align-items: stretch; justify-content: center; gap: clamp(26px, 3vw, 46px); }
.legal-header-nav a,
.legal-header-nav button { position: relative; display: inline-flex; align-items: center; padding: 0; border: 0; background: transparent; color: #d8d1c3; cursor: pointer; font-size: var(--app-nav-font-size, 15px); font-weight: 900; }
.legal-header-nav a:hover,
.legal-header-nav button:hover { color: #dbe777; }
.legal-header-actions { display: flex; grid-column: 3; align-items: center; justify-self: end; gap: 10px; }
.legal-header-actions .language-toggle,
.legal-back-button { display: inline-flex; height: var(--app-header-control-height, 48px); min-height: var(--app-header-control-height, 48px); align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 1px solid rgba(231, 220, 197, .22); border-radius: 7px; background: #141711; color: #eee8da; font-size: 13px; font-weight: 800; }
.legal-header-actions .language-toggle { min-width: 58px; color: #bccd46; }
.legal-back-button { border-color: rgba(177, 195, 53, .65); }
.legal-back-button:hover { border-color: #cadb4b; background: #20251a; }
.legal-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #798524 #11140d; }
.legal-main { width: min(1540px, 100%); margin: 0 auto; padding: clamp(18px, 2.6vw, 42px); }
.legal-document { overflow: hidden; border: 1px solid rgba(231, 220, 197, .17); border-radius: 17px; background: #11130e; box-shadow: 0 30px 100px rgba(0, 0, 0, .42); }
.legal-hero { position: relative; min-height: 330px; padding: clamp(48px, 6vw, 86px) clamp(32px, 6vw, 92px); overflow: hidden; background: linear-gradient(90deg, rgba(6, 7, 5, .98) 0%, rgba(7, 8, 6, .86) 47%, rgba(7, 8, 6, .34) 100%), url("/assets/knox-safehouse.png?v=20260805-1") center 45% / cover; }
.legal-hero::after { position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, #a7ba32, #58631e 64%, transparent); content: ""; }
.terms-hero { background-image: linear-gradient(90deg, rgba(6, 7, 5, .98) 0%, rgba(7, 8, 6, .84) 47%, rgba(7, 8, 6, .3) 100%), url("/assets/command-safehouse-20260807.png?v=20260807-1"); }
.legal-hero > * { position: relative; z-index: 1; }
.legal-hero > p:first-child { color: #bdcd48; font-size: clamp(11px, .9vw, 14px); font-weight: 900; letter-spacing: .12em; }
.legal-hero h1 { max-width: 980px; margin-top: 14px; color: #f3eee1; font: 700 clamp(58px, 7vw, 104px)/.91 "Oswald", "Arial Narrow", sans-serif; letter-spacing: -.025em; text-wrap: balance; }
.legal-hero h1:focus { outline: 0; }
.legal-hero h1 + p { max-width: 820px; margin-top: 24px; color: #c5bdae; font-size: clamp(16px, 1.35vw, 21px); line-height: 1.58; }
.legal-hero time { display: inline-flex; margin-top: 27px; padding: 9px 12px; border: 1px solid rgba(207, 186, 121, .35); color: #d2c8b5; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.legal-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid rgba(231, 220, 197, .16); background: #151711; }
.legal-summary-grid article { display: grid; min-height: 104px; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 15px; padding: 18px clamp(20px, 2.8vw, 40px); border-right: 1px solid rgba(231, 220, 197, .13); }
.legal-summary-grid article:last-child { border-right: 0; }
.legal-summary-grid i { color: #b7c841; font-size: 30px; }
.legal-summary-grid span,
.legal-summary-grid strong { display: block; }
.legal-summary-grid span { color: #8e8b7d; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.legal-summary-grid strong { margin-top: 7px; color: #eee8da; font: 600 clamp(18px, 1.7vw, 25px)/1.12 "Oswald", "Arial Narrow", sans-serif; }
.legal-paper { display: grid; grid-template-columns: 280px minmax(0, 1fr); background: var(--legal-paper) url("/assets/parchment-texture.png?v=20260805-1") center / 720px auto repeat; color: var(--legal-ink); }
.legal-index { position: sticky; top: 0; align-self: start; display: grid; gap: 5px; padding: 38px 24px; border-right: 1px solid var(--legal-line); }
.legal-index strong { margin-bottom: 10px; color: var(--legal-rust); font-size: 10px; letter-spacing: .1em; }
.legal-index a { padding: 11px 12px; border-left: 3px solid transparent; border-radius: 0 5px 5px 0; color: #625b4b; font-size: 12px; font-weight: 750; line-height: 1.35; }
.legal-index a:hover,
.legal-index a:focus-visible { border-left-color: #7a8623; background: rgba(119, 131, 31, .09); color: #303019; }
.legal-copy { min-width: 0; padding: clamp(38px, 5vw, 76px) clamp(30px, 6vw, 90px) 80px; }
.legal-copy > section { position: relative; max-width: 980px; padding: 0 0 52px 58px; scroll-margin-top: 24px; }
.legal-copy > section + section { padding-top: 52px; border-top: 1px solid var(--legal-line); }
.legal-section-number { position: absolute; top: 2px; left: 0; color: #8a9530; font: 700 20px/1 "Oswald", "Arial Narrow", sans-serif; }
.legal-copy > section + section .legal-section-number { top: 54px; }
.legal-copy h2 { color: var(--legal-ink); font: 700 clamp(30px, 3.1vw, 46px)/1 "Oswald", "Arial Narrow", sans-serif; letter-spacing: -.015em; }
.legal-copy p,
.legal-copy li { color: var(--legal-muted); font-size: clamp(14px, 1.05vw, 17px); line-height: 1.75; }
.legal-copy p { margin-top: 18px; }
.legal-copy ul { display: grid; gap: 12px; margin: 20px 0 0; padding-left: 22px; }
.legal-copy li::marker { color: #77831f; }
.legal-table-wrap { margin-top: 22px; overflow-x: auto; border: 1px solid var(--legal-line); border-radius: 8px; background: rgba(255, 252, 244, .38); }
.legal-copy table { width: 100%; min-width: 690px; border-collapse: collapse; }
.legal-copy th,
.legal-copy td { padding: 15px 17px; border-right: 1px solid var(--legal-line); border-bottom: 1px solid var(--legal-line); text-align: left; vertical-align: top; }
.legal-copy th:last-child,
.legal-copy td:last-child { border-right: 0; }
.legal-copy tr:last-child td { border-bottom: 0; }
.legal-copy th { background: rgba(119, 131, 31, .11); color: #4e541d; font-size: 9px; letter-spacing: .09em; }
.legal-copy td { color: #625b4b; font-size: 13px; line-height: 1.55; }
.legal-copy code { color: #7e3f2b; font-size: 12px; font-weight: 800; }
.site-legal-footer-page { width: min(1540px, calc(100% - clamp(36px, 5.2vw, 84px))); margin: 0 auto 34px; border: 1px solid rgba(231, 220, 197, .15); border-radius: 8px; }

@media (max-width: 1120px) {
  .legal-header { grid-template-columns: minmax(220px, 1fr) auto; }
  .legal-header-actions { grid-column: 2; }
  .legal-header-nav { display: none; }
  .legal-paper { grid-template-columns: 230px minmax(0, 1fr); }
  .legal-copy { padding-right: 42px; padding-left: 42px; }
}

@media (max-width: 820px) {
  .site-legal-footer { min-height: 0; grid-template-columns: 1fr; align-items: start; gap: 10px; padding: 16px 14px; }
  .site-legal-footer > span { font-size: 12px; line-height: 1.5; }
  .site-legal-footer nav { width: 100%; justify-content: stretch; }
  .site-legal-footer nav a { min-width: 0; flex: 1 1 50%; padding: 0 8px; font-size: 10px; }
  .command-home-footer .site-legal-footer { width: 100%; padding: 12px 0 0; border-top: 1px solid #30342b; }
  .player-footer .site-legal-footer { width: 100%; margin-left: 0; }
  .shop-store-footer + .site-legal-footer-shop { padding: 16px 15px; }
  .legal-header { height: var(--app-header-height, 78px); padding: 0 14px; gap: 10px; }
  .legal-brand { gap: 9px; }
  .legal-brand span { display: none; }
  .legal-brand strong { font-size: 23px; }
  .legal-header-actions { gap: 7px; }
  .legal-header-actions .language-toggle { min-width: 46px; padding: 0 10px; }
  .legal-back-button { width: 46px; padding: 0; }
  .legal-back-button span { display: none; }
  .legal-main { padding: 10px; }
  .legal-document { border-radius: 11px; }
  .legal-hero { min-height: 300px; padding: 44px 25px; }
  .legal-hero h1 { font-size: clamp(49px, 15vw, 72px); }
  .legal-summary-grid { grid-template-columns: 1fr; }
  .legal-summary-grid article { min-height: 88px; border-right: 0; border-bottom: 1px solid rgba(231, 220, 197, .13); }
  .legal-summary-grid article:last-child { border-bottom: 0; }
  .legal-paper { display: block; }
  .legal-index { position: static; padding: 25px 20px; border-right: 0; border-bottom: 1px solid var(--legal-line); }
  .legal-copy { padding: 38px 20px 50px; }
  .legal-copy > section { padding: 0 0 40px 42px; }
  .legal-copy > section + section { padding-top: 40px; }
  .legal-copy > section + section .legal-section-number { top: 42px; }
  .legal-copy h2 { font-size: 31px; }
  .legal-copy p,
  .legal-copy li { font-size: 15px; line-height: 1.68; }
  .site-legal-footer-page { width: calc(100% - 20px); margin-bottom: 10px; }
  .login-legal-footer { margin-top: 18px; }
}
