:root {
  color-scheme: light;
  --portal-blue: #16527f;
  --portal-blue-dark: #0b3d66;
  --portal-blue-light: #e8edff;
  --portal-cyan: #43b7ca;
  --portal-line: #c9cfda;
  --portal-line-soft: #e5e8ee;
  --portal-text: #333;
  --portal-muted: #727983;
  --portal-bg: #eef1f5;
}

html {
  min-height: 100%;
  background: var(--portal-bg);
}

body.portal-legacy {
  display: block;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: var(--portal-bg);
  color: var(--portal-text);
  font-family: Dotum, "돋움", Gulim, "굴림", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: auto;
}

.portal-legacy *,
.portal-legacy *::before,
.portal-legacy *::after {
  box-sizing: border-box;
  letter-spacing: 0 !important;
}

.portal-header {
  width: 100%;
  border-bottom: 1px solid #cfd5df;
  background: #fff;
}

.portal-head {
  width: min(980px, 100%);
  margin: 0 auto;
  padding-top: 5px;
}

.portal-utility {
  display: flex;
  justify-content: flex-end;
  min-height: 16px;
  padding: 0 4px;
  color: #7c828b;
  font-size: 10px;
  line-height: 16px;
  white-space: nowrap;
}

.portal-utility a,
.portal-footer a {
  display: inline;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #68717c;
  font: inherit;
  font-weight: 400;
  line-height: inherit;
  text-decoration: none;
  transform: none;
}

.portal-utility a:hover,
.portal-footer a:hover {
  background: transparent;
  color: var(--portal-blue);
  text-decoration: underline;
  transform: none;
}

.portal-utility i {
  margin: 0 7px;
  color: #c2c6cc;
  font-style: normal;
}

.portal-brand-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 3px 5px 7px;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #155274;
  font: inherit;
  text-decoration: none;
  transform: none;
}

.portal-brand:hover {
  background: transparent;
  color: #155274;
  transform: none;
}

.portal-brand-mark {
  width: 38px;
  height: 38px;
  margin-right: 7px;
  object-fit: contain;
}

.portal-brand-copy {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.portal-brand-name {
  color: #155274;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.portal-brand-sub {
  color: #78828d;
  font-size: 10px;
  font-weight: 400;
}

.portal-brand-note {
  align-self: flex-end;
  padding-bottom: 5px;
  color: #7d858f;
  font-size: 10px;
}

.portal-primary {
  display: flex;
  width: 100%;
  min-height: 31px;
  overflow-x: auto;
  border: 1px solid var(--portal-blue-dark);
  background: var(--portal-blue);
  scrollbar-width: thin;
}

.portal-legacy .portal-primary a {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 29px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 29px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transform: none;
}

.portal-legacy .portal-primary a:hover,
.portal-legacy .portal-primary a[aria-current="page"] {
  background: #0d406a;
  color: #fff;
  text-decoration: none;
  transform: none;
}

.portal-breadcrumb {
  min-height: 27px;
  padding: 7px 9px 5px;
  border-bottom: 1px solid #badce7;
  color: #858b93;
  font-size: 10px;
  line-height: 14px;
}

.portal-breadcrumb a {
  display: inline;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: #536270;
  font: inherit;
  line-height: inherit;
  text-decoration: none;
  transform: none;
}

.portal-breadcrumb strong {
  color: #515861;
  font-weight: 400;
}

.portal-breadcrumb .sep {
  margin: 0 5px;
  color: #aab0b8;
}

.portal-footer {
  width: min(980px, calc(100% - 20px));
  margin: 0 auto;
  padding: 14px 10px 26px;
  border-top: 1px solid #cbd1da;
  color: #8b9097;
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

.portal-footer nav {
  margin-bottom: 3px;
}

.portal-footer i {
  margin: 0 7px;
  color: #b5bac1;
  font-style: normal;
}

.portal-footer p {
  margin: 0;
  color: #9a9fa6;
  font-size: 10px;
}

/* Legal documents */
.legal-page .wrap {
  width: min(960px, calc(100% - 20px));
  max-width: none;
  margin: 0 auto 20px;
  padding: 0 20px 22px;
  border: 1px solid #d1d6de;
  border-top: 0;
  background: #fff;
}

.legal-page .hero,
.legal-page .card {
  border-radius: 0;
  box-shadow: none;
}

.legal-page .hero {
  margin: 0 -20px 8px;
  padding: 13px 20px 11px;
  border: 0;
  border-bottom: 1px solid #c8d0e7;
  background: var(--portal-blue-light);
}

.legal-page .hero::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 13px;
  margin-right: 7px;
  background: #8299e8;
  vertical-align: -2px;
}

.legal-page .eyebrow {
  display: inline;
  color: #4b5f8b;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.legal-page h1 {
  margin: 3px 0 5px 11px;
  color: #283b66;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.legal-page h2 {
  margin: 0 0 8px;
  padding: 0 0 6px 10px;
  border-bottom: 1px solid #d8dde5;
  color: #244f78;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.legal-page h2::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 10px;
  margin: 0 6px 0 -10px;
  background: #53b5c4;
  vertical-align: -1px;
}

.legal-page p {
  margin: 0 0 9px;
}

.legal-page .muted {
  color: #6d7580;
}

.legal-page .hero > .muted {
  margin-left: 11px;
  color: #646e7c;
  font-size: 11px;
}

.legal-page .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 9px 0 0 11px;
}

.legal-page .pill {
  padding: 2px 8px;
  border: 1px solid #c5ccd9;
  border-right: 0;
  border-radius: 0;
  background: #f7f8fa;
  color: #5f6874;
  font-size: 10px;
}

.legal-page .pill:last-child {
  border-right: 1px solid #c5ccd9;
}

.legal-page .card {
  margin: 0;
  padding: 14px 2px 12px;
  border: 0;
  border-bottom: 1px dotted #cfd3d9;
  background: #fff;
  color: var(--portal-text);
}

.legal-page .card:last-child {
  border-bottom: 0;
}

.legal-page ul {
  margin: 5px 0 8px;
  padding-left: 20px;
}

.legal-page li {
  margin: 3px 0;
}

.legal-page a {
  color: #17648e;
  text-decoration: underline;
}

.legal-page table {
  width: 100%;
  margin: 8px 0 10px;
  border: 1px solid #bec6d2;
  border-collapse: collapse;
  table-layout: fixed;
}

.legal-page th,
.legal-page td {
  padding: 7px 8px;
  border: 1px solid #d7dce4;
  color: #424951;
  font-size: 11px;
  text-align: left;
  vertical-align: top;
}

.legal-page th {
  background: #edf1fb;
  color: #334e72;
  font-weight: 700;
  text-align: center;
}

.legal-page th:first-child {
  width: 19%;
}

.legal-page th:last-child {
  width: 24%;
}

.legal-page .small {
  font-size: 10px;
}

/* Roblox launcher */
.launch-page .card {
  position: relative;
  width: min(720px, calc(100% - 20px));
  margin: 0 auto 22px;
  padding: 0 20px 22px;
  overflow: hidden;
  border: 1px solid #c8ced8;
  border-top: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: var(--portal-text);
  text-align: left;
}

.launch-page .card::before {
  display: none;
}

.launch-page .badge {
  display: block;
  margin: 0 -20px 17px;
  padding: 9px 14px 8px 24px;
  border: 0;
  border-bottom: 1px solid #c8d0e7;
  border-radius: 0;
  background: var(--portal-blue-light);
  color: #344d79;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.launch-page .badge::before {
  width: 4px;
  height: 11px;
  margin-right: 7px;
  border-radius: 0;
  background: #7e97e4;
  box-shadow: none;
  vertical-align: -2px;
}

.launch-page h1 {
  margin: 0;
  color: #254f78;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.launch-page p {
  max-width: none;
  margin: 9px 0 0;
  color: #555e68;
  font-size: 11px;
  line-height: 1.75;
}

.launch-page .actions {
  display: flex;
  grid-template-columns: none;
  gap: 5px;
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px dotted #c9ced6;
}

.launch-page .actions a,
.launch-page .actions button {
  display: inline-flex;
  width: auto;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 5px 13px;
  border: 1px solid #1d4f79;
  border-radius: 1px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .25);
  font-family: Dotum, "돋움", Gulim, "굴림", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 15px;
  text-decoration: none;
  transition: none;
  transform: none;
}

.launch-page .actions a:hover,
.launch-page .actions button:hover {
  filter: none;
  text-decoration: underline;
  transform: none;
}

.launch-page .primary {
  border-color: #174668;
  background: #1b5d8d;
  color: #fff;
}

.launch-page .primary:hover {
  background: #124a74;
}

.launch-page .primary:disabled {
  border-color: #9ca8b3;
  background: #b7c0c8;
  color: #fff;
}

.launch-page .secondary,
.launch-page .secondary:hover {
  border-color: #aeb6c1;
  background: #f4f5f7;
  color: #46525e;
}

.launch-page .small {
  margin-top: 14px;
  padding: 5px 7px;
  border: 1px solid #e0e3e8;
  background: #f7f8fa;
  color: #767e87;
  font-family: Dotum, "돋움", Gulim, "굴림", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0;
}

/* OAuth review */
.review-page .wrap {
  width: min(860px, calc(100% - 20px));
  margin: 0 auto 22px;
  padding: 0;
}

.review-page .hero {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #c8ced8;
  border-top: 0;
  border-radius: 0;
  background: #fff;
}

.review-page .logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid #c8ced8;
  border-radius: 0;
  background: #fff;
}

.review-page h1 {
  margin: 0;
  color: #244f78;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.review-page .sub {
  margin-top: 3px;
  color: #6f7781;
  font-size: 10px;
  line-height: 1.55;
}

.review-page .card {
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid #c2c9d3;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: var(--portal-text);
}

.review-page .hd {
  padding: 9px 12px;
  border-bottom: 1px solid #c7cfe5;
  background: var(--portal-blue-light);
}

.review-page .title {
  color: #284c72;
  font-size: 12px;
  font-weight: 700;
}

.review-page .desc {
  margin-top: 3px;
  color: #687281;
  font-size: 10px;
  line-height: 1.55;
}

.review-page .bd {
  padding: 12px;
}

.review-page .box {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #d6dbe3;
  border-radius: 0;
  background: #fafbfc;
}

.review-page .box:first-child {
  margin-top: 0;
}

.review-page .badge {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid #aeb6c2;
  border-radius: 1px;
  background: #fff;
  color: #4d5965;
  font-size: 10px;
  font-weight: 700;
}

.review-page .badge.ok {
  border-color: #6fa685;
  background: #edf8f1;
  color: #29653e;
}

.review-page .badge.err {
  border-color: #c78d8d;
  background: #fff0f0;
  color: #923a3a;
}

.review-page .badge.warn {
  border-color: #c6aa68;
  background: #fff9e7;
  color: #735b20;
}

.review-page .statusline {
  margin-top: 6px;
  color: #606a75;
  font-size: 11px;
  line-height: 1.55;
}

.review-page pre {
  margin: 6px 0 0;
  color: #596673;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.review-page .row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}

.review-page .btn {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid #174668;
  border-radius: 1px;
  background: #1b5d8d;
  color: #fff;
  font-family: Dotum, "돋움", Gulim, "굴림", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  text-decoration: none;
}

.review-page .btn:hover {
  background: #124a74;
  text-decoration: underline;
}

.review-page .btn.secondary {
  border-color: #aeb6c1;
  background: #f2f4f6;
  color: #46525e;
}

.review-page .small,
.review-page ul {
  color: #69727d;
  font-size: 10px;
  line-height: 1.65;
}

.review-page ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.review-page a {
  color: #17648e;
}

.review-page .btn {
  color: #fff;
}

.review-page .btn.secondary {
  color: #46525e;
}

@media (max-width: 720px) {
  .portal-brand-line {
    min-height: 44px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .portal-brand-note {
    display: none;
  }

  .portal-legacy .portal-primary a {
    flex: 0 0 auto;
    min-width: 94px;
  }

  .portal-breadcrumb {
    padding-right: 12px;
    padding-left: 12px;
  }

  .legal-page .wrap {
    width: calc(100% - 12px);
    padding-right: 12px;
    padding-left: 12px;
  }

  .legal-page .hero {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .legal-page .meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .legal-page .pill,
  .legal-page .pill:last-child {
    border-right: 1px solid #c5ccd9;
    border-bottom: 0;
  }

  .legal-page .pill:last-child {
    border-bottom: 1px solid #c5ccd9;
  }

  .legal-page table,
  .legal-page tbody,
  .legal-page tr,
  .legal-page td {
    display: block;
    width: 100%;
  }

  .legal-page thead {
    display: none;
  }

  .legal-page tr {
    border-bottom: 1px solid #bfc7d2;
  }

  .legal-page tr:last-child {
    border-bottom: 0;
  }

  .legal-page td {
    min-height: 30px;
    padding-left: 104px;
    border: 0;
    border-bottom: 1px dotted #d7dce4;
  }

  .legal-page td::before {
    float: left;
    width: 92px;
    margin-left: -96px;
    color: #405775;
    font-size: 10px;
    font-weight: 700;
    content: attr(data-label);
  }

  .launch-page .card,
  .review-page .wrap {
    width: calc(100% - 12px);
  }
}

@media (max-width: 480px) {
  .portal-head {
    padding-top: 2px;
  }

  .portal-utility {
    padding-right: 8px;
    font-size: 9px;
  }

  .portal-brand-mark {
    width: 34px;
    height: 34px;
  }

  .portal-brand-name {
    font-size: 16px;
  }

  .portal-brand-sub {
    display: none;
  }

  .legal-page h1,
  .launch-page h1,
  .review-page h1 {
    font-size: 16px;
  }

  .legal-page .hero > .muted {
    margin-left: 0;
  }

  .legal-page .meta {
    margin-left: 0;
  }

  .launch-page .card {
    padding-right: 14px;
    padding-left: 14px;
  }

  .launch-page .badge {
    margin-right: -14px;
    margin-left: -14px;
  }

  .launch-page .actions {
    flex-direction: column;
  }

  .launch-page .actions a,
  .launch-page .actions button {
    width: 100%;
  }

  .review-page .hero {
    align-items: flex-start;
  }

  .review-page .logo {
    width: 36px;
    height: 36px;
  }

  .review-page .row {
    align-items: stretch;
    flex-direction: column;
  }

  .review-page .btn {
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-legacy *,
  .portal-legacy *::before,
  .portal-legacy *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Keep page-specific content-link rules from leaking into the shared chrome. */
.portal-legacy .portal-header a,
.portal-legacy .portal-footer a {
  text-decoration: none;
}

.portal-legacy .portal-brand,
.portal-legacy .portal-brand:hover {
  color: #155274;
}

.portal-legacy .portal-primary a,
.portal-legacy .portal-primary a:hover,
.portal-legacy .portal-primary a[aria-current="page"] {
  width: auto;
  color: #fff;
  text-decoration: none;
}

.portal-legacy .portal-utility a,
.portal-legacy .portal-footer a {
  color: #68717c;
}

.portal-legacy .portal-utility a:hover,
.portal-legacy .portal-footer a:hover {
  color: var(--portal-blue);
  text-decoration: underline;
}

@media (max-width: 720px) {
  .legal-page td::before {
    display: block;
    margin-bottom: 0;
  }
}
