/*
 * MentorGoat waitlist privacy statements (NIC-643): /english/privacy and
 * /privacyverklaring. Layout = Figma 388:262 (desktop 1440) and 388:330
 * (phone 390). Colours, radii and the font come from base.css tokens only.
 */

.wl-statement-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header bar (base.css): link back to the waitlist on the right. */
.wl-back {
  font-size: 15px;
  line-height: 18px;
  font-weight: 500;
  color: var(--c-pine);
  text-decoration: none;
}

.wl-back:hover {
  text-decoration: underline;
}

.wl-back-short {
  display: none;
}

/* Article column: a white strip, 720 wide, centred on the page colour. */
.wl-article {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 0 96px;
  background: var(--c-surface);
}

.wl-article h1 {
  font-size: 32px;
  line-height: 38px;
  font-weight: 700;
}

.wl-date {
  font-size: 13px;
  line-height: 16px;
  color: var(--c-ink-muted);
}

.wl-sections {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.wl-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wl-section h2 {
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
}

.wl-section p {
  font-size: 17px;
  line-height: 26px;
}

.wl-section strong {
  font-weight: 600;
}

/* Companies table: three equal columns on desktop. */
.wl-companies {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--c-surface);
}

.wl-companies th,
.wl-companies td {
  padding: 16px 8px;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
}

.wl-companies th:first-child,
.wl-companies td:first-child {
  padding-left: 16px;
}

.wl-companies th:last-child,
.wl-companies td:last-child {
  padding-right: 16px;
}

/* 3 x 218 content + 16 between columns + 16 at each edge = 718 inside the
   border. */
.wl-companies thead th:first-child,
.wl-companies thead th:last-child {
  width: 242px;
}

.wl-companies thead th:nth-child(2) {
  width: 234px;
}

.wl-companies thead th {
  font-size: 12px;
  line-height: 14px;
  font-weight: 500;
  color: var(--c-ink-muted);
  text-transform: uppercase;
}

.wl-companies tbody th,
.wl-companies tbody td {
  font-size: 15px;
  line-height: 23px;
  font-weight: 400;
  color: var(--c-ink);
}

.wl-companies tbody tr:last-child th,
.wl-companies tbody tr:last-child td {
  border-bottom: 0;
}

/* Phone (frame 388:330). */
@media (max-width: 767px) {
  .wl-back-long {
    display: none;
  }

  .wl-back-short {
    display: inline;
  }

  .wl-article {
    max-width: none;
    padding: 32px 24px 48px;
  }

  .wl-article h1 {
    font-size: 28px;
    line-height: 32px;
  }

  .wl-section h2 {
    font-size: 18px;
    line-height: 22px;
  }

  /* The table becomes a stacked list: name, what it does, where the data
     sits. The column headings stay for screen readers only. */
  .wl-companies,
  .wl-companies tbody,
  .wl-companies tr,
  .wl-companies th,
  .wl-companies td {
    display: block;
  }

  .wl-companies {
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: none;
  }

  .wl-companies thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .wl-companies tbody {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .wl-companies th,
  .wl-companies td,
  .wl-companies th:first-child,
  .wl-companies td:first-child,
  .wl-companies th:last-child,
  .wl-companies td:last-child {
    width: auto;
    padding: 0;
    border-bottom: 0;
  }

  .wl-companies tbody th {
    font-size: 15px;
    line-height: 18px;
    font-weight: 600;
  }

  .wl-companies tbody td {
    margin-top: 4px;
    font-size: 13px;
    line-height: 16px;
    color: var(--c-ink-muted);
  }
}
