/* Self-contained stylesheet for the Jemly legal pages under website/V2/legal/.
   Base rules adapted from website/jemly/styles.css; layout rules from website/jemly/legal.css.
   Keep in sync with those files when the legal content is regenerated. */

:root {
  --paper: #fff;
  --ink: #000;
  --muted: #000;
  --line: #e6e6e6;
  --olive: #000;
  --lilac: #c5b0f4;
  --sans:
    Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 330 18px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #000;
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-weight: 340;
  line-height: 1.15;
  letter-spacing: -1.7px;
  text-wrap: balance;
}
h3 {
  font-weight: 540;
}
::selection {
  background: var(--lilac);
}
.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: black;
  color: white;
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
.header {
  height: 88px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  gap: 40px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1;
}
.brand img {
  border-radius: 10px;
  display: block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .22), 0 1px 2px rgba(0, 0, 0, .14);
}
.nav-contact {
  border: 1px solid black;
  border-radius: 50px;
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 10px 20px;
  font-size: 15px;
  min-height: 46px;
}
.nav-contact:hover {
  background: #f7f7f5;
}
.eyebrow {
  font: 400 12px/1.5 var(--mono);
  letter-spacing: 0.6px;
}
.footer-bottom {
  border-top: 1px solid black;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 4% 32px;
  font: 11px var(--mono);
}
.footer-bottom a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* legal document layout */
.legal-page .header {
  max-width: 1280px;
}
.legal-layout {
  max-width: 1250px;
  margin: 0 auto;
  padding: 75px 5%;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 65px;
}
.legal-sidebar {
  position: sticky;
  top: 30px;
  align-self: start;
}
.legal-sidebar a {
  display: block;
  font-size: 12px;
  padding: 10px 0;
}
.legal-sidebar .eyebrow {
  margin-bottom: 18px;
}
.legal-sidebar a[aria-current] {
  font-weight: 600;
  color: var(--olive);
}
.legal-body {
  min-width: 0;
}
.legal-body h1 {
  font-size: 36px;
  margin: 20px 0 28px;
}
.legal-body h2 {
  font-family: var(--sans);
  font-size: 22px;
  margin: 42px 0 18px;
  line-height: 1.6;
}
.legal-body h3 {
  font-size: 18px;
  margin: 24px 0 14px;
}
.legal-body p,
.legal-body li {
  font-size: 14px;
  line-height: 2;
  overflow-wrap: anywhere;
}
.legal-body p {
  margin: 15px 0;
}
.legal-body blockquote {
  border-left: 2px solid var(--olive);
  margin: 24px 0;
  padding: 5px 22px;
  background: #ebe8dd;
}
.legal-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}
.legal-body a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.legal-body code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.legal-table {
  overflow: auto;
}
.legal-body table {
  border-collapse: collapse;
  font-size: 12px;
  width: 100%;
}
.legal-body td,
.legal-body th {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  min-width: 90px;
}
.draft-banner {
  border: 1px solid #d5c4a6;
  background: #eee4d2;
  padding: 18px;
  font-size: 12px;
}

@media (max-width: 700px) {
  .legal-layout {
    display: block;
    padding: 35px 7%;
  }
  .legal-sidebar {
    position: static;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
    margin-bottom: 30px;
  }
  .legal-sidebar a {
    display: inline-block;
    margin-right: 16px;
  }
}
