/* About pages (how it works, privacy, terms, cookies, contact) and the cookie banner. */

.legal { max-width: 760px; padding-bottom: 48px; }
.legal section { margin-top: 36px; }
.legal h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.legal h3 { margin: 22px 0 6px; font-size: 1.05em; }
.legal p { margin: 0 0 12px; }
.legal ul, .legal ol { margin: 0 0 12px; padding-left: 1.3em; }
.legal li { margin-bottom: 8px; }
.legal code { font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--sand); overflow-wrap: anywhere; }
.legal a { overflow-wrap: anywhere; }

.legal-toc { margin-top: 4px; }
.legal-toc ol { margin: 0; columns: 2; column-gap: 24px; }
.legal-toc li { margin-bottom: 4px; break-inside: avoid; }
.legal-address { font-style: normal; gap: 2px; margin-bottom: 12px; }
.legal-contact h2 { margin-bottom: 6px; }
.legal-contact-address { font-size: 1.3em; font-weight: 700; }
.legal-choice { margin-top: 36px; }

.legal-table-wrap { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.legal-table th, .legal-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table tbody th code { white-space: nowrap; overflow-wrap: normal; }
.legal [id] { scroll-margin-top: 96px; }
.legal-table thead th { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }

.how-steps { list-style: none; padding: 0 !important; display: grid; gap: 16px; margin-top: 8px; }
.how-steps li { margin: 0; position: relative; padding: 20px 20px 20px 76px; }
.how-steps h2 { margin: 0; font-size: 1.35rem; }
.how-steps p { margin: 0; }
/* The how-it-works page uses the full width: steps in a row, then the extras two by two. */
.legal.how { max-width: 1200px; }
.how .page-head { max-width: 760px; }
.how-more section { padding: 22px; border-radius: var(--radius); background: var(--sand); }
.how-more section h2 { font-size: 1.35rem; }
.how-more section p:last-child { margin-bottom: 0; }
.legal .how-cta { margin-top: 32px; }
.how-step { position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: var(--green); font: 800 1.2rem/40px var(--display); text-align: center; }

/* The footer holds five links; let them wrap on narrow screens. */
.footer-inner nav { flex-wrap: wrap; gap: 10px 20px; }

/* Cookie banner: sticks to the bottom of the screen without covering the end of the page. */
.consent-banner { position: sticky; bottom: 0; z-index: 30; background: var(--surface); border-top: 2px solid var(--green); box-shadow: 0 -8px 28px rgb(23 34 28 / .16); }
.consent-inner { display: flex; flex-direction: column; gap: 12px; padding-block: 16px; }
.consent-banner h2 { font-size: 1.2rem; margin-bottom: 4px; }
.consent-banner p { margin: 0; font-size: 16px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-actions .btn { flex: 1 1 200px; min-height: 48px; }
.consent-actions .btn[aria-pressed="true"] { background: var(--green); color: var(--ground); }

@media (min-width: 860px) {
  .how-steps { grid-template-columns: repeat(3, 1fr); }
  .how-steps { gap: 24px; }
  .how-steps li { padding: 80px 26px 26px; }
  .how-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
  .how-more section { margin: 0; }
  .consent-inner { flex-direction: row; align-items: center; gap: 28px; }
  .consent-actions { flex: none; }
  .consent-actions .btn { flex: none; }
}

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