/* ── Legal Modal — baby i ── */
.lm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,28,26,0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lm-overlay.is-open { display: flex; }

.lm-box {
  background: #FEFCF8;
  width: 90vw;
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  box-shadow: 0 24px 80px rgba(28,28,26,0.22);
  position: relative;
  font-family: 'Jost', sans-serif;
}

.lm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 0.5px solid #E8DBC8;
  position: sticky;
  top: 0;
  background: #FEFCF8;
  z-index: 1;
  flex-shrink: 0;
}
.lm-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  color: #1C1C1A;
  letter-spacing: 0.02em;
}
.lm-version {
  font-size: 10px;
  color: #7A7770;
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.lm-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #7A7770;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
  flex-shrink: 0;
}
.lm-close:hover { color: #1C1C1A; }

.lm-body {
  overflow-y: auto;
  padding: 28px 32px 32px;
  flex: 1;
  scroll-behavior: smooth;
}
.lm-body::-webkit-scrollbar { width: 4px; }
.lm-body::-webkit-scrollbar-track { background: #F5EDE4; }
.lm-body::-webkit-scrollbar-thumb { background: var(--accent, #B8986A); border-radius: 0; }

.lm-scroll-hint {
  text-align: center;
  font-size: 10px;
  color: #7A7770;
  letter-spacing: 0.1em;
  padding: 8px;
  border-top: 0.5px solid #E8DBC8;
  flex-shrink: 0;
}

.lm-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  border-top: 0.5px solid #E8DBC8;
  flex-shrink: 0;
  gap: 12px;
}
.lm-print {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7A7770;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.lm-print:hover { color: #1C1C1A; }
.lm-open-full {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7A7770;
  text-decoration: none;
  transition: color 0.2s;
}
.lm-open-full:hover { color: #1C1C1A; }

/* ── Контент документов внутри модалки ── */
.lm-doc h2 { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 400; margin: 24px 0 8px; color: #1C1C1A; }
.lm-doc h3 { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin: 20px 0 6px; color: #1C1C1A; }
.lm-doc p { font-size: 13px; font-weight: 300; line-height: 1.75; color: #3d3a36; margin: 0 0 10px; }
.lm-doc ul, .lm-doc ol { padding-left: 18px; margin: 6px 0 12px; }
.lm-doc li { font-size: 13px; font-weight: 300; line-height: 1.7; color: #3d3a36; margin-bottom: 4px; }
.lm-doc .lm-doc-meta { font-size: 11px; color: #7A7770; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 0.5px solid #E8DBC8; }
.lm-doc a { color: var(--accent, #B8986A); }

/* ── Адаптив ── */
@media (max-width: 600px) {
  .lm-box { width: 100vw; max-width: 100vw; max-height: 100vh; border-radius: 0; }
  .lm-overlay { padding: 0; align-items: flex-end; }
  .lm-header, .lm-body, .lm-footer { padding-left: 20px; padding-right: 20px; }
}
