/* Legal pages (terms, privacy): larger, higher-contrast reading layout.
   Loaded only by the three legal pages, after style.css, and scoped to
   main.legal so it cannot affect the rest of the site. Tokens come from
   style.css :root. Mobile first: single column, two columns from 992px. */
.breadcumb-wrapper { padding: 80px 0; }
.breadcumb-wrapper .breadcumb-title { font-size: 2rem; line-height: 1.25; }
.breadcumb-wrapper .breadcumb-menu li { font-size: 1.0625rem; }

main.legal {
  --legal-text: #262626;
  --legal-muted: #4a4a4a;
  --legal-radius: 12px;
  background: var(--white-color);
  padding: 48px 0 64px;
  /* The site body font (RecklessNeue) only ships a Light weight, which reads thin
     in long text. Roboto and Barlow are already loaded by these pages. */
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 400;
}
.legal p, .legal li, .legal a, .legal strong { font-family: "Roboto", system-ui, sans-serif; }
.legal h4, .legal h5 { font-family: "Barlow", "Roboto", sans-serif; font-weight: 700; }
.legal .widget a, .legal .sub-title { font-family: "Roboto", system-ui, sans-serif; font-weight: 500; }
.legal .title-area { margin-bottom: 24px; }
.legal .title-area .sub-title { font-size: 1.125rem; }

/* Body copy */
.legal p, .legal li {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--legal-text);
}
.legal p { margin-bottom: 1.1em; }
.legal ol, .legal ul { padding-left: 1.4em; margin-bottom: 1.2em; }
.legal li { margin-bottom: .45em; }
.legal strong { color: var(--title-color); }
.legal a { color: var(--theme-color2); text-decoration: underline; text-underline-offset: 3px; }
.legal a:focus-visible { outline: 3px solid var(--theme-color); outline-offset: 3px; border-radius: 3px; }
.legal table { display: block; overflow-x: auto; max-width: 100%; }

/* Section headings: one h5 per clause */
.legal h5 {
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--title-color);
  margin: 2.2em 0 .7em;
  padding-left: 16px;
  border-left: 5px solid var(--theme-color);
  scroll-margin-top: 110px;
}
.legal h4 { font-size: 1.375rem; color: var(--title-color); }

/* Layout: reset bootstrap .row, stack on mobile */
.legal .row { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; gap: 0; }
.legal .row > * { width: auto; max-width: none; padding: 0; margin-top: 0; }

/* Table of contents card */
.legal .widget {
  background: var(--smoke-color);
  border: 1px solid var(--th-border-color);
  border-radius: var(--legal-radius);
  padding: 20px 20px 8px !important;
  margin-bottom: 32px;
}
.legal .widget h4 { margin-bottom: 12px; }
.legal .widget ol { padding-left: 1.3em; }
.legal .widget a {
  display: inline-block;
  min-height: 44px;
  padding: 10px 0;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--title-color);
  text-decoration: none;
}
.legal .widget a:hover { color: var(--theme-color2); text-decoration: underline; }

@media (min-width: 992px) {
  main.legal { padding: 72px 0 96px; }
  .legal .row { grid-template-columns: 320px minmax(0, 1fr); column-gap: 56px; }
  .legal .row > * { grid-column: 2; }
  .legal .row > .widget {
    grid-column: 1;
    grid-row: 1 / span 99;
    align-self: start;
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }
  .breadcumb-wrapper .breadcumb-title { font-size: 2.75rem; }
}
@media (min-width: 1200px) {
  .legal p, .legal li { font-size: 1.1875rem; }
  .legal h5 { font-size: 1.625rem; }
}
