/* ═══════════════════════════════════════════════════════════════
   HangarAI: HangarAI Cloud's terms (terms/)

   On styles.css, assets/pages.css and legal/legal.css, which give the
   column, the draft note, the contents and the sections. This adds the
   table of services and their state. Below 600 px each row of the table
   becomes a card, its labels written in the cells (.svc__k).
   ═══════════════════════════════════════════════════════════════ */

.legal h3 {
  margin-top: 28px;
  color: var(--fg-hi);
  font-size: 16.5px;
  line-height: 1.35;
}

.svc {
  width: 100%;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.5;
}

.svc th,
.svc td {
  padding: 11px 14px;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.svc thead th {
  border-top: 0;
  background: var(--chrome);
  color: var(--fg-secondary);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.svc tbody th {
  color: var(--fg-hi);
  font-weight: 600;
}

.svc td {
  color: var(--fg);
}

.svc__k {
  display: none;
}

/* A service's state: a dot and a word, in the colour of its meaning
   (green while it is open). */
.state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 560;
  white-space: nowrap;
}

.state::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.state--live {
  color: var(--state-working);
}

.legal h3 .state {
  margin-left: 8px;
  font-size: 13px;
  vertical-align: 1px;
}

@media (max-width: 599px) {
  .svc,
  .svc tbody,
  .svc tr,
  .svc th,
  .svc td {
    display: block;
  }

  .svc thead {
    display: none;
  }

  .svc tr {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
  }

  .svc tbody tr:first-child {
    border-top: 0;
  }

  .svc th,
  .svc td {
    padding: 0;
    border-top: 0;
  }

  .svc td {
    margin-top: 6px;
  }

  .svc__k {
    display: block;
    color: var(--fg-muted);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
}
