/* Legal pages (terms, privacy, accessibility): a table of contents beside a reading column.
   The legal text keeps its own markup; this file only styles it. Tokens live in landing.css. */

.lp .w-legal-hero { padding-bottom: 72px; }
.lp .w-legal-date { margin-top: 18px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.65); }

.lp .w-legal {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.lp .w-legal-sec { scroll-margin-top: 90px; }

/* Table of contents */
.lp .w-legal-toc h2 { margin-bottom: 10px; font-family: var(--body); font-size: 0.85rem; font-weight: 700; color: var(--mute); }

.lp .w-legal-toc a {
  display: block;
  padding: 6px 0;
  padding-inline-start: 14px;
  border-inline-start: 2px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
}

.lp .w-legal-toc a:hover { border-color: var(--magenta); color: var(--magenta); }

/* The reading column */
.lp .w-legal-body { max-width: 46em; }

.lp .w-legal-sec + .w-legal-sec {
  margin-top: 44px;
  padding-top: 44px;
  border-top: 1px solid var(--rule);
}

.lp .w-legal-body h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--ink);
}

.lp .w-legal-body h3 { margin-top: 22px; font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.lp .w-legal-body p { margin-top: 12px; line-height: 1.8; color: #3f2c43; }
.lp .w-legal-intro > p:first-child { margin-top: 0; }
.lp .w-legal-body ul { margin-top: 12px; }

.lp .w-legal-body ul > li {
  position: relative;
  margin-top: 8px;
  padding-inline-start: 22px;
  line-height: 1.7;
  color: #3f2c43;
}

.lp .w-legal-body ul > li::before {
  content: '';
  position: absolute;
  top: 0.7em;
  inset-inline-start: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
}

.lp .w-legal-body a { font-weight: 600; color: var(--magenta); text-decoration: underline; text-underline-offset: 3px; }

/* Boxes inside the text: contact details, the accessibility coordinator, the accessibility vendor */
.lp .contact-info-box,
.lp .coordinator-box {
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--blush);
}

.lp .contact-info-box p,
.lp .coordinator-box p { margin-top: 4px; }
.lp .contact-info-box p:first-child { margin-top: 0; }
.lp .contact-info-box i,
.lp .coordinator-box i { width: 18px; margin-inline-end: 4px; color: var(--magenta); }
.lp .coordinator-box h3 { margin-top: 0; }
.lp .coordinator-box .coordinator-name { font-size: 1.1rem; font-weight: 700; color: var(--ink); }

.lp .accessibility-badge-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #edf5e2;
  font-weight: 600;
  color: #2f5410;
}

/* Lists that bring their own check icons don't need the dot */
.lp .w-legal-body ul.accessibility-features > li { padding-inline-start: 0; }
.lp .w-legal-body ul.accessibility-features > li::before { display: none; }
.lp .accessibility-features i { margin-inline-end: 6px; font-size: 0.85rem; color: var(--magenta); }

.lp .accessibility-functions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.lp .function-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.92rem;
}

.lp .function-item i { width: 18px; text-align: center; color: var(--magenta); }
.lp .w-legal-body .update-date { margin-top: 18px; font-size: 0.9rem; color: var(--mute); }

@media (max-width: 900px) {
  .lp .w-legal { grid-template-columns: minmax(0, 1fr); gap: 36px; }

  .lp .w-legal-toc {
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--blush);
  }

  .lp .w-legal-toc ol { columns: 2; column-gap: 20px; }
  .lp .w-legal-toc a { break-inside: avoid; }
  .lp .w-legal-body h2 { font-size: 2.1rem; }
}

@media (max-width: 560px) {
  .lp .w-legal-toc ol { columns: 1; }
}
