/* ================================================================
   P1 Legal — styles for /legal/ page
   assets/p1/css/legal.css
   ================================================================ */

/* post.css sets global a { color/text-decoration } — restore nav and footer */
.gl-header__nav > ul > li > a {
  display: flex;
  align-items: center;
  color: var(--foreground);
  font-weight: 500;
  font-size: calc(0.875rem * var(--font-factor, 1));
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s linear;
}
.gl-header__nav > ul > li > a:hover { opacity: 0.8; }
.gl-footer__nav-section a { text-decoration: none; color: inherit; }


.p1-legal__banner {
  background-color: #0c1117;
  padding: 4.5rem 2rem 2rem;
}
.p1-legal__banner-inner {
  max-width: 48rem;
  margin: 0 auto;
}
.p1-legal__banner-label {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
.p1-legal__banner-title {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}
.p1-legal__back {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 2.5rem;
}
.p1-legal__back:hover { text-decoration: underline; }
.p1-legal__section { margin-bottom: 4rem; }
.p1-legal__section-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--title-color);
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.p1-legal__block {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.4rem 1.5rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 520px) {
  .p1-legal__block { grid-template-columns: 1fr; }
}
.p1-legal__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--light-text);
  padding-top: 0.1rem;
}
.p1-legal__value {
  font-size: 1rem;
  color: var(--body-text);
  line-height: 1.6;
}
.p1-legal__value a { color: var(--accent); text-decoration: none; }
.p1-legal__value a:hover { text-decoration: underline; }
.p1-legal__sub-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--title-color);
  margin: 2rem 0 0.75rem;
}
.p1-legal__text {
  font-size: 1rem;
  color: var(--body-text);
  line-height: 1.8;
  margin: 0 0 1rem;
}
