/* The footer belongs to the content scroller, not the viewport shell. */
html body #main.content.cogo-footer-flow-r1 {
  display: block !important;
  overflow-y: auto !important;
}
html body #cogo-business-legal-r1 {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  float: none !important;
  clear: both;
  flex: 0 0 auto !important;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: auto;
  margin: 18px 0 0 !important;
  padding: 12px 0 16px !important;
  border-top: 1px solid #dce3ef;
  background: transparent;
  color: #52627b;
  font: 12px/1.8 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: left;
  letter-spacing: 0;
  overflow: visible;
}
html body #cogo-business-legal-r1 .cogo-legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 3px 12px;
  width: 100%;
  max-width: none;
  margin: 0;
}
html body #cogo-business-legal-r1 .cogo-legal-business,
html body #cogo-business-legal-r1 nav {
  display: contents;
  margin: 0;
  padding: 0;
}
html body #cogo-business-legal-r1 .cogo-legal-business > *,
html body #cogo-business-legal-r1 nav > a {
  flex: 0 0 auto;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
html body #cogo-business-legal-r1 a,
html body #cogo-business-legal-r1 a:visited,
html body #cogo-business-legal-r1 a:hover,
html body #cogo-business-legal-r1 a:focus,
html body #cogo-business-legal-r1 a:active {
  color: #425675;
  text-decoration: none !important;
  border-bottom: 0;
  box-shadow: none;
  background-image: none;
}
html body #cogo-business-legal-r1 nav a {
  display: inline;
  min-height: 0;
  padding: 0;
  font-size: inherit;
  font-weight: 600;
}
html body #cogo-business-legal-r1 nav a[href*="privacy"] {
  color: #304c86;
  font-weight: 800;
}
html body #cogo-business-legal-r1 a:hover { color: #243bc0; }
html body #cogo-business-legal-r1 a:focus-visible {
  outline: 2px solid #4361ef;
  outline-offset: 3px;
  border-radius: 2px;
}
@media (max-width: 640px) {
  html body #cogo-business-legal-r1 { padding-bottom: 20px !important; }
  html body #cogo-business-legal-r1 .cogo-legal-inner { gap: 4px 12px; }
}
@media print {
  html body #cogo-business-legal-r1 { display: none !important; }
}

/* Remove the legacy branding row and its occupied space on every app route. */
html body #main .page-footer:not(#cogo-business-legal-r1) {
  display: none !important;
}
/* One quiet information line: clear labels, stable numerals, distinct policy links. */
html body #cogo-business-legal-r1 {
  margin-top: 12px !important;
  padding: 16px 0 18px !important;
  border-top: 1px solid #dbe3ef;
  color: #526176;
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: -.015em;
  -webkit-font-smoothing: antialiased;
}
html body #cogo-business-legal-r1 .cogo-legal-inner {
  align-items: baseline;
  gap: 5px 10px;
}
html body #cogo-business-legal-r1 .cogo-business-name {
  color: #304777;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.5;
  letter-spacing: .055em;
  padding-right: 2px;
}
html body #cogo-business-legal-r1 .cogo-business-item::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 10px;
  margin-right: 10px;
  background: #d4deeb;
  vertical-align: -1px;
}
html body #cogo-business-legal-r1 .cogo-business-label {
  color: #63748b;
  font-size: 11.5px;
  font-weight: 450;
  margin-right: 3px;
}
html body #cogo-business-legal-r1 .cogo-business-value {
  color: #43546e;
  font-weight: 550;
}
html body #cogo-business-legal-r1 .cogo-business-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
html body #cogo-business-legal-r1 nav a {
  padding: 3px 4px;
  border-radius: 5px;
  color: #334e75;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  transition: color 140ms ease, background-color 140ms ease;
}
html body #cogo-business-legal-r1 nav a:first-child {
  margin-left: 3px;
}
html body #cogo-business-legal-r1 nav a[href*="privacy"] {
  color: #334e75;
  font-weight: 800;
}
html body #cogo-business-legal-r1 a,
html body #cogo-business-legal-r1 a:visited,
html body #cogo-business-legal-r1 a:hover,
html body #cogo-business-legal-r1 a:focus,
html body #cogo-business-legal-r1 a:active {
  text-decoration: none !important;
}
html body #cogo-business-legal-r1 nav a:hover {
  color: #244da0;
  background-color: #e8eef9;
}
html body #cogo-business-legal-r1 a:focus-visible {
  outline: 2px solid #4565ab;
  outline-offset: 3px;
}
@media (max-width: 640px) {
  html body #cogo-business-legal-r1 { padding-block: 14px 20px !important; }
  html body #cogo-business-legal-r1 .cogo-legal-inner { gap: 6px 9px; }
  html body #cogo-business-legal-r1 .cogo-business-item::before { margin-right: 9px; }
  html body #cogo-business-legal-r1 nav a { padding-block: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html body #cogo-business-legal-r1 nav a { transition: none; }
}

/* Remove the requested growth message; its flex gap disappears with the element. */
html body[data-view="home"] #main .home9 .growth-line9 {
  display: none !important;
}
/* Release the unused height below the home cards while retaining real overflow. */
html body[data-view="home"] #main.content {
  overflow-y: auto !important;
  scrollbar-gutter: auto;
}
html body[data-view="home"] #main.content > .page {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: none !important;
  padding-bottom: 6px !important;
}
html body[data-view="home"] #main .home9 {
  height: auto !important;
  min-height: 0 !important;
  flex: none !important;
  padding-bottom: 0 !important;
}
html body[data-view="home"] #main #cogo-business-legal-r1 {
  margin-top: 12px !important;
  padding-top: 14px !important;
  padding-bottom: 12px !important;
}
/* Remove only the legacy architecture link in the bottom of the left sidebar. */
html body .sidebar .side-bottom [data-action="architecture"] {
  display: none !important;
}

/* One shared visual language for the existing legal notices on app screens. */
html body .cogo-legal-note-r1[data-cogo-legal] {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  padding: 20px 22px;
  margin: 18px 0;
  border: 1px solid #dfe6f1;
  border-radius: 16px;
  background: #f8faff;
  color: #52617a;
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.85;
  letter-spacing: -.015em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
html body .cogo-legal-note-r1[data-cogo-legal] h3 {
  margin: 0 0 12px;
  color: #263d64;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.035em;
}
html body .cogo-legal-note-r1[data-cogo-legal] p { margin: 8px 0; }
html body .cogo-legal-note-r1[data-cogo-legal] strong { color: #334d76; font-weight: 750; }
html body .cogo-legal-note-r1[data-cogo-legal] .cogo-legal-price-r1 {
  padding: 10px 12px;
  margin: 0 0 14px;
  border: 1px solid #e1e8f6;
  border-radius: 10px;
  background: #edf2fc;
  color: #344d8b;
  font-size: 13px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
html body .cogo-legal-note-r1[data-cogo-legal] nav {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 0 0;
  margin: 14px 0 0;
  border-top: 1px solid #e1e7f1;
}
html body .cogo-legal-note-r1[data-cogo-legal] nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  min-height: 36px;
  padding: 8px 13px;
  margin: 0;
  border: 1px solid #dfe6f2;
  border-radius: 9px;
  background: #fff;
  color: #4c5f7e;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -.015em;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgb(31 53 88 / 3%);
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}
html body .cogo-legal-note-r1[data-cogo-legal] nav a[href*="privacy"] {
  color: #2d4269;
  font-weight: 800;
}
html body .cogo-legal-note-r1[data-cogo-legal] nav a:visited { color: #4c5f7e; }
html body .cogo-legal-note-r1[data-cogo-legal] nav a[href*="privacy"]:visited { color: #2d4269; }
html body .cogo-legal-note-r1[data-cogo-legal] nav a:hover {
  color: #344fc1;
  border-color: #c7d4f3;
  background: #edf2ff;
}
html body .cogo-legal-note-r1[data-cogo-legal] a:focus-visible {
  outline: 2px solid #4a62d8;
  outline-offset: 3px;
}
html body .cogo-legal-note-r1[data-cogo-legal] nav a:active { background: #e4ebff; }
html body .cogo-legal-note-r1[data-cogo-legal] a[href^="tel:"] {
  color: #344d8b;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration-color: #b7c6e6;
  text-underline-offset: 3px;
}
/* Compact, centered policy navigation in both ordinary and social signup. */
html body :is(#cogoServerAuth, #socialSignup288) .cogo-legal-note-r1[data-cogo-legal="signup"] {
  padding: 5px;
  margin: 18px 0 12px;
  border-color: #e4e9f2;
  border-radius: 12px;
  background: #f5f7fc;
}
html body .cogo-legal-note-r1[data-cogo-legal="signup"] nav {
  justify-content: center;
  gap: 3px;
  padding: 0;
  margin: 0;
  border: 0;
}
html body .cogo-legal-note-r1[data-cogo-legal="signup"] nav a {
  flex: 1 1 auto;
  padding: 8px 10px;
  border-color: transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}
html body .cogo-legal-note-r1[data-cogo-legal="signup"] nav a:hover {
  border-color: #e1e7f3;
  background: #fff;
  box-shadow: 0 2px 6px rgb(31 53 88 / 5%);
}
/* Consent remains visible and operable; only its presentation changes. */
html body .cogo-legal-note-r1[data-cogo-legal="checkout"] label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  margin: 10px 0;
  border: 1px solid #e2e8f2;
  border-radius: 10px;
  background: #fff;
  color: #3f526f;
  font: inherit;
  font-weight: 550;
  cursor: pointer;
}
html body .cogo-legal-note-r1[data-cogo-legal="checkout"] label span { min-width: 0; }
html body .cogo-legal-note-r1[data-cogo-legal="checkout"] input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 3px 0 0;
  accent-color: #3b50d4;
}
html body .cogo-legal-note-r1[data-cogo-legal] small {
  color: #64728a;
  font-size: 11.5px;
  line-height: 1.8;
}
@media (max-width: 640px) {
  html body .cogo-legal-note-r1[data-cogo-legal] { padding: 16px; }
  html body .cogo-legal-note-r1[data-cogo-legal] nav a { min-height: 40px; }
  html body .cogo-legal-note-r1[data-cogo-legal="signup"] nav a { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html body .cogo-legal-note-r1[data-cogo-legal] nav a { transition: none; }
}

/* The closet measures its item grid and avatar from a flex viewport.
   Restore the original parent layout after footer-layout-r1's block override.
   Short windows retain the original >=540px scrolling page fallback. */
@media (min-height: 621px) {
  html body[data-view="collection"] #main.content.fit-shell18.cogo-footer-flow-r1 {
    display: flex !important;
    flex-direction: column !important;
  }
  /* Preserve the pre-footer workspace height. The footer scrolls below it
     instead of taking space from the avatar and paginated wardrobe. */
  html body[data-view="collection"] #main.content.fit-shell18.cogo-footer-flow-r1 > .page {
    flex: 0 0 auto !important;
    height: 100% !important;
  }
}
/* Existing item-management text also occupies the paginated viewport.
   Keep the last card reachable on narrow screens when it exceeds the estimate. */
html body[data-view="collection"] #main #closetViewport {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
}

/* Desktop: budget for the legal footer in the same flex viewport.
   The original closet sizing code then uses the remaining workspace height.
   A minimum keeps the controls usable when the window is unusually short. */
@media (min-width: 761px) and (min-height: 621px) {
  html body[data-view="collection"] #main.content.fit-shell18.cogo-footer-flow-r1 > .page {
    height: auto !important;
    flex: 1 1 0 !important;
    min-height: 480px !important;
  }
}

/* Keep the footer in document flow, with free space above it on short pages.
   Document/list routes and the closet have reviewed, bounded scroll shells. */
html body #main.content.flow-page301.cogo-footer-flow-r1,
html body[data-view="collection"] #main.content.cogo-footer-flow-r1 {
  display: flex !important;
  flex-direction: column !important;
  row-gap: 12px;
}
html body #main.content.flow-page301.cogo-footer-flow-r1 > #cogo-business-legal-r1,
html body[data-view="collection"] #main.content.cogo-footer-flow-r1 > #cogo-business-legal-r1 {
  margin-top: auto !important;
  flex: 0 0 auto !important;
}
/* Include the previous desktop avatar compaction so this update can follow
   avatar-layout-r1 directly or the already installed avatar-compact-r1. */
@media (min-width: 761px) and (min-height: 621px) {
  html body[data-view="collection"] #main.content.fit-shell18.cogo-footer-flow-r1 > .page {
    height: auto !important;
    flex: 1 1 0 !important;
    min-height: 480px !important;
  }
}

/* A definite rows viewport breaks the loading/grid/pagination height feedback.
   Scope to the contest list; detail pages and every other workspace keep theirs. */
html body[data-view="contests"] #main .contests15 .contest-table15 {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  transition: none !important;
}
html body[data-view="contests"] #main .contests15 #contestRows15 {
  box-sizing: border-box !important;
  grid-template-rows: repeat(var(--contest-rows16, 1), minmax(0, 1fr)) !important;
  flex: 0 0 auto !important;
  height: clamp(156px, calc(100dvh - 540px), 468px) !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  transition: none !important;
}
html body[data-view="contests"] #main .contests15 #contestRows15 > :is(.cogo-loading2881, .empty9) {
  grid-column: 1 / -1 !important;
  grid-row: 1 / -1 !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 14px !important;
  box-sizing: border-box !important;
  overflow: auto;
}
html body[data-view="contests"] #main .contests15 #contestRows15 .cogo-loading-card2881 {
  padding: 16px 20px;
}
@media (max-width: 600px) {
  html body[data-view="contests"] #main .contests15 #contestRows15 {
    height: clamp(216px, calc(100dvh - 560px), 324px) !important;
  }
}

