/* Legal page: full-screen three-column layout (Privacy | Terms | Returns) */

.legal-layout {
  height: 100%;
  column-gap: 0;
}

body.page-legal .site-logo svg {
  fill: var(--pi-fill);
  color: var(--pi-fill);
}

body.page-legal .menu,
body.page-legal .menu a {
  color: var(--pi-fill);
}

.legal-col {
  height: 100%;
  overflow-y: auto;
  /* all three texts start at the same height, below the logo */
  padding: 7rem 2rem 5rem;
  scroll-margin-top: 1rem;
}

/* Left: Privacy */
.legal-col--left {
  background-color: var(--pi-fill);
  color: #fff;
}

/* Middle: Terms (white; room for the logo and the menu) */
.legal-col--middle {
  background-color: #fff;
  color: #000;
}

/* Right: Returns */
.legal-col--right {
  background-color: var(--pi-bg);
  color: #fff;
}

.legal-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid currentColor;
}

.legal-text {
  font-size: 0.9rem;
  line-height: 1.6;
}

.legal-text p,
.legal-text ul {
  margin-top: 0.75em;
}

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

.legal-text h3 {
  font-size: 1.05rem;
  margin: 1.8em 0 0.4em;
}

.legal-text h4 {
  font-size: 0.95rem;
  margin: 1.4em 0 0.3em;
}

.legal-text ul {
  list-style: none;
  padding-left: 0;
}

.legal-text li {
  position: relative;
  padding-left: 1.2em;
  margin-top: 0.3em;
}

.legal-text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: currentColor;
}

.legal-text a { color: inherit; }

body.has-black-text.page-legal .legal-col--left,
body.has-black-text.page-legal .legal-col--right {
  color: #000;
}

@media only screen and (max-width: 800px) {
  body.page-legal {
    overflow-y: auto !important;
    height: auto !important;
  }

  body.page-legal .main {
    flex: none;
  }

  .legal-layout { height: auto; }

  /* One calm document on a phone: stacked sections, white, black text */
  .legal-col,
  .legal-col--left,
  .legal-col--middle,
  .legal-col--right {
    height: auto;
    overflow: visible;
    background-color: #fff;
    color: #000;
    padding: 2rem 1.2rem 3rem;
  }

  .legal-col--left { padding-top: 6rem; }
  .legal-col + .legal-col { border-top: 1px solid #000; }
}
