/* =========================================================
   PRACTISI LEGAL
   Developed by Cavendish Pierre-Louis
   https://cavendishpierrelouis.io
========================================================= */

:root {
  --legal-blue: #0B369A;
  --legal-terra: #C34811;

  --legal-black: #111111;
  --legal-text: #191919;

  --legal-copy: #363634;
  --legal-muted: #72726E;
  --legal-soft: #969691;

  --legal-line: #E5E5E0;
  --legal-line-strong: #D8D8D2;

  --legal-white: #FFFFFF;
  --legal-surface: #F7F7F5;

  --legal-max: 1500px;

  --legal-gutter:
    clamp(
      22px,
      4.5vw,
      72px
    );

  --legal-ease:
    cubic-bezier(
      .22,
      .61,
      .36,
      1
    );
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body.legal-page {
  margin: 0;

  min-width: 320px;

  overflow-x: clip;

  background:
    var(--legal-white);

  color:
    var(--legal-text);

  font-family:
    "Onest",
    "Helvetica Neue",
    Arial,
    sans-serif;

  -webkit-font-smoothing:
    antialiased;

  text-rendering:
    optimizeLegibility;
}


a {
  color: inherit;
}


button,
input {
  font: inherit;
}


button {
  border: 0;
}


img {
  display: block;
}


::selection {
  background:
    rgba(
      11,
      54,
      154,
      .14
    );
}


/* =========================================================
   SHELL
========================================================= */

.legal-shell {
  width:
    min(
      100%,
      var(--legal-max)
    );

  margin-inline:
    auto;

  padding-inline:
    var(--legal-gutter);
}


/* =========================================================
   MAIN
========================================================= */

.legal-main {
  width: 100%;

  padding-top:
    var(--header-h);

  background:
    var(--legal-white);
}


/* =========================================================
   HERO
========================================================= */

.legal-hero {
  position: relative;

  isolation: isolate;

  overflow: hidden;

  min-height:
    clamp(
      350px,
      31vw,
      450px
    );

  background:
    var(--legal-terra);

  color:
    var(--legal-white);
}


/* =========================================================
   HERO IMAGE
========================================================= */

.legal-hero::before {
  content: "";

  position: absolute;

  inset: 0;

  z-index: 0;

  background-image:
    linear-gradient(
      90deg,
      rgba(195, 72, 17, .98) 0%,
      rgba(195, 72, 17, .96) 28%,
      rgba(195, 72, 17, .82) 47%,
      rgba(195, 72, 17, .34) 67%,
      rgba(195, 72, 17, .08) 84%,
      rgba(195, 72, 17, 0) 100%
    ),
    url("../../assets/images/legal-hero.PNG");

  background-repeat:
    no-repeat;

  background-position:
    center,
    center right;

  background-size:
    cover,
    cover;

  pointer-events: none;
}



/* =========================================================
   HERO BOTTOM CURVE
========================================================= */

.legal-hero::after {
  content: "";

  position: absolute;

  left: -5%;
  right: -5%;

  bottom: -31px;

  z-index: 1;

  height: 56px;

  background:
    var(--legal-white);

  border-radius:
    50%
    50%
    0
    0
    /
    100%
    100%
    0
    0;

  pointer-events: none;
}


/* =========================================================
   HERO INNER
========================================================= */

.legal-hero-inner {
  position: relative;

  z-index: 2;

  min-height:
    clamp(
      350px,
      31vw,
      450px
    );

  padding-top:
    clamp(
      72px,
      7vw,
      106px
    );

  padding-bottom:
    clamp(
      76px,
      7vw,
      108px
    );

  display: flex;

  align-items: center;
}


/* =========================================================
   HERO COPY
========================================================= */

.legal-hero-copy {
  width:
    min(
      100%,
      720px
    );
}


.legal-hero-copy h1 {
  margin: 0;

  max-width: 760px;

  color:
    #FFFFFF;

  font-size:
    clamp(
      42px,
      5vw,
      68px
    );

  line-height: .98;

  letter-spacing:
    -.048em;

  font-weight: 500;

  text-wrap: balance;
}


.legal-hero-copy p {
  margin:
    24px
    0
    0;

  max-width: 620px;

  color:
    rgba(
      255,
      255,
      255,
      .84
    );

  font-size:
    clamp(
      15px,
      1.15vw,
      18px
    );

  line-height: 1.62;

  letter-spacing:
    -.012em;

  font-weight: 400;

  text-wrap: pretty;
}


/* =========================================================
   COPY MENU
========================================================= */

.legal-copy-menu {
  position: absolute;

  top:
    clamp(
      25px,
      2.7vw,
      38px
    );

  right:
    var(--legal-gutter);

  z-index: 30;
}


.legal-copy-menu[open] {
  z-index: 999999 !important;
}


.legal-copy-menu summary {
  list-style: none;
}


.legal-copy-menu summary::-webkit-details-marker {
  display: none;
}


/* =========================================================
   COPY TRIGGER
========================================================= */

.legal-copy-trigger {
  min-height: 40px;

  padding:
    0
    14px;

  display: inline-flex;

  align-items: center;

  gap: 10px;

  border-radius: 4px;

  background:
    var(--legal-white);

  color:
    var(--legal-blue);

  font-size: 11px;

  line-height: 1;

  font-weight: 550;

  cursor: pointer;

  transition:
    background-color
    160ms
    ease;
}


.legal-copy-trigger > img {
  flex: 0 0 15px;

  width: 15px;

  height: 15px;

  object-fit: contain;
}


.legal-copy-trigger:hover,
.legal-copy-trigger:focus-visible,
.legal-copy-menu[open]
.legal-copy-trigger {
  background:
    #F1F1EE;

  outline: none;
}


/* =========================================================
   COPY CHEVRON
========================================================= */

.legal-copy-chevron {
  width: 7px;
  height: 7px;

  border-right:
    1px
    solid
    currentColor;

  border-bottom:
    1px
    solid
    currentColor;

  transform:
    translateY(-2px)
    rotate(45deg);

  transition:
    transform
    180ms
    var(--legal-ease);
}


.legal-copy-menu[open]
.legal-copy-chevron {
  transform:
    translateY(2px)
    rotate(225deg);
}


/* =========================================================
   COPY DROPDOWN
========================================================= */

.legal-copy-dropdown {
  position: absolute;

  top:
    calc(
      100%
      +
      10px
    );

  right: 0;

  z-index: 999999 !important;

  width:
    min(
      340px,
      calc(
        100vw
        -
        32px
      )
    );

  padding: 6px;

  display: grid;

  gap: 2px;

  border:
    1px
    solid
    rgba(
      17,
      17,
      17,
      .07
    );

  border-radius: 6px;

  background:
    var(--legal-white);

  color:
    var(--legal-text);

  box-shadow:
    0
    18px
    54px
    rgba(
      0,
      0,
      0,
      .12
    );
}


/* =========================================================
   COPY ACTION
========================================================= */

.legal-copy-action {
  width: 100%;

  min-height: 56px;

  padding:
    9px
    10px;

  display: grid;

  grid-template-columns:
    21px
    minmax(
      0,
      1fr
    );

  gap: 11px;

  align-items: center;

  border-radius: 4px;

  background:
    transparent;

  color:
    var(--legal-text);

  text-align: left;

  text-decoration: none;

  cursor: pointer;

  transition:
    background-color
    150ms
    ease;
}


.legal-copy-action:hover,
.legal-copy-action:focus-visible {
  background:
    var(--legal-surface);

  outline: none;
}


.legal-copy-action > img {
  width: 18px;
  height: 18px;

  object-fit: contain;

  justify-self: center;

  filter:
    brightness(0)
    saturate(100%);
}


.legal-copy-action > span {
  min-width: 0;

  display: grid;

  gap: 2px;
}


.legal-copy-action strong {
  font-size: 12px;

  line-height: 1.25;

  font-weight: 600;
}


.legal-copy-action small {
  color:
    var(--legal-muted);

  font-size: 10px;

  line-height: 1.35;
}


/* =========================================================
   COPY TOAST
========================================================= */

.legal-copy-toast {
  position: absolute;

  right:
    var(--legal-gutter);

  bottom: 28px;

  z-index: 40;

  min-height: 32px;

  padding:
    0
    11px;

  display: none;

  align-items: center;

  border-radius: 4px;

  background:
    var(--legal-white);

  color:
    var(--legal-text);

  font-size: 10px;
}


.legal-copy-toast.is-visible {
  display: inline-flex;
}


/* =========================================================
   READING PROGRESS
========================================================= */

.legal-reading-progress {
  position: sticky;

  top:
    var(--header-h);

  z-index: 60;

  width: 100%;

  height: 12px;

  display: flex;

  align-items: center;

  background:
    rgba(
      255,
      255,
      255,
      .98
    );

  opacity: 0;

  visibility: hidden;

  transform:
    translateY(-4px);

  pointer-events: none;

  transition:
    opacity
    220ms
    ease,
    transform
    260ms
    var(--legal-ease),
    visibility
    0s
    linear
    260ms;
}

.legal-reading-progress.is-visible {
  opacity: 1;

  visibility: visible;

  transform:
    translateY(0);

  transition:
    opacity
    220ms
    ease,
    transform
    260ms
    var(--legal-ease),
    visibility
    0s;
}



/* =========================================================
   SEGMENTED TRACK
========================================================= */

.legal-reading-progress-track {
  position: relative;

  width: 100%;
  height: 1px;

  overflow: hidden;

  background:
    repeating-linear-gradient(
      90deg,
      #D7D7D2 0,
      #D7D7D2 14px,
      transparent 14px,
      transparent 23px
    );
}



/* =========================================================
   SEGMENTED ACTIVE LINE
========================================================= */

.legal-reading-progress-fill {
  position: absolute;

  top: 0;
  left: 0;

  width: 0%;
  height: 1px;

  background:
    repeating-linear-gradient(
      90deg,
      var(--legal-terra) 0,
      var(--legal-terra) 14px,
      transparent 14px,
      transparent 23px
    );

  transition:
    width
    80ms
    linear;
}


/* =========================================================
   DOCUMENT LAYOUT
========================================================= */

.legal-layout {
  padding-top:
    clamp(
      64px,
      6.4vw,
      92px
    );

  padding-bottom:
    clamp(
      120px,
      12vw,
      190px
    );

  display: grid;

  grid-template-columns:
    minmax(
      180px,
      220px
    )
    minmax(
      0,
      720px
    )
    minmax(
      180px,
      238px
    );

  column-gap:
    clamp(
      38px,
      4.8vw,
      74px
    );

  align-items: start;

  justify-content: center;
}


/* =========================================================
   LEFT SIDEBAR
========================================================= */

.legal-sidebar {
  position: sticky;

  top:
    calc(
      var(--header-h)
      +
      48px
    );

  align-self: start;

  min-width: 0;
}


/* =========================================================
   DOCUMENT NAVIGATION
========================================================= */

.legal-sidebar-nav {
  display: grid;

  gap: 3px;
}


.legal-sidebar-nav a {
  width: 100%;

  min-height: 38px;

  padding:
    8px
    0;

  display: grid;

  grid-template-columns:
    18px
    minmax(
      0,
      1fr
    );

  gap: 10px;

  align-items: start;

  color:
    var(--legal-soft);

  font-size: 12px;

  line-height: 1.45;

  letter-spacing:
    -.01em;

  font-weight: 450;

  text-decoration: none;

  transition:
    color
    160ms
    ease,
    transform
    180ms
    var(--legal-ease);
}


.legal-sidebar-nav a:hover,
.legal-sidebar-nav a:focus-visible {
  color:
    var(--legal-text);

  transform:
    translateX(2px);

  outline: none;
}


.legal-sidebar-nav a.is-active {
  color:
    var(--legal-text);

  font-weight: 600;

  transform: none;
}


/* =========================================================
   DOCUMENT ICON
   Replace changethisicon.svg whenever ready.
========================================================= */

.legal-document-icon {
  width: 15px;
  height: 15px;

  margin-top: 1px;

  display: block;

  object-fit: contain;

  opacity: .52;

  transition:
    opacity
    160ms
    ease;
}


.legal-sidebar-nav a:hover .legal-document-icon,
.legal-sidebar-nav a:focus-visible .legal-document-icon,
.legal-sidebar-nav a.is-active .legal-document-icon {
  opacity: 1;
}


.legal-sidebar-nav a[data-legal-link="california"] .legal-document-icon {
  opacity: 1;
}


/* =========================================================
   READER
========================================================= */

.legal-reader {
  width: 100%;

  max-width: 720px;

  min-width: 0;

  outline: none;
}


/* =========================================================
   DOCUMENT
========================================================= */

.legal-document {
  width: 100%;

  counter-reset:
    legal-chapter;
}


.legal-document[hidden] {
  display: none;
}


/* =========================================================
   INTRO
   NOT A CARD ANYMORE.
========================================================= */

.legal-intro-card {
  margin:
    0
    0
    34px;

  padding:
    0
    0
    28px;

  border-bottom:
    1px
    solid
    var(--legal-line);

  background:
    transparent;
}


.legal-intro-card p {
  margin: 0;

  max-width: 64ch;

  color:
    var(--legal-text);

  font-size: 16.5px;

  line-height: 1.7;

  letter-spacing:
    -.01em;

  font-weight: 450;

  text-wrap: pretty;
}



/* =========================================================
   OVERVIEW
========================================================= */

.legal-overview {
  margin-bottom:
    clamp(
      68px,
      6vw,
      88px
    );

  padding-bottom:
    clamp(
      26px,
      3vw,
      38px
    );

  border-bottom:
    1px
    solid
    var(--legal-line);
}


/* =========================================================
   CHAPTERS
========================================================= */

.legal-chapter {
  counter-increment:
    legal-chapter;

  counter-reset:
    legal-subchapter;

  scroll-margin-top:
    calc(
      var(--header-h)
      +
      54px
    );
}


.legal-chapter
+
.legal-chapter {
  margin-top:
    clamp(
      72px,
      6.5vw,
      96px
    );
}


/* =========================================================
   CHAPTER TITLES
   NORMAL LEGAL-DOCUMENT SCALE.
========================================================= */

.legal-chapter > h2 {
  margin:
    0
    0
    20px;

  max-width: 640px;

  color:
    var(--legal-text);

  font-size:
    20px;

  line-height: 1.35;

  letter-spacing:
    -.018em;

  font-weight: 600;

  text-wrap: pretty;
}


.legal-chapter > h2::before {
  content:
    counter(legal-chapter)
    ". ";

  color:
    var(--legal-soft);

  font-size: 13px;

  line-height: 1;

  font-variant-numeric:
    tabular-nums;

  font-weight: 500;

  vertical-align: 2px;

  margin-right: 4px;
}



/* =========================================================
   SUBHEADINGS
========================================================= */

.legal-chapter > h3 {
  counter-increment:
    legal-subchapter;

  margin:
    36px
    0
    12px;

  max-width: 620px;

  color:
    var(--legal-text);

  font-size: 16px;

  line-height: 1.45;

  letter-spacing:
    -.012em;

  font-weight: 600;

  text-wrap: pretty;
}




.legal-chapter > h3::before {
  content:
    counter(legal-chapter)
    "."
    counter(legal-subchapter)
    " ";

  color:
    var(--legal-soft);

  font-size: 11px;

  line-height: 1;

  font-variant-numeric:
    tabular-nums;

  font-weight: 500;

  vertical-align: 1px;

  margin-right: 3px;
}



/* =========================================================
   BODY COPY
========================================================= */

.legal-document p {
  width: 100%;

  max-width: 64ch;

  margin:
    0
    0
    1.15em;

  color:
    #3A3A37;

  font-size: 15.5px;

  line-height: 1.74;

  letter-spacing:
    -.006em;

  font-weight: 400;

  text-wrap: pretty;
}



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


/* =========================================================
   LISTS
========================================================= */

.legal-document ul,
.legal-document ol {
  max-width: 62ch;

  margin:
    22px
    0
    28px;

  padding-left: 22px;

  color:
    var(--legal-copy);

  font-size:
    clamp(
      15.5px,
      1.08vw,
      17px
    );

  line-height: 1.72;

  letter-spacing:
    -.009em;
}


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


/* =========================================================
   INLINE LINKS
========================================================= */

.legal-document p a {
  color:
    var(--legal-blue);

  text-decoration:
    underline;

  text-decoration-thickness:
    1px;

  text-underline-offset:
    3px;

  transition:
    color
    150ms
    ease;
}


.legal-document p a:hover,
.legal-document p a:focus-visible {
  color:
    var(--legal-muted);

  outline: none;
}


/* =========================================================
   RIGHT — ON THIS PAGE
========================================================= */

.legal-on-page {
  position: sticky;

  top:
    calc(
      var(--header-h)
      +
      48px
    );

  align-self: start;

  min-width: 0;
}


.legal-on-page-inner {
  width: 100%;
}


/* =========================================================
   ON THIS PAGE HEADING
========================================================= */

.legal-on-page-heading {
  margin-bottom: 20px;

  display: flex;

  align-items: center;

  gap: 9px;

  color:
    var(--legal-text);

  font-size: 12px;

  line-height: 1;

  font-weight: 600;
}


/* =========================================================
   INDENT ICON
========================================================= */

.legal-on-page-icon {
  width: 16px;
  height: 16px;

  flex:
    0
    0
    16px;

  object-fit: contain;

  transition:
    filter
    160ms
    ease;
}


.legal-on-page-heading:hover .legal-on-page-icon,
.legal-mobile-toc summary:hover .legal-on-page-icon,
.legal-mobile-toc summary:focus-visible .legal-on-page-icon {
  filter: brightness(0) saturate(100%) invert(20%) sepia(89%) saturate(2356%) hue-rotate(218deg) brightness(78%) contrast(104%);
}


/* =========================================================
   ON THIS PAGE NAV
========================================================= */

.legal-on-page-nav {
  position: relative;

  max-height:
    calc(
      100vh
      -
      var(--header-h)
      -
      112px
    );

  overflow-y: auto;

  padding:
    0
    8px
    4px
    0;

  scrollbar-width: none;
}


.legal-on-page-nav::-webkit-scrollbar {
  display: none;
}


.legal-on-page-link {
  position: relative;

  width: 100%;

  padding:
    6px
    0;

  display: grid;

  grid-template-columns:
    24px
    minmax(
      0,
      1fr
    );

  gap: 8px;

  color:
    var(--legal-soft);

  font-size: 11px;

  line-height: 1.42;

  letter-spacing:
    -.008em;

  text-decoration: none;

  transition:
    color
    150ms
    ease;
}


.legal-on-page-number {
  color:
    currentColor;

  font-variant-numeric:
    tabular-nums;

  font-size: 10px;
}


.legal-on-page-title {
  min-width: 0;
}


.legal-on-page-link:hover,
.legal-on-page-link:focus-visible {
  color:
    var(--legal-text);

  outline: none;
}


.legal-on-page-link.is-active {
  color:
    var(--legal-blue);

  font-weight: 550;
}


/* =========================================================
   ACTIVE READING INDICATOR
========================================================= */

.legal-on-page-link::before {
  content: "";

  position: absolute;

  left: -13px;
  top: 10px;

  width: 2px;
  height: 12px;

  border-radius: 10px;

  background:
    transparent;

  transition:
    background-color
    150ms
    ease;
}


.legal-on-page-link.is-active::before {
  background:
    var(--legal-blue);
}


/* =========================================================
   MOBILE TOC
========================================================= */

.legal-mobile-toc {
  display: none;

  margin:
    0
    0
    52px;

  border-top:
    1px
    solid
    var(--legal-line);

  border-bottom:
    1px
    solid
    var(--legal-line);
}


@media (max-width: 760px) {
  /* The compact mobile control intentionally has no surrounding dividers. */
  .legal-mobile-toc {
    position: relative;

    border-top: 0;
    border-bottom: 0;
  }

  .legal-mobile-toc::before,
  .legal-mobile-toc::after {
    content: none;

    position: absolute;

    right: 0;
    left: 0;

    z-index: 2;

    height: 1px;

    background: var(--legal-line);

    pointer-events: none;
  }

  .legal-mobile-toc::before {
    top: 0;
  }

  .legal-mobile-toc::after {
    bottom: 0;
  }
}


.legal-mobile-toc summary {
  min-height: 52px;

  display: grid;

  grid-template-columns:
    17px
    minmax(
      0,
      1fr
    )
    12px;

  gap: 10px;

  align-items: center;

  list-style: none;

  color:
    var(--legal-text);

  font-size: 12px;

  font-weight: 600;

  cursor: pointer;
}


.legal-mobile-toc summary::-webkit-details-marker {
  display: none;
}


.legal-mobile-toc-chevron {
  width: 7px;
  height: 7px;

  border-right:
    1px
    solid
    currentColor;

  border-bottom:
    1px
    solid
    currentColor;

  transform:
    translateY(-2px)
    rotate(45deg);

  transition:
    transform
    180ms
    var(--legal-ease);
}


.legal-mobile-toc[open]
.legal-mobile-toc-chevron {
  transform:
    translateY(2px)
    rotate(225deg);
}


.legal-mobile-toc-nav {
  padding:
    0
    0
    18px;
}


.legal-mobile-toc-nav
.legal-on-page-link {
  padding:
    7px
    0;
}


/* =========================================================
   PAGE ACTIONS
========================================================= */

.legal-page-actions {
  margin-top:
    clamp(
      80px,
      8vw,
      110px
    );

  padding-top: 34px;

  border-top:
    1px
    solid
    var(--legal-line);

  background:
    transparent;
}


.legal-page-actions-inner {
  display: flex;

  align-items: center;

  gap:
    clamp(
      28px,
      4vw,
      50px
    );
}


.legal-page-actions button {
  min-height: 46px;

  padding: 0;

  display: inline-flex;

  align-items: center;

  gap: 11px;

  background:
    transparent;

  color:
    var(--legal-text);

  font-size: 11px;

  line-height: 1;

  font-weight: 600;

  cursor: pointer;

  transition:
    color
    150ms
    ease;
}


.legal-page-action-icon {
  width: 34px;
  height: 34px;

  display: grid;

  place-items: center;

  background:
    transparent;
}


.legal-page-action-icon img {
  width: 18px;
  height: 18px;

  object-fit: contain;

  transition:
    filter
    150ms
    ease;
}


.legal-page-actions button:hover,
.legal-page-actions button:focus-visible {
  color:
    var(--legal-blue);

  outline: none;
}


.legal-page-action-status {
  color:
    var(--legal-muted);

  font-size: 11px;
}


/* =========================================================
   PLAIN MARKDOWN
========================================================= */

body.legal-plain-page {
  margin: 0;

  background:
    var(--legal-white);

  color:
    var(--legal-text);
}


.legal-plain {
  width:
    min(
      calc(
        100%
        -
        40px
      ),
      880px
    );

  margin-inline:
    auto;

  padding:
    64px
    0
    100px;

  white-space:
    pre-wrap;

  font:
    14px
    /
    1.75
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
}


/* =========================================================
   1180
========================================================= */

@media (max-width: 1180px) {

  .legal-layout {
    grid-template-columns:
      minmax(
        170px,
        210px
      )
      minmax(
        0,
        720px
      );

    column-gap:
      clamp(
        38px,
        6vw,
        70px
      );
  }


  .legal-on-page {
    display: none;
  }


  .legal-mobile-toc {
    display: block;
  }

}


/* =========================================================
   860
========================================================= */

@media (max-width: 860px) {

  .legal-layout {
    grid-template-columns:
      1fr;

    padding-top: 0;
  }


  .legal-sidebar {
    position: sticky;

    top:
      calc(
        var(--header-h)
        +
        16px
      );

    z-index: 45;

    width:
      calc(
        100%
        +
        var(--legal-gutter)
        +
        var(--legal-gutter)
      );

    margin-left:
      calc(
        var(--legal-gutter)
        *
        -1
      );

    margin-bottom: 0;

    padding:
      11px
      var(--legal-gutter);

    background:
      rgba(
        255,
        255,
        255,
        .96
      );

    border-bottom:
      1px
      solid
      rgba(
        17,
        17,
        17,
        .06
      );

    backdrop-filter:
      blur(12px);

    -webkit-backdrop-filter:
      blur(12px);
  }


  .legal-sidebar-nav {
    display: flex;

    align-items: center;

    gap: 26px;

    overflow-x: auto;

    scrollbar-width: none;

    -webkit-overflow-scrolling:
      touch;
  }


  .legal-sidebar-nav::-webkit-scrollbar {
    display: none;
  }


  .legal-sidebar-nav a {
    width: max-content;

    flex:
      0
      0
      auto;

    grid-template-columns:
      15px
      max-content;

    min-height: 36px;

    white-space: nowrap;
  }


  .legal-reader {
    max-width: 720px;

    margin-inline:
      auto;

    padding-top:
      clamp(
        64px,
        8vw,
        90px
      );
  }

}


/* =========================================================
   700
========================================================= */

@media (max-width: 700px) {

  .legal-hero {
    min-height: 370px;
  }


  .legal-hero-inner {
    min-height: 370px;

    padding-top: 100px;

    padding-bottom: 72px;
  }


  .legal-hero-copy h1 {
    max-width: 560px;

    font-size:
      clamp(
        40px,
        10vw,
        54px
      );
  }


  .legal-hero-copy p {
    max-width: 540px;

    font-size: 15px;
  }


  .legal-copy-menu {
    top: 24px;
  }


  .legal-chapter
  +
  .legal-chapter {
    margin-top: 70px;
  }


  .legal-chapter > h2 {
    margin-bottom: 22px;

    font-size:
      clamp(
        22px,
        6vw,
        27px
      );
  }


  .legal-chapter > h3 {
    margin-top: 38px;
  }

}


/* =========================================================
   520
========================================================= */

@media (max-width: 520px) {

  .legal-hero {
    min-height: 350px;
  }


  .legal-hero-inner {
    min-height: 350px;

    padding-top: 96px;

    padding-bottom: 66px;
  }


  .legal-copy-trigger {
    min-height: 38px;

    padding:
      0
      12px;
  }


  .legal-copy-dropdown {
    right:
      calc(
        var(--legal-gutter)
        *
        -.15
      );
  }


  .legal-reader {
    padding-top: 56px;
  }


  .legal-mobile-toc {
    margin-bottom: 44px;
  }


  .legal-intro-card {
    padding-bottom: 24px;

    margin-bottom: 28px;
  }


  .legal-intro-card p {
    font-size: 17px;
  }


  .legal-document p,
  .legal-document ul,
  .legal-document ol {
    font-size: 15.5px;

    line-height: 1.74;
  }


  .legal-page-actions-inner {
    align-items: flex-start;

    flex-direction: column;

    gap: 12px;
  }

}


/* =========================================================
   PRINT
========================================================= */

@media print {

  .site-header,
  .mobile-menu,
  .legal-hero,
  .legal-reading-progress,
  .legal-sidebar,
  .legal-on-page,
  .legal-mobile-toc,
  .legal-page-actions,
  .site-footer,
  .privacy-control {
    display:
      none
      !important;
  }


  .legal-main {
    padding-top: 0;
  }


  .legal-layout {
    display: block;

    width: 100%;

    max-width: none;

    padding: 0;
  }


  .legal-reader,
  .legal-document {
    width: 100%;

    max-width: none;
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }


  *,
  *::before,
  *::after {
    animation-duration:
      .01ms
      !important;

    transition-duration:
      .01ms
      !important;
  }

}
