/* Shared reading layout for Qovra's legal documents. */
.legal-page .header { background: #fff; color: var(--ink); border-bottom: 1px solid var(--rule); }
.legal-main { max-width: 1600px; margin: 0 auto; padding-top: 139px; padding-bottom: 110px; }
.legal-heading { padding-bottom: 39px; border-bottom: 1px solid var(--rule); }
.legal-back { display: inline-block; font-size: .875rem; line-height: 1.5; text-decoration: underline; text-underline-offset: 5px; margin-bottom: 33px; }
.legal-switch { display: flex; gap: 31px; margin-bottom: 40px; font-size: .875rem; }
.legal-switch a { padding: 0 0 8px; color: var(--quiet); border-bottom: 1px solid transparent; }
.legal-switch a[aria-current=page] { color: var(--ink); border-bottom-color: var(--ink); }
.legal-switch a:hover { border-bottom-color: var(--rule); }
.legal-heading h1 { font-size: clamp(3rem, 5.2vw, 5rem); letter-spacing: -.055em; line-height: 1.06; margin-bottom: 29px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 13px 29px; color: var(--quiet); font-size: .8125rem; }
.legal-layout { display: grid; grid-template-columns: 255px minmax(0, 760px); gap: clamp(45px, 7vw, 115px); justify-content: space-between; padding-top: 46px; }
.legal-aside { align-self: start; position: sticky; top: 118px; max-height: calc(100svh - 146px); overflow: auto; padding-right: 16px; scrollbar-width: thin; }
.legal-contents summary { list-style: none; font-size: .9375rem; font-weight: 500; line-height: 1.4; padding: 0 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; }
.legal-contents summary::-webkit-details-marker { display: none; }
.legal-contents .plus { width: 12px; height: 12px; color: var(--quiet); }
.legal-contents .plus:before, .legal-contents .plus:after { width: 12px; top: 5px; }
.legal-contents[open] .plus:after { transform: none; }
.legal-contents ol { list-style: none; padding: 0; margin: 0; }
.legal-contents li { margin: 0 0 3px; }
.legal-contents a { display: block; padding: 5px 0; color: var(--quiet); font-size: .875rem; line-height: 1.4; }
.legal-contents a:hover, .legal-contents a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.legal-article { min-width: 0; }
.legal-intro { font-size: 1.125rem; line-height: 1.65; letter-spacing: -.01em; color: var(--ink); padding-bottom: 43px; margin: 0; }
.legal-section { padding: 34px 0 37px; border-top: 1px solid var(--rule); scroll-margin-top: 120px; }
.legal-section h2 { font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: 1.2; letter-spacing: -.035em; margin: 0 0 24px; color: var(--ink); display: flex; align-items: baseline; gap: 18px; }
.legal-section h2 .num { font-size: .8125rem; color: var(--quiet); letter-spacing: 0; flex-shrink: 0; }
.legal-section h3 { font-size: 1.125rem; line-height: 1.4; font-weight: 500; margin: 27px 0 13px; letter-spacing: -.02em; }
.legal-section p, .legal-section li { font-size: 1rem; line-height: 1.75; color: #4d585f; overflow-wrap: break-word; }
.legal-section p { margin: 0 0 18px; }
.legal-section > p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 14px 0 24px; padding-left: 21px; }
.legal-section li { padding-left: 4px; margin: 0 0 11px; }
.legal-section strong { color: var(--ink); font-weight: 500; }
.legal-section a { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.legal-section a:hover { color: #151b20; }
.legal-callout { border-left: 2px solid #87959e; background: #f2f4f5; padding: 23px 25px; margin: 26px 0; }
.legal-callout .callout-h { color: var(--ink); font-size: .9375rem; font-weight: 500; line-height: 1.4; margin-bottom: 12px; }
.legal-callout p:last-child { margin-bottom: 0; }
.legal-table-wrap { max-width: 100%; overflow-x: auto; margin: 20px 0 25px; }
.legal-table { width: 100%; min-width: 380px; border-collapse: collapse; text-align: left; }
.legal-table th, .legal-table td { padding: 15px 14px 15px 0; vertical-align: top; border-bottom: 1px solid var(--rule); line-height: 1.6; }
.legal-table th { font-size: .875rem; font-weight: 500; color: var(--ink); }
.legal-table td { font-size: 1rem; color: #4d585f; }
.legal-table th:last-child, .legal-table td:last-child { padding-left: 21px; padding-right: 0; }
.legal-end { display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--rule); padding-top: 30px; font-size: .875rem; line-height: 1.5; }
.legal-end a { text-decoration: underline; text-underline-offset: 5px; }
.legal-end span { margin-left: 8px; }
.legal-page .footer a[aria-current=page] { text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 1100px) {
  .legal-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 42px; }
  .legal-meta { gap: 10px 23px; }
}
@media (max-width: 760px) {
  .legal-main { padding-top: 110px; padding-bottom: 65px; }
  .legal-back { margin-bottom: 28px; }
  .legal-switch { margin-bottom: 33px; gap: 25px; }
  .legal-heading h1 { font-size: clamp(2.65rem, 9.5vw, 4rem); margin-bottom: 23px; }
  .legal-meta { display: grid; gap: 7px; }
  .legal-heading { padding-bottom: 28px; }
  .legal-layout { display: block; padding-top: 0; }
  .legal-aside { position: static; overflow: visible; max-height: none; padding: 0; border-bottom: 1px solid var(--rule); margin-bottom: 30px; }
  .legal-contents summary { padding: 22px 0; font-size: 1rem; }
  .legal-contents ol { padding-bottom: 22px; }
  .legal-contents a { padding: 7px 0; }
  .legal-intro { font-size: 1rem; line-height: 1.7; padding-bottom: 31px; }
  .legal-section { padding: 29px 0 30px; scroll-margin-top: 95px; }
  .legal-section h2 { font-size: 1.5rem; gap: 12px; margin-bottom: 20px; }
  .legal-section h3 { margin-top: 23px; }
  .legal-callout { padding: 20px 18px; margin: 22px 0; }
  .legal-end { flex-direction: column; align-items: flex-start; gap: 21px; padding-top: 26px; }
}
@media print {
  .legal-page .header, .legal-page .footer, .legal-back, .legal-switch, .legal-aside, .legal-end, .skip-link { display: none !important; }
  .legal-main { max-width: none; padding: 0; }
  .legal-layout { display: block; padding-top: 28px; }
  .legal-heading h1 { font-size: 32pt; }
  .legal-section h2 { break-after: avoid; font-size: 18pt; }
  .legal-section p, .legal-section li, .legal-table td { font-size: 10pt; }
  .legal-callout { break-inside: avoid; }
}
