/* Shared terms and privacy layout using the license page's gradient, heading, and glass card. */
body.page-terms {
  overflow-x: hidden;
}

body.page-terms #page-view {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.terms-page {
  --terms-card-text: #263a69;
  --terms-card-heading: #142244;
  --terms-card-muted: #5e6b86;
  --terms-divider: rgba(56, 88, 250, 0.16);
  flex: 1;
  display: flex;
  align-items: center;
  padding: 80px 0 20px;
}

[data-bs-theme="dark"] .terms-page {
  --terms-card-text: #e5ebf8;
  --terms-card-heading: #f4f7ff;
  --terms-card-muted: #b3bdd1;
  --terms-divider: rgba(255, 255, 255, 0.2);
}

.terms-page__container {
  width: calc(100% - 48px);
  max-width: 1400px;
}

.terms-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.65fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.terms-page__intro {
  min-width: 0;
}

.terms-page__intro-section,
.terms-page__card-section {
  padding: 0;
}

.terms-page__intro .license-v2-title {
  font-size: clamp(32px, 3.3vw, 46px);
  font-weight: 600;
  margin: 0 0 16px;
}

.terms-page__intro .license-v2-hr {
  margin-bottom: 24px;
}

.terms-page__intro-section + .terms-page__intro-section {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  margin-top: 22px;
  padding-top: 22px;
}

.terms-page__intro h2,
.terms-page__card h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
}

.terms-page__intro h2 {
  color: #fff;
}

.terms-page__intro p {
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.terms-page__intro .terms-page__notice {
  padding: 14px 16px;
  border-left: 4px solid #fff;
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 700;
}

.terms-page__card.license-v2-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "ip software"
    "feedback software";
  align-items: start;
  column-gap: 28px;
  row-gap: 22px;
  padding: 28px 30px;
}

.terms-page__ip { grid-area: ip; }
.terms-page__software { grid-area: software; }
.terms-page__feedback { grid-area: feedback; }

.terms-page__feedback {
  border-top: 1px solid var(--terms-divider);
  padding-top: 22px;
}

.terms-page__software {
  border-left: 1px solid var(--terms-divider);
  padding-left: 28px;
}

.terms-page__card h2 {
  color: var(--terms-card-heading);
}

.terms-page__card p,
.terms-page__card li {
  color: var(--terms-card-text);
  font-size: 14px;
  line-height: 1.55;
}

.terms-page__card p {
  margin: 0;
}

.terms-page__card ul {
  margin: 12px 0;
  padding-left: 20px;
}

.terms-page__card li + li {
  margin-top: 6px;
}

#footer-container {
  flex-shrink: 0;
}

@media (max-width: 1199px) {
  .terms-page {
    padding: 100px 0 48px;
  }
}

@media (min-width: 992px) and (max-height: 760px) {
  .terms-page {
    padding: 76px 0 24px;
  }
}

@media (max-width: 991px) {
  .terms-page__layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .terms-page__intro .license-v2-title {
    font-size: 38px;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .terms-page {
    padding: 88px 0 40px;
  }

  .terms-page__container {
    width: 100%;
  }

  .terms-page__intro .license-v2-title {
    font-size: 32px;
  }

  .terms-page__card.license-v2-card {
    grid-template-columns: 1fr;
    grid-template-areas: "ip" "software" "feedback";
    padding: 24px;
  }

  .terms-page__software,
  .terms-page__feedback {
    border-left: 0;
    border-top: 1px solid var(--terms-divider);
    padding-left: 0;
    padding-top: 22px;
  }
}
