.legal-doc .journal-title h1 {
  font-family: "Cormorant Garamond", "Noto Serif Georgian", Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(26px, 4.8vw, 68px);
  line-height: 1.15;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.legal-layout {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  align-items: start;
  gap: 28px;
}

.legal-body {
  max-width: 720px;
  text-align: left;
  font-family: "Noto Sans Georgian", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.85;
  color: #67645E;
}

.legal-body h2 {
  font-family: "Cormorant Garamond", "Noto Serif Georgian", Georgia, serif;
  font-weight: 500;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.3;
  color: #2B2926;
  margin: 56px 0 12px;
  scroll-margin-top: 5.6rem;
}

.legal-body section:first-child h2 { margin-top: 8px; }
.legal-body p { margin: 0 0 0.95rem; }
.legal-body strong { font-weight: 600; color: #2B2926; }
.legal-body em { font-style: italic; }
.legal-body ul,
.legal-body ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal-body li { margin: 0.35rem 0; }
.legal-body hr { border: 0; border-top: 1px solid #e4e0d8; margin: 2rem 0; }

.table-scroll { overflow-x: auto; margin: 0 0 1.2rem; max-width: 100%; }
.legal-body table { width: 100%; min-width: 560px; border-collapse: collapse; }
.legal-body th,
.legal-body td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid #e4e0d8;
  font-weight: 400;
}
.legal-body th {
  font-family: "Cormorant Garamond", "Noto Serif Georgian", Georgia, serif;
  font-weight: 500;
  color: #2B2926;
  font-size: 1.15em;
}

.legal-toc details { margin: 0; }
.legal-toc summary {
  cursor: pointer;
  font-family: "Noto Sans Georgian", sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2B2926;
  padding: 0.7rem 0;
  list-style: none;
}
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary:focus-visible { outline: 2px solid #2B2926; outline-offset: 2px; }
.legal-toc ol { list-style: none; margin: 0 0 0.6rem; padding: 0 0 0.6rem; }
.legal-toc a {
  color: #2B2926;
  font-family: "Noto Sans Georgian", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  display: inline-block;
  padding: 0.28rem 0;
}
.legal-toc a:hover { text-decoration: underline; }
.legal-toc { border-bottom: 1px solid #e4e0d8; margin-bottom: 0.4rem; }

.faq-item { border-bottom: 1px solid #e4e0d8; }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-family: "Noto Sans Georgian", sans-serif;
  font-weight: 600;
  font-size: 1em;
  line-height: 1.5;
  color: #2B2926;
  padding: 0.85rem 0;
}
.faq-q::after {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.2rem;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 0.15rem; }
.faq-panel { display: grid; grid-template-rows: 0fr; }
.faq-panel[hidden] { display: none !important; }
.faq-panel.is-open { grid-template-rows: 1fr; }
.faq-panel-inner { overflow: hidden; }
.faq-panel-inner > :last-child { margin-bottom: 0.85rem; }

@media (min-width: 800px) {
  .legal-body { font-size: 18px; }
}

.legal-toc details:not([open]) > ol { display: none; }

@media (min-width: 980px) {
  .legal-layout {
    grid-template-columns: 220px minmax(0, 720px);
    width: min(1040px, calc(100% - 48px));
  }
  .legal-toc {
    position: sticky;
    top: 5.4rem;
    max-height: calc(100vh - 6.5rem);
    overflow: auto;
    border-bottom: 0;
    margin-bottom: 0;
  }
  .legal-toc summary { display: none; }
  .legal-toc details:not([open]) > ol { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-panel { transition: none; }
  .faq-q::after { transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .faq-panel { transition: grid-template-rows 180ms ease; }
  .faq-q::after { transition: transform 180ms ease; }
}
