@import url("https://fonts.googleapis.com/css2?family=Bowlby+One+SC&family=Bungee&family=Lilita+One&family=Luckiest+Guy&display=swap");

:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: #050505;
  --panel-raised: #0a0a0a;
  --ink: #ffffff;
  --muted: #b8b8b8;
  --line: #2a2a2a;
  --green: #8bff58;
  --green-deep: #55c62f;
  --danger: #ff4a4a;
  --warning: #ffd75c;
  --blue: #36c8ff;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(139, 255, 88, 0.08), transparent 240px),
    var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.terms-header {
  position: relative;
  display: flex;
  width: min(1160px, calc(100% - 32px));
  min-height: 104px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}

.terms-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.terms-brand img {
  display: block;
  width: clamp(126px, 15vw, 190px);
  height: auto;
}

.terms-back {
  position: absolute;
  right: 0;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 255, 88, 0.64);
  border-radius: 8px;
  padding: 0 13px;
  background: #030303;
  color: var(--green);
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.terms-back:hover,
.terms-back:focus-visible {
  border-color: var(--green);
  color: #b8ff9a;
  transform: translateY(-1px);
}

.terms-shell {
  display: grid;
  width: min(980px, calc(100% - 28px));
  gap: 14px;
  margin: 0 auto;
  padding: 8px 0 64px;
}

.terms-hero,
.terms-section,
.terms-notice,
.terms-toc,
.summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.94);
  box-shadow: var(--shadow);
}

.terms-hero {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 4vw, 34px);
}

.terms-kicker {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(139, 255, 88, 0.28);
}

.terms-kicker svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  fill: currentColor;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin: 0;
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 6vw, 4.4rem);
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 14px;
  color: var(--green);
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 2vw, 1.32rem);
  line-height: 1.08;
  text-transform: uppercase;
}

p {
  margin-bottom: 12px;
  color: #e8e8e8;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.55;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: #ffffff;
  font-weight: 900;
}

.terms-updated {
  width: max-content;
  max-width: 100%;
  margin: 0;
  border: 1px solid rgba(255, 215, 92, 0.5);
  border-radius: 6px;
  padding: 6px 8px;
  background: rgba(255, 215, 92, 0.08);
  color: var(--warning);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.terms-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.summary-card {
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 15px;
}

.summary-card strong {
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 0.96rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.summary-card span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.38;
}

.summary-card.danger {
  border-color: rgba(255, 74, 74, 0.58);
  border-left: 4px solid var(--danger);
}

.summary-card.warning {
  border-color: rgba(255, 215, 92, 0.56);
  border-left: 4px solid var(--warning);
}

.summary-card.accent {
  border-color: rgba(139, 255, 88, 0.56);
  border-left: 4px solid var(--green);
}

.terms-notice {
  border-color: rgba(255, 74, 74, 0.66);
  border-left: 5px solid var(--danger);
  padding: 14px 16px;
  color: #ffffff;
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.08rem);
  line-height: 1.35;
  text-transform: uppercase;
}

.terms-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 11px;
}

.terms-toc a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #f3f3f3;
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.terms-toc a:hover,
.terms-toc a:focus-visible {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
}

.terms-section {
  overflow: hidden;
  padding: clamp(17px, 3vw, 24px);
}

.terms-section::before {
  display: block;
  width: 70px;
  height: 3px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--green);
  content: "";
  box-shadow: 0 0 14px rgba(139, 255, 88, 0.38);
}

.danger-section {
  border-color: rgba(255, 74, 74, 0.42);
}

.danger-section::before {
  background: var(--danger);
  box-shadow: 0 0 14px rgba(255, 74, 74, 0.34);
}

.final-section {
  border-color: rgba(139, 255, 88, 0.42);
  background:
    linear-gradient(180deg, rgba(139, 255, 88, 0.055), transparent 180px),
    rgba(5, 5, 5, 0.96);
}

.highlight-line {
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: rgba(139, 255, 88, 0.075);
  padding: 10px 12px;
  color: #ffffff;
}

.danger-text {
  color: #ffdede;
}

.danger-text.highlight-line,
.highlight-line.danger-text {
  border-left-color: var(--danger);
  background: rgba(255, 74, 74, 0.09);
}

.terms-list {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.terms-list li {
  position: relative;
  min-width: 0;
  padding: 9px 10px 9px 28px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: #e7e7e7;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.42;
}

.terms-list li::before {
  position: absolute;
  top: 13px;
  left: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
  box-shadow: 0 0 10px rgba(139, 255, 88, 0.42);
}

.danger-list li::before {
  background: var(--danger);
  box-shadow: 0 0 10px rgba(255, 74, 74, 0.42);
}

.final-list li {
  border-color: rgba(139, 255, 88, 0.18);
}

.split-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 820px) {
  .terms-header {
    min-height: 124px;
    flex-direction: column;
    gap: 12px;
    padding: 18px 0 12px;
  }

  .terms-back {
    position: static;
  }

  .terms-summary,
  .split-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .terms-toc {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terms-toc a {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .terms-shell {
    width: 100%;
    padding: 4px 9px 42px;
  }

  .terms-hero,
  .terms-section,
  .terms-notice {
    border-radius: 8px;
  }

  .terms-toc {
    grid-template-columns: minmax(0, 1fr);
  }
}
