/* Shared typography, navigation and footer are defined in site.css. */
.legal-content {
  padding-top: clamp(2.75rem, 6vw, 5rem);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.legal-intro, .legal-body {
  max-width: 48rem;
}

.legal-content h1 {
  margin-bottom: 2rem;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.15;
}

.legal-content h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.legal-content h3 {
  font-size: 1.125rem;
  line-height: 1.4;
}

.legal-content section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.legal-content p {
  margin: 1rem 0;
}

.draft-notice, .rights-notice {
  padding: 1.25rem 1.5rem;
  border: 1px solid #666;
  background: var(--surface);
}

.draft-notice {
  margin-bottom: 2rem;
}

.draft-notice strong {
  display: block;
  font-size: .875rem;
}

.draft-notice p {
  font-size: .875rem;
  color: var(--muted);
}

.draft-notice p:last-child, .rights-notice p:last-child {
  margin-bottom: 0;
}

.pending {
  color: #e6d2a9;
  padding-left: 1rem;
  border-left: 2px solid #9c8b65;
}

.contents {
  display: grid;
  grid-template-columns: 1fr;
  gap: .25rem 1.5rem;
  padding: 1.25rem 1.5rem;
  margin-top: 0;
  border: 1px solid var(--line);
  font-size: .875rem;
}

.contents a {
  padding-block: .45rem;
}

.updated {
  margin-top: 3rem !important;
  color: var(--muted);
  font-size: .8rem;
}

@media (max-width: 38rem) {
  .contents {
    grid-template-columns: 1fr;
  }
  .draft-notice, .rights-notice {
    padding: 1rem;
  }
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.legal-layout .contents {
  position: sticky;
  top: 1.5rem;
}

.legal-layout .legal-body {
  min-width: 0;
}

.legal-body > section:first-child {
  margin-top: 0;
}

.legal-body address {
  font-style: normal;
}

@media (max-width: 55rem) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .legal-layout .contents {
    position: static;
    max-width: 48rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 38rem) {
  .legal-layout .contents {
    grid-template-columns: 1fr;
  }
}
