/*
 * TU Wynajmiesz: Regulamin and Polityka prywatności (DEMO pages). Plain reading layout built with
 * typography and spacing (no cards), the site's tokens from main-*.css.
 */
.legal {
  padding-block: var(--space-2xl) var(--space-3xl);
}

/* Aligned with the logo and the rest of the page; only the reading width is limited */
.legal__inner {
  display: grid;
  gap: var(--space-xl);

  & > * {
    max-inline-size: var(--measure);
  }
}

.legal__header {
  display: grid;
  justify-items: start;
  gap: var(--space-s);
}

.legal__title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
}

.legal__lead {
  font-size: var(--text-md);
  color: var(--color-text-muted);
}

.legal__demo {
  padding: var(--space-s) var(--space-m);
  border: var(--border-width, 1px) dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
}

.legal__toc ol {
  display: grid;
  gap: var(--space-2xs);
  margin: 0;
  padding: var(--space-m) 0;
  border-block: var(--border-width, 1px) solid var(--color-border);
  list-style: none;
}

.legal__toc a {
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal__body {
  display: grid;
  gap: var(--space-xl);
}

.legal__section {
  display: grid;
  gap: var(--space-s);
  scroll-margin-block-start: calc(var(--header-height, 5rem) + var(--space-m));
  line-height: var(--leading-relaxed);

  & ul {
    display: grid;
    gap: var(--space-2xs);
    margin: 0;
    padding-inline-start: var(--space-m);
    list-style: disc;
  }
}

.legal__heading {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
}
