/* Byte-identical to public/css/legal.css in the Next.js build — keep the two in
   sync. */
/* ---------------------------------------------------------------------------
   /privacy-policy and /cookie-policy.

   Page-scoped, loaded via <PageStyles> after projects.css and services.css so
   it matches the stack /about already uses. Everything is namespaced under
   .legal so nothing here can reach another page.

   These are long-form reading pages rather than marketing pages, so the two
   things that matter are measure and rhythm: the body is capped at ~72
   characters and the section spacing is generous enough to scan by heading.
   --------------------------------------------------------------------------- */

.legal-intro {
  max-width: 780px;
}

.legal-updated {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-dark-green, #828b08);
}

.legal-body {
  max-width: 820px;
}

/* ------------------------------------------------------------ contents box */

.legal-toc {
  background: var(--color-light-grey, #ebebeb);
  padding: 26px 30px;
  margin: 0 0 55px;
}

/*
  `#featured` is required on the selector, not decorative: custom.css carries
  `#featured h2 { margin: 0 }`, and an ID beats a class, so a plain
  `.legal-toc h2` would silently lose its bottom margin.
*/
#featured .legal-toc h2,
.legal-toc h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 16px;
}

/* The theme decorates every h2 with a green mark; out of place on a list head. */
.legal-toc h2::after {
  content: none;
}

.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: legal-toc;
  columns: 2;
  column-gap: 34px;
}

.legal-toc li {
  counter-increment: legal-toc;
  break-inside: avoid;
  margin-bottom: 9px;
  font-size: 14px;
  line-height: 1.45;
}

.legal-toc li::before {
  content: counter(legal-toc) ".";
  display: inline-block;
  min-width: 22px;
  font-weight: 600;
  color: var(--color-dark-green, #828b08);
}

.legal-toc a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--color-dark-green, #828b08);
  border-bottom-color: currentColor;
}

/* --------------------------------------------------------------- sections */

.legal-section {
  /*
    Offsets in-page anchors clear of the sticky header, so clicking a contents
    entry does not land the heading underneath it.
  */
  scroll-margin-top: 110px;
  margin-bottom: 45px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.legal-section p {
  font-weight: 300;
  font-size: 16px;
  line-height: 28px;
  margin-bottom: 18px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section a {
  color: var(--color-dark-green, #828b08);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section a:hover {
  color: var(--color-black, #232323);
}

.legal-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.legal-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 11px;
  font-weight: 300;
  font-size: 16px;
  line-height: 27px;
}

.legal-list li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--color-green, #dbe71b);
}

.legal-list li:last-child {
  margin-bottom: 0;
}

.legal-list strong {
  font-weight: 600;
}

/* ------------------------------------------------------------------ table */

/*
  The cookie table is the one element that cannot shrink to a phone width, so it
  scrolls inside its own wrapper rather than forcing the page to scroll
  sideways. `tabindex` on .legal-table-wrap in the markup makes that scroll
  region keyboard-reachable.
*/
.legal-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 18px;
}

.legal-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-light-grey, #ebebeb);
  line-height: 1.55;
}

.legal-table th {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom-width: 2px;
  border-bottom-color: var(--color-black, #232323);
}

.legal-table td {
  font-weight: 300;
}

/* ------------------------------------------------------------- callout box */

.legal-callout {
  background: var(--color-light-grey, #ebebeb);
  border-left: 4px solid var(--color-green, #dbe71b);
  padding: 24px 28px;
  margin: 0 0 18px;
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

/* Inline "Cookie Settings" trigger — a button that has to read as a link. */
.legal-inline-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--color-dark-green, #828b08);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.legal-inline-button:hover {
  color: var(--color-black, #232323);
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 767px) {
  .legal-toc {
    padding: 22px 20px;
    margin-bottom: 40px;
  }

  .legal-toc ol {
    columns: 1;
  }

  .legal-section {
    margin-bottom: 38px;
    scroll-margin-top: 90px;
  }

  .legal-section h3 {
    font-size: 16px;
  }

  .legal-section p,
  .legal-list li {
    font-size: 15px;
    line-height: 26px;
  }

  .legal-callout {
    padding: 20px 22px;
  }
}
