/*! Copyright (c) MatchFlow.gg. All rights reserved. Proprietary: see https://matchflow.gg/terms */
.mf-terms-page {
  --terms-panel: rgba(7, 9, 36, 0.88);
  --terms-panel-soft: rgba(16, 17, 58, 0.72);
  --terms-line: rgba(119, 139, 213, 0.22);
  --terms-violet: #9d6cff;
  --terms-pink: #e34bdc;
  --terms-blue: #5d7dff;
  background:
    radial-gradient(circle at 76% 8%, rgba(105, 51, 255, 0.15), transparent 26rem),
    radial-gradient(circle at 12% 42%, rgba(37, 103, 255, 0.1), transparent 24rem),
    linear-gradient(180deg, #030517 0%, #05071a 48%, #030513 100%);
}
.mf-terms-page .mf-nav a:first-child {
  color: rgba(238, 243, 255, 0.92);
}
.mf-terms-page .mf-nav a:first-child::after {
  display: none;
}
.mf-terms-mobile-header {
  display: none;
}
.mf-terms-main {
  display: grid;
  gap: 28px;
}
.mf-terms-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  height: 320px;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(105, 124, 208, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 42%, rgba(203, 57, 255, 0.2), transparent 28%),
    radial-gradient(circle at 66% 54%, rgba(68, 85, 255, 0.24), transparent 40%),
    linear-gradient(135deg, rgba(7, 9, 39, 0.98), rgba(5, 7, 27, 0.88));
  box-shadow: 0 28px 72px rgba(0, 2, 18, 0.4), inset 0 1px rgba(255, 255, 255, 0.04);
}
.mf-terms-hero::after {
  display: none;
}
.mf-terms-hero-copy {
  z-index: 2;
  display: grid;
  gap: 14px;
  padding: 36px 0 36px 54px;
}
.mf-terms-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: clamp(3rem, 4.2vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.mf-terms-hero-copy > p {
  max-width: 58ch;
  margin: 0;
  color: rgba(220, 226, 248, 0.8);
  font-size: 0.98rem;
  line-height: 1.65;
}
.mf-terms-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 3px;
  color: rgba(194, 203, 235, 0.72);
  font-size: 0.78rem;
}
.mf-terms-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.mf-terms-meta i {
  color: #bc67ff;
}
.mf-terms-hero-art {
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.mf-terms-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 40px rgba(68, 24, 255, 0.36));
  transform: scale(1.2) translateY(2%);
}
.mf-terms-hero.mf-terms-hero-plain {
  grid-template-columns: minmax(0, 1fr);
  height: auto;
  min-height: 0;
}
.mf-terms-hero.mf-terms-hero-plain .mf-terms-hero-copy {
  gap: 16px;
  padding: clamp(30px, 3.2vw, 44px) clamp(26px, 3.8vw, 54px);
}
.mf-terms-hero.mf-terms-hero-plain h1 {
  max-width: 22ch;
  font-size: clamp(2.3rem, 3.2vw, 3.3rem);
  line-height: 1.02;
}
.mf-terms-hero.mf-terms-hero-plain .mf-terms-hero-copy > p {
  max-width: 68ch;
  font-size: 1.02rem;
}
.mf-terms-hero-plain .mf-terms-meta {
  gap: 8px 10px;
}
.mf-terms-hero-plain .mf-terms-meta span {
  padding: 7px 13px;
  border: 1px solid rgba(122, 146, 224, 0.26);
  border-radius: 999px;
  background: rgba(10, 14, 48, 0.6);
  font-size: 0.79rem;
}
.mf-terms-hero-plain .mf-terms-meta code {
  font-size: 0.94em;
  letter-spacing: -0.01em;
}
.mf-terms-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  overflow: clip;
  border: 1px solid rgba(107, 128, 199, 0.3);
  border-radius: 24px;
  background: rgba(3, 5, 24, 0.66);
  box-shadow: 0 28px 76px rgba(0, 2, 18, 0.38);
}
.mf-terms-sidebar {
  position: relative;
  padding: 24px 18px;
  border-right: 1px solid var(--terms-line);
  background: linear-gradient(180deg, rgba(6, 8, 32, 0.92), rgba(4, 6, 26, 0.7));
}
.mf-terms-sidebar > span {
  display: block;
  margin: 0 10px 12px;
  color: rgba(174, 185, 220, 0.68);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mf-terms-sidebar nav {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 3px;
}
.mf-terms-sidebar nav a {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 10px;
  color: rgba(209, 216, 242, 0.78);
  font-size: 0.76rem;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}
.mf-terms-sidebar nav a::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px -1px;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(#845dff, #e84bdc);
  opacity: 0;
}
.mf-terms-sidebar nav a:hover,
.mf-terms-sidebar nav a:focus-visible,
.mf-terms-sidebar nav a.is-active {
  color: #fff;
  background: linear-gradient(90deg, rgba(105, 75, 219, 0.2), rgba(48, 64, 120, 0.1));
  transform: translateX(2px);
}
.mf-terms-sidebar nav a.is-active::before {
  opacity: 1;
}
.mf-terms-sidebar nav i {
  color: #a9b9e9;
  text-align: center;
}
.mf-terms-sidebar nav a.is-active i {
  color: #c079ff;
}
.mf-terms-sidebar-note {
  position: sticky;
  top: 540px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 13px;
  overflow: hidden;
  border: 1px solid rgba(106, 127, 201, 0.22);
  border-radius: 14px;
  background: rgba(11, 13, 45, 0.72);
}
.mf-terms-sidebar-note img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.mf-terms-sidebar-note strong {
  display: block;
  color: #f5f6ff;
  font-size: 0.76rem;
}
.mf-terms-sidebar-note p {
  margin: 4px 0 0;
  color: rgba(193, 202, 232, 0.7);
  font-size: 0.62rem;
  line-height: 1.45;
}
.mf-terms-document {
  min-width: 0;
  padding: 18px;
}
.mf-terms-summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 13px 16px;
  border: 1px solid rgba(136, 93, 255, 0.28);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(78, 66, 173, 0.18), rgba(20, 19, 72, 0.14));
}
.mf-terms-summary > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #d37aff;
  background: rgba(128, 74, 255, 0.2);
}
.mf-terms-summary p {
  margin: 0;
  color: rgba(213, 220, 244, 0.78);
  font-size: 0.75rem;
  line-height: 1.5;
}
.mf-terms-summary strong {
  color: #fff;
}
.mf-term-section {
  scroll-margin-top: 100px;
  border: 1px solid var(--terms-line);
  border-bottom: 0;
  background: linear-gradient(100deg, rgba(14, 15, 54, 0.76), rgba(8, 10, 38, 0.72));
}
.mf-term-section:first-of-type {
  border-radius: 15px 15px 0 0;
}
.mf-term-section:nth-last-of-type(1) {
  border-bottom: 1px solid var(--terms-line);
  border-radius: 0 0 15px 15px;
}
.mf-term-section summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 9px 14px;
  cursor: pointer;
  list-style: none;
}
.mf-term-section summary::-webkit-details-marker {
  display: none;
}
.mf-term-section summary:focus-visible {
  outline: 2px solid #bb71ff;
  outline-offset: -3px;
}
.mf-term-section summary > span:nth-child(2) {
  min-width: 0;
}
.mf-term-section summary strong {
  display: block;
  color: #f8f9ff;
  font-family: "Outfit", sans-serif;
  font-size: 0.94rem;
  line-height: 1.2;
}
.mf-term-section summary small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: rgba(193, 202, 231, 0.74);
  font-size: 0.71rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mf-term-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(126, 106, 255, 0.22);
  border-radius: 50%;
  color: #b987ff;
  background: linear-gradient(145deg, rgba(90, 83, 209, 0.25), rgba(164, 61, 214, 0.14));
}
.mf-term-section summary > i {
  justify-self: center;
  color: #ac7aff;
  font-size: 0.7rem;
  transition: transform 180ms ease;
}
.mf-term-section[open] {
  border-color: rgba(156, 101, 255, 0.42);
  background: linear-gradient(120deg, rgba(21, 21, 67, 0.92), rgba(10, 12, 42, 0.88));
}
.mf-term-section[open] summary > i {
  transform: rotate(180deg);
}
.mf-term-body {
  display: grid;
  gap: 10px;
  padding: 4px 52px 19px 64px;
  border-top: 1px solid rgba(112, 130, 190, 0.15);
}
.mf-term-body p {
  margin: 0;
  color: rgba(211, 218, 241, 0.78);
  font-size: 0.78rem;
  line-height: 1.7;
}
.mf-term-body a {
  color: #c997ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mf-terms-agreement {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(250px, 360px);
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid rgba(213, 76, 241, 0.58);
  border-radius: 15px;
  background: linear-gradient(120deg, rgba(47, 23, 99, 0.32), rgba(17, 17, 69, 0.68));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}
.mf-terms-agreement > img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(191, 66, 255, 0.4));
}
.mf-terms-agreement h2 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
}
.mf-terms-agreement p {
  margin: 4px 0 0;
  color: rgba(205, 213, 239, 0.72);
  font-size: 0.7rem;
}
.mf-terms-agreement-actions {
  display: grid;
  justify-items: center;
  gap: 7px;
}
.mf-terms-agreement-actions > a:last-child {
  color: rgba(207, 173, 244, 0.7);
  font-size: 0.66rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mf-terms-accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(105deg, #526eff, #8e50f5 58%, #d849cf);
  box-shadow: 0 12px 26px rgba(102, 58, 236, 0.28);
  font-size: 0.78rem;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.mf-terms-accept:hover,
.mf-terms-accept:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(134, 60, 238, 0.38);
}
@media (max-width: 1020px) {
  .mf-terms-hero {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.85fr);
  }
  .mf-terms-hero-copy {
    padding-left: 36px;
  }
  .mf-terms-layout {
    grid-template-columns: 226px minmax(0, 1fr);
  }
  .mf-terms-sidebar-note {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .mf-terms-sidebar-note img {
    width: 46px;
    height: 46px;
  }
  .mf-terms-agreement {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .mf-terms-agreement-actions {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  .mf-terms-page .mf-shell {
    width: min(calc(100vw - 24px), var(--mf-max-width));
    padding-top: 0;
  }
  .mf-terms-desktop-header {
    display: none !important;
  }
  .mf-terms-mobile-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    width: 100vw;
    min-height: calc(68px + env(safe-area-inset-top, 0px));
    margin: 0 calc(50% - 50vw) 16px;
    padding: env(safe-area-inset-top, 0px) 18px 0;
    border-bottom: 1px solid rgba(101, 119, 188, 0.2);
    background: rgba(3, 5, 24, 0.9);
    backdrop-filter: blur(18px) saturate(1.2);
  }
  .mf-terms-mobile-header > a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(127, 92, 226, 0.26);
    border-radius: 50%;
    color: #f7f5ff;
    background: linear-gradient(145deg, rgba(93, 55, 177, 0.42), rgba(29, 26, 84, 0.62));
  }
  .mf-terms-mobile-header strong {
    justify-self: center;
    font-family: "Outfit", sans-serif;
    font-size: 1.16rem;
  }
  .mf-terms-main {
    gap: 16px;
  }
  .mf-terms-hero {
    grid-template-columns: 108px minmax(0, 1fr);
    height: auto;
    min-height: 0;
    padding: 18px;
    border-color: rgba(143, 91, 235, 0.38);
    border-radius: 22px;
    background:
      radial-gradient(circle at 24% 42%, rgba(140, 59, 255, 0.24), transparent 38%),
      linear-gradient(125deg, rgba(18, 18, 63, 0.96), rgba(7, 9, 38, 0.92));
  }
  .mf-terms-hero::after {
    display: none;
  }
  .mf-terms-hero-copy {
    grid-column: 2;
    grid-row: 1;
    gap: 8px;
    padding: 0;
  }
  .mf-terms-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.45rem);
    line-height: 1.05;
  }
  .mf-terms-hero-copy > p {
    font-size: 0.82rem;
    line-height: 1.5;
  }
  .mf-terms-meta {
    display: grid;
    gap: 5px;
    margin-top: 3px;
    font-size: 0.68rem;
  }
  .mf-terms-hero-art {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: 96px;
    height: 96px;
  }
  .mf-terms-hero-art img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    transform: none;
  }
  .mf-terms-hero.mf-terms-hero-plain {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .mf-terms-hero.mf-terms-hero-plain .mf-terms-hero-copy {
    grid-column: 1;
    gap: 12px;
    padding: 4px 2px;
  }
  .mf-terms-hero.mf-terms-hero-plain h1 {
    font-size: clamp(1.75rem, 7.4vw, 2.3rem);
  }
  .mf-terms-hero.mf-terms-hero-plain .mf-terms-hero-copy > p {
    font-size: 0.86rem;
  }
  .mf-terms-hero-plain .mf-terms-meta {
    display: flex;
  }
  .mf-terms-layout {
    display: block;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .mf-terms-sidebar {
    display: none;
  }
  .mf-terms-document {
    padding: 0;
  }
  .mf-terms-summary {
    margin-bottom: 12px;
    padding: 12px 13px;
    border-radius: 14px;
  }
  .mf-terms-summary p {
    font-size: 0.72rem;
  }
  .mf-term-section {
    scroll-margin-top: 82px;
    background: linear-gradient(100deg, rgba(17, 18, 61, 0.9), rgba(8, 10, 38, 0.86));
  }
  .mf-term-section summary {
    grid-template-columns: 46px minmax(0, 1fr) 20px;
    gap: 12px;
    min-height: 84px;
    padding: 12px;
  }
  .mf-term-icon {
    width: 46px;
    height: 46px;
    font-size: 1rem;
  }
  .mf-term-section summary strong {
    font-size: 0.95rem;
  }
  .mf-term-section summary small {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.45;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .mf-term-body {
    gap: 12px;
    padding: 5px 16px 20px 70px;
  }
  .mf-term-body p {
    font-size: 0.76rem;
    line-height: 1.65;
  }
  .mf-terms-agreement {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px 12px;
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
  }
  .mf-terms-agreement > img {
    width: 68px;
    height: 68px;
  }
  .mf-terms-agreement-actions {
    grid-column: 1 / -1;
    margin-top: 5px;
  }
  .mf-terms-accept {
    min-height: 54px;
    border-radius: 14px;
    font-size: 0.9rem;
  }
}
@media (max-width: 430px) {
  .mf-terms-hero {
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 15px;
  }
  .mf-terms-hero-art,
  .mf-terms-hero-art img {
    width: 78px;
    height: 78px;
  }
  .mf-terms-hero h1 {
    font-size: 1.65rem;
  }
  .mf-terms-hero-copy > p {
    font-size: 0.75rem;
  }
  .mf-terms-meta span:last-child {
    display: none;
  }
  .mf-terms-hero.mf-terms-hero-plain .mf-terms-meta span:last-child {
    display: inline-flex;
  }
  .mf-terms-hero-plain .mf-terms-meta span {
    padding: 6px 11px;
    font-size: 0.72rem;
  }
  .mf-term-body {
    padding-left: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mf-terms-sidebar nav a,
  .mf-term-section summary > i,
  .mf-terms-accept {
    transition: none;
  }
}
