/* Slamena Buda - legal / prose pages (privacy policy).

   Loaded only by slamenabuda-legal.twig via head_extra, so the rest of the site
   does not carry it.

   A legal page is read, not scanned, so this is the one place on the site with a
   hard measure cap on body text: long lines are genuinely harder to read, and
   there is no layout here competing for the width. */

.legal {
  padding: 120px 0 100px;
  background: var(--paper);
  background-image:
    radial-gradient(58% 42% at 88% -6%, rgba(239, 210, 129, .22), transparent 64%);
  background-repeat: no-repeat;
}

.legal .section-head h1 {
  font-size: clamp(31px, 3.6vw, 46px);
  margin-top: 18px;
}

.legal-meta {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
  letter-spacing: .02em;
}

.legal-body {
  margin-top: 46px;
  max-width: 68ch;
}

.legal-body h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(21px, 2.2vw, 27px);
  font-weight: 700;
  color: var(--brown);
  margin: 44px 0 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--brown);
  margin: 26px 0 0;
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
  margin-top: 14px;
}

.legal-body ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.legal-body li {
  margin-top: 8px;
}

.legal-body li::marker {
  color: var(--straw-text);
}

.legal-body a {
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.legal-body a:hover {
  color: var(--straw-text);
}

.legal-body strong {
  color: var(--ink);
  font-weight: 600;
}

/* The identity block at the top: who the controller actually is. */
.legal-card {
  margin-top: 18px;
  padding: 22px 26px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--straw-deep);
  border-radius: var(--r);
}

.legal-card p {
  margin-top: 6px;
}

.legal-card p:first-child {
  margin-top: 0;
}

/* Table of the cookies actually set, so the page matches the consent modal. */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 14.5px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-soft);
}

.legal-table th {
  color: var(--brown);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--straw-deep);
}

.legal-table td:first-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

/* A table cannot reflow below ~520px, so let it scroll inside its own box
   rather than pushing the page sideways. */
.legal-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 900px) {
  .legal {
    padding: 88px 0 72px;
  }

  .legal-body {
    margin-top: 34px;
  }

  .legal-body h2 {
    margin-top: 36px;
  }
}

@media (max-width: 560px) {
  .legal-card {
    padding: 18px 18px;
  }

  .legal-body p,
  .legal-body li {
    font-size: 15.5px;
  }
}
