/* Bifolium legal pages: a Paper reading page in the Fold family. One crease, serif headings, sans body. */

:root {
  --paper-bg: #FCFBF8;
  --paper-ink: #201E1B;
  --paper-secondary: #68625A;
  --paper-link: #175C9E;
  --rule: rgba(104, 98, 90, 0.28);
  --crease: #63B3FF;
  --serif: Charter, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper-bg);
  color: var(--paper-ink);
  font: 17px/1.6 var(--sans);
}
a { color: var(--paper-link); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:focus-visible, .skip:focus-visible { outline: 2px solid var(--paper-link); outline-offset: 2px; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 3; padding: 8px 12px; background: var(--paper-bg); font-size: 15px; }
.skip:focus { top: 16px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; }
.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; font: 400 22px/1 var(--serif); color: var(--paper-ink); text-decoration: none; }
.brand img { width: 28px; height: 28px; display: block; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper-secondary); text-decoration: none; }
.top nav a[aria-current="page"] { color: var(--paper-ink); text-decoration: underline; text-underline-offset: 0.3em; }

/* Title block */
.title { padding: 40px 0 36px; border-bottom: 3px solid var(--crease); }
.title h1 { font: 400 clamp(40px, 5.4vw, 64px)/1.02 var(--serif); letter-spacing: -0.02em; margin: 0 0 18px; }
.title .lede { font-size: 19px; max-width: 60ch; margin: 0 0 16px; color: var(--paper-ink); }
.title .meta { font-size: 14px; color: var(--paper-secondary); margin: 0; }
.title .notice { margin: 18px 0 0; padding: 12px 16px; font-size: 15px; background: rgba(99, 179, 255, 0.12); border-left: 3px solid var(--crease); max-width: 70ch; }

/* Rail + copy */
.layout { display: grid; grid-template-columns: 196px minmax(0, 700px); gap: clamp(36px, 5vw, 64px); padding: 44px 0 96px; align-items: start; }
.contents { position: sticky; top: 24px; max-height: calc(100svh - 48px); overflow-y: auto; }
.contents h2 { margin: 0 0 12px; font: 400 14px/1.3 var(--sans); color: var(--paper-secondary); }
.contents ol { list-style: none; margin: 0; padding: 0; }
.contents a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 15px; line-height: 1.35; color: var(--paper-secondary); text-decoration: none; }
.contents a:hover { color: var(--paper-link); }

.copy { min-width: 0; overflow-wrap: anywhere; }
.copy section + section { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--rule); }
.copy h2 { font: 400 30px/1.15 var(--serif); letter-spacing: -0.015em; margin: 0 0 16px; }
.copy h3 { font: 600 17px/1.4 var(--sans); margin: 26px 0 8px; }
.copy p { margin: 0 0 14px; max-width: 70ch; }
.copy ul, .copy ol { margin: 0 0 14px; padding-left: 22px; max-width: 68ch; }
.copy li { margin-bottom: 8px; }
.copy li::marker { color: var(--paper-secondary); }
.copy table { border-collapse: collapse; width: 100%; max-width: 70ch; margin: 8px 0 18px; font-size: 15px; line-height: 1.45; }
.copy th, .copy td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.copy th { font-weight: 600; color: var(--paper-ink); }
.copy .small { font-size: 14px; color: var(--paper-secondary); }
.copy address { font-style: normal; }
.copy strong { font-weight: 600; }

/* Footer */
.foot { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0 56px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--paper-secondary); }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.foot > span { align-self: center; }
.copy code { font-size: 0.9em; }
.copy section { scroll-margin-top: 24px; }
.review-note { border-left: 3px solid var(--crease); padding-left: 16px; }

/* The short contact page shares the legal pages' Paper surface. */
.contact-page { display: flex; flex-direction: column; min-height: 100svh; }
.contact-page > .wrap { width: 100%; }
.contact-page main { flex: 1; padding-bottom: 64px; }
.contact-page .lede a { display: inline-flex; align-items: center; min-height: 44px; }


@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 28px; padding: 28px 0 72px; }
  .contents { position: static; max-height: none; overflow: visible; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
  .contents ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .copy h2 { font-size: 27px; }
  .title h1 { font-size: clamp(34px, 9vw, 44px); }
}
@media (max-width: 480px) {
  .top { gap: 16px; }
  .title { padding-top: 28px; }
  .foot { flex-direction: column; }
}
@media print {
  .top, .contents, .foot, .skip { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .layout { display: block; }
  .copy p, .copy ul, .copy ol, .copy table { max-width: none; }
  .copy h2, .copy h3 { break-after: avoid; }
  .wrap { max-width: none; padding: 0; }
  a { color: #000; }
}

@media screen and (max-width: 359px) { .contents ol { grid-template-columns: 1fr; } }
