/* =========================================================
   TERMS
   ========================================================= */

.terms-hero,
.terms-summary,
.terms-document {
  position: relative;

  width: min(calc(100% - (var(--page-padding) * 2)), var(--content-width));

  margin: 0 auto;
}

.terms-hero::before,
.terms-summary::before,
.terms-document::before {
  content: "";

  position: absolute;
  z-index: -1;

  top: 0;
  bottom: 0;
  left: 50%;

  width: 100vw;

  transform: translateX(-50%);
}

.terms-hero::before,
.terms-document::before {
  background: #101010;
}

.terms-summary::before {
  background: #181818;
}

/* =========================================================
   TECHNICAL LABELS
   ========================================================= */

.terms-hero .technical-label,
.terms-summary .technical-label,
.terms-index .technical-label {
  position: relative;

  display: inline-flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 18px;

  color: var(--green);

  font-size: 10px;

  font-weight: 600;

  letter-spacing: 0.12em;
}

/* HERO */

.terms-hero .technical-label::before {
  content: "";

  width: 28px;
  height: 1px;

  background: var(--green);
}

/* SUMMARY */

.terms-summary .technical-label::after {
  content: "";

  width: 53px;
  height: 1px;

  background: var(--green);
}

/* INDEX */

.terms-index .technical-label::before {
  content: "";

  width: 19px;
  height: 1px;

  background: var(--green);
}

/* =========================================================
   HERO
   ========================================================= */

.terms-hero {
  min-height: 500px;

  padding: 108px 0 105px;

  display: grid;

  grid-template-columns: minmax(0, 1fr) 190px;

  gap: 100px;

  align-items: end;
}

.terms-hero__content {
  max-width: 680px;

  margin-left: 4%;
}

.terms-hero__content h1 {
  margin: 0;

  font-size: clamp(50px, 5.8vw, 66px);

  font-weight: 600;

  line-height: 0.98;

  letter-spacing: -0.058em;
}

.terms-hero__content > p:not(.technical-label) {
  max-width: 550px;

  margin: 30px 0 0;

  color: var(--text-secondary);

  font-size: 17px;

  line-height: 1.7;
}

.terms-meta {
  display: flex;

  flex-direction: column;

  gap: 7px;

  padding-bottom: 5px;
}

.terms-meta span {
  margin-top: 10px;

  color: var(--text-muted);

  font-size: 9px;

  font-weight: 600;

  letter-spacing: 0.11em;
}

.terms-meta strong {
  color: var(--text);

  font-size: 13px;

  font-weight: 500;
}

/* =========================================================
   SUMMARY
   ========================================================= */

.terms-summary {
  padding: 120px 0 132px;

  display: grid;

  grid-template-columns: 0.7fr 1.3fr;

  gap: 100px;
}

.terms-summary__label {
  margin-left: 8%;
}

.terms-summary__content {
  max-width: 690px;
}

.terms-summary__content h2 {
  margin: 0;

  font-size: clamp(40px, 4.7vw, 56px);

  font-weight: 600;

  line-height: 1;

  letter-spacing: -0.052em;
}

.terms-summary__content > p {
  max-width: 580px;

  margin: 27px 0 0;

  color: var(--text-secondary);

  font-size: 15px;

  line-height: 1.72;
}

.terms-summary__points {
  margin-top: 40px;

  border-top: 1px solid #303030;
}

.terms-summary__points > div {
  display: grid;

  grid-template-columns: 42px minmax(0, 1fr);

  gap: 15px;

  padding: 16px 0;

  border-bottom: 1px solid #303030;
}

.terms-summary__points span {
  color: var(--green);

  font-size: 9px;

  font-weight: 600;
}

.terms-summary__points strong {
  color: var(--text);

  font-size: 13px;

  font-weight: 500;
}

/* =========================================================
   DOCUMENT
   ========================================================= */

.terms-document {
  padding: 120px 0 145px;

  display: grid;

  grid-template-columns: 230px minmax(0, 1fr);

  gap: 90px;

  align-items: start;
}

/* =========================================================
   INDEX
   ========================================================= */

.terms-index {
  position: sticky;

  top: 100px;

  padding-left: 8%;
}

.terms-index nav {
  border-top: 1px solid #303030;
}

.terms-index nav a {
  min-height: 43px;

  display: grid;

  grid-template-columns: 31px minmax(0, 1fr);

  gap: 8px;

  align-items: center;

  border-bottom: 1px solid #292929;

  color: var(--text-muted);

  font-size: 11px;

  transition:
    color var(--transition),
    padding var(--transition);
}

.terms-index nav a:hover {
  padding-left: 5px;

  color: var(--text);
}

.terms-index nav a span {
  color: var(--green);

  font-size: 8px;

  font-weight: 600;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.terms-sections {
  max-width: 720px;
}

.terms-section {
  display: grid;

  grid-template-columns: 55px minmax(0, 1fr);

  gap: 25px;

  padding-bottom: 72px;

  margin-bottom: 72px;

  border-bottom: 1px solid #303030;

  scroll-margin-top: 100px;
}

.terms-section:last-child {
  margin-bottom: 0;
}

.terms-section__number {
  padding-top: 5px;

  color: var(--green);

  font-size: 10px;

  font-weight: 600;

  letter-spacing: 0.09em;
}

.terms-section__label {
  margin: 0 0 9px;

  color: var(--text-muted);

  font-size: 9px;

  font-weight: 600;

  letter-spacing: 0.12em;
}

.terms-section h2 {
  margin: 0;

  color: var(--text);

  font-size: clamp(27px, 3vw, 35px);

  font-weight: 600;

  line-height: 1.05;

  letter-spacing: -0.04em;
}

.terms-section p:not(.terms-section__label) {
  max-width: 650px;

  margin: 22px 0 0;

  color: var(--text-secondary);

  font-size: 14px;

  line-height: 1.8;
}

/* =========================================================
   NOTE
   ========================================================= */

.terms-note {
  max-width: 620px;

  margin-top: 32px;

  padding: 20px 22px 20px 25px;

  border-left: 1px solid var(--green);

  background: #181818;
}

.terms-note span {
  display: block;

  margin-bottom: 8px;

  color: var(--green);

  font-size: 9px;

  font-weight: 600;

  letter-spacing: 0.11em;
}

.terms-note p {
  margin: 0 !important;

  color: var(--text-secondary) !important;

  font-size: 13px !important;

  line-height: 1.65 !important;
}

/* =========================================================
   EMAIL
   ========================================================= */

.terms-email {
  display: inline-block;

  margin-top: 28px;

  color: var(--text);

  font-size: 20px;

  font-weight: 500;

  transition: color var(--transition);
}

.terms-email:hover {
  color: var(--green);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
  .terms-hero {
    grid-template-columns: 1fr;

    gap: 50px;
  }

  .terms-hero__content {
    margin-left: 4%;
  }

  .terms-meta {
    margin-left: 12%;
  }

  .terms-summary {
    grid-template-columns: 1fr;

    gap: 35px;
  }

  .terms-summary__label {
    margin-left: 5%;
  }

  .terms-summary__content {
    margin-left: 12%;
  }

  .terms-document {
    grid-template-columns: 180px minmax(0, 1fr);

    gap: 50px;
  }

  .terms-index {
    padding-left: 0;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {
  .terms-hero {
    min-height: auto;

    padding: 66px 0 82px;

    gap: 38px;
  }

  .terms-hero__content,
  .terms-meta,
  .terms-summary__label,
  .terms-summary__content {
    margin-left: 0;
  }

  .terms-hero__content h1 {
    font-size: 43px;
  }

  .terms-hero__content > p:not(.technical-label) {
    font-size: 16px;
  }

  .terms-summary {
    padding: 84px 0 96px;
  }

  .terms-summary__content h2 {
    font-size: 40px;
  }

  .terms-document {
    padding: 84px 0 105px;

    grid-template-columns: 1fr;

    gap: 60px;
  }

  .terms-index {
    position: static;
  }

  .terms-index nav {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terms-index nav a:nth-child(odd) {
    border-right: 1px solid #292929;
  }

  .terms-index nav a {
    padding-right: 10px;
  }

  .terms-section {
    grid-template-columns: 32px minmax(0, 1fr);

    gap: 12px;

    padding-bottom: 50px;

    margin-bottom: 50px;
  }

  .terms-section h2 {
    font-size: 27px;
  }

  .terms-section p:not(.terms-section__label) {
    font-size: 13px;

    line-height: 1.75;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {
  .terms-index nav {
    grid-template-columns: 1fr;
  }

  .terms-index nav a:nth-child(odd) {
    border-right: 0;
  }
}
