/* Company, legal, game privacy and 404 documents. Shared parts live in identity.css. */

.doc {
  padding-top: clamp(40px, 6vw, 88px);
}

.doc article {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: clamp(28px, 5vw, 80px);
}

.doc article > .label,
.doc article > .doc-langs,
.doc article > h1,
.doc article > .date {
  grid-column: 1 / -1;
}

.doc article > .label {
  color: var(--muted);
}

.doc h1 {
  margin-top: 14px;
  max-width: 16ch;
  font-size: clamp(48px, 7.6vw, 120px);
  font-weight: 850;
  font-stretch: 70%;
  line-height: 0.9;
  letter-spacing: -0.012em;
}

.doc .date {
  margin-top: 30px;
  margin-bottom: clamp(40px, 6vw, 72px);
  color: var(--muted);
}

.doc section {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  padding: 22px 0 26px;
  border-top: 1px solid var(--ink);
}

.doc section:last-child {
  border-bottom: 1px solid var(--ink);
}

.doc h2 {
  font-size: 22px;
  font-weight: 750;
  font-stretch: 88%;
  line-height: 1.2;
  padding-right: 16px;
}

.doc section > p,
.doc section > ul {
  grid-column: 2;
  max-width: 66ch;
  color: var(--ink-2);
}

.doc section > p + p,
.doc section > p + ul,
.doc section > ul + p {
  margin-top: 16px;
}

.doc a {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.doc a:hover {
  color: var(--blue);
}

.doc ul {
  padding-left: 20px;
  list-style: square;
}

.doc li + li {
  margin-top: 10px;
}

/* Bilingual game privacy policy */
.doc-langs {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.doc-langs a {
  padding: 6px 12px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
}

.doc-langs a:hover {
  background: var(--ink);
  color: var(--paper);
}

.product-policy h1 + .date,
.product-policy > .date {
  margin-bottom: 40px;
}

.product-policy section {
  scroll-margin-top: 24px;
}

.product-policy section > h2 {
  grid-column: 1;
  font-size: clamp(32px, 4vw, 56px);
  font-stretch: 72%;
  font-weight: 850;
  line-height: 0.95;
}

.product-policy section > :not(h2) {
  grid-column: 2;
}

/* 404 */
.doc--missing .actions {
  grid-column: 1 / -1;
}

.site-footer--compact {
  margin-top: clamp(64px, 10vw, 128px);
}

.site-footer--compact .footer-legal {
  border-top: 0;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-links a {
  color: var(--paper);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 720px) {
  .doc article {
    grid-template-columns: 1fr;
  }

  .doc section > p,
  .doc section > ul,
  .product-policy section > :not(h2) {
    grid-column: 1;
  }

  .doc h2 {
    margin-bottom: 10px;
  }
}
