.lj-legal {
  color: #6b5a42;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.lj-legal > :first-child { margin-top: 0; }
.lj-legal > :last-child { margin-bottom: 0; }
.lj-legal > [tabindex="-1"]:focus { outline: none; }
.lj-legal p { margin: 0 0 1rem; }
.lj-legal strong { color: var(--walnut, #755D3B); font-weight: 600; }
.lj-legal em { font-style: italic; }
.lj-legal a { color: var(--walnut, #755D3B); text-decoration: underline; text-underline-offset: 3px; }
.lj-legal a:hover { color: var(--walnut-deep, #5A4529); }

.lj-legal h2,
.lj-legal h3,
.lj-legal h4,
.lj-legal h5,
.lj-legal h6 {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  color: var(--walnut, #755D3B);
  line-height: 1.35;
}

.lj-legal h2 { margin: 2.75rem 0 1rem; font-size: 1.6rem; font-weight: 400; }
.lj-legal h3 { margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid #e8d4c1; font-size: 1.35rem; font-weight: 400; }
.lj-legal h4 { margin: 1.5rem 0 0.75rem; font-size: 1.1rem; font-weight: 500; }
.lj-legal h5,
.lj-legal h6 { margin: 1.25rem 0 0.5rem; font-size: 1rem; font-weight: 600; }

.lj-legal ul,
.lj-legal ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.lj-legal ul { list-style: disc; }
.lj-legal ol { list-style: decimal; }
.lj-legal li > ul { list-style: circle; }
.lj-legal li { margin-bottom: 0.5rem; }
.lj-legal li > ul,
.lj-legal li > ol { margin: 0.5rem 0 0; }

.lj-legal blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--walnut, #755D3B);
  border-radius: 0 10px 10px 0;
  background: rgba(117, 93, 59, 0.06);
}

.lj-legal blockquote > :last-child { margin-bottom: 0; }

.lj-legal code {
  padding: 0.05em 0.35em;
  border-radius: 4px;
  background: rgba(117, 93, 59, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

.lj-legal pre { margin: 0 0 1rem; padding: 0.75rem 1rem; border-radius: 8px; background: rgba(117, 93, 59, 0.06); overflow-x: auto; }
.lj-legal pre code { padding: 0; background: none; }

.lj-legal-table { margin: 0 0 1.25rem; overflow-x: auto; }
.lj-legal table { width: 100%; border-collapse: collapse; font-size: 0.92em; line-height: 1.6; }
.lj-legal th,
.lj-legal td { padding: 0.55rem 0.7rem; border-bottom: 1px solid #ecdccb; text-align: left; vertical-align: top; overflow-wrap: break-word; }
.lj-legal th { border-bottom: 2px solid #e8d4c1; color: var(--walnut, #755D3B); font-weight: 600; }

.lj-legal.lj-legal-dark { color: #E1CEBB; font-size: 0.75rem; line-height: 1.7; }
.lj-legal.lj-legal-dark strong { color: #fff; }
.lj-legal.lj-legal-dark a { color: #fff; text-decoration-color: #C4A882; }
.lj-legal.lj-legal-dark a:hover { color: #E1CEBB; }
.lj-legal.lj-legal-dark h2,
.lj-legal.lj-legal-dark h3,
.lj-legal.lj-legal-dark h4,
.lj-legal.lj-legal-dark h5,
.lj-legal.lj-legal-dark h6 { color: #fff; }
.lj-legal.lj-legal-dark h2 { margin: 1.75rem 0 0.75rem; font-size: 1.15rem; }
.lj-legal.lj-legal-dark h3 { margin: 1.75rem 0 0.75rem; padding-bottom: 0.4rem; border-bottom: 1px solid rgba(225, 206, 187, 0.2); font-size: 1rem; }
.lj-legal.lj-legal-dark h4 { margin: 1.1rem 0 0.5rem; font-family: inherit; font-size: 0.8rem; font-weight: 600; }
.lj-legal.lj-legal-dark h5,
.lj-legal.lj-legal-dark h6 { margin: 1rem 0 0.4rem; font-family: inherit; font-size: 0.75rem; }
.lj-legal.lj-legal-dark ul,
.lj-legal.lj-legal-dark ol { padding-left: 1.15rem; }
.lj-legal.lj-legal-dark li { margin-bottom: 0.35rem; }
.lj-legal.lj-legal-dark blockquote { padding: 0.7rem 0.95rem; border-left: 2px solid #C4A882; background: rgba(255, 255, 255, 0.05); }
.lj-legal.lj-legal-dark code,
.lj-legal.lj-legal-dark pre { background: rgba(255, 255, 255, 0.08); }
.lj-legal.lj-legal-dark table { font-size: 0.95em; }
.lj-legal.lj-legal-dark th,
.lj-legal.lj-legal-dark td { padding: 0.45rem 0.55rem; border-bottom-color: rgba(225, 206, 187, 0.16); }
.lj-legal.lj-legal-dark th { border-bottom-color: rgba(225, 206, 187, 0.32); color: #fff; }

.lj-legal-print {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: transparent;
  color: #E1CEBB;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lj-legal-print:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.08); }
.lj-legal-print:focus-visible { outline: 2px solid #E1CEBB; outline-offset: 2px; }
.lj-legal-print svg { width: 1rem; height: 1rem; }

body.lj-legal-page { min-height: 100vh; margin: 0; padding: 2.5rem 1rem 3rem; background: var(--linen, #F7F0E8); font-family: var(--font-body, 'Lora', Georgia, serif); }
body.lj-legal-page *,
body.lj-legal-page *::before,
body.lj-legal-page *::after { box-sizing: border-box; }
.lj-legal-page .container { max-width: 800px; margin: 0 auto; }
.lj-legal-page .lj-legal-home { width: max-content; margin: 0 auto 1rem; border-radius: 999px; color: #fff; }
.lj-legal-page .page-title { margin: 0 0 0.35rem; font-size: 2rem; font-weight: 400; text-align: center; }
.lj-legal-page .lj-legal-site { margin: 0 0 0.3rem; font-size: 0.95rem; text-align: center; }
.lj-legal-page .lj-legal-site a { color: rgba(255, 255, 255, 0.9); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.45); text-underline-offset: 3px; }
.lj-legal-page .lj-legal-site a:hover { color: #fff; text-decoration-color: currentColor; }
.lj-legal-page .last-updated { min-height: 1.4em; margin: 0 0 1.75rem; color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; font-style: italic; text-align: center; }
.lj-legal-page .card { margin-bottom: 1.5rem; padding: 2.5rem; border-radius: 20px; background: rgba(255, 255, 255, 0.95); box-shadow: 0 10px 40px rgba(117, 93, 59, 0.12); }

html.lj-framed body.lj-legal-page { padding: 1rem 1rem 1.5rem; }
html.lj-framed .lj-legal-page .lj-legal-home,
html.lj-framed .lj-legal-page .page-title,
html.lj-framed .lj-legal-page .lj-legal-site,
html.lj-framed .lj-legal-page .last-updated { display: none; }

@media (max-width: 600px) {
  body.lj-legal-page { padding-top: 1.75rem; }
  .lj-legal-page .card { padding: 1.5rem; }
  .lj-legal-page .page-title { font-size: 1.6rem; }
  .lj-legal h3 { font-size: 1.2rem; }
}

.lj-legal-sheet { display: none; }

@media print {
  html.lj-legal-printing,
  html.lj-legal-printing body {
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }

  html.lj-legal-printing body > *:not(.lj-legal-sheet) { display: none !important; }

  html.lj-legal-printing .lj-legal-sheet {
    display: block !important;
    color: #222;
    font-family: var(--font-body, 'Lora', Georgia, serif);
    font-size: 10.5pt;
    line-height: 1.55;
  }

  .lj-legal-sheet-brand { margin: 0 0 4pt; color: #755D3B; font-size: 8.5pt; letter-spacing: 0.18em; text-transform: uppercase; }
  .lj-legal-sheet h1 { margin: 0 0 4pt; color: #3D2B1A; font-family: var(--font-display, 'Playfair Display', Georgia, serif); font-size: 22pt; font-weight: 400; }
  .lj-legal-sheet-date { margin: 0 0 16pt; color: #6b5a42; font-size: 9pt; font-style: italic; }
  .lj-legal-sheet .lj-legal { color: #222; line-height: 1.55; }
  .lj-legal-sheet .lj-legal strong,
  .lj-legal-sheet .lj-legal a,
  .lj-legal-sheet .lj-legal h2,
  .lj-legal-sheet .lj-legal h3,
  .lj-legal-sheet .lj-legal h4 { color: #3D2B1A; }
  .lj-legal-sheet .lj-legal h2,
  .lj-legal-sheet .lj-legal h3,
  .lj-legal-sheet .lj-legal h4 { break-after: avoid; page-break-after: avoid; }
  .lj-legal-sheet .lj-legal h3 { margin-top: 16pt; font-size: 13pt; }
  .lj-legal-sheet .lj-legal blockquote { background: none; }
  .lj-legal-sheet .lj-legal-table { overflow: visible; }
  .lj-legal-sheet .lj-legal tr { break-inside: avoid; page-break-inside: avoid; }

  @page { margin: 18mm 16mm; }
}
