/* Reading-first legal documents. Loaded only on the two legal routes. */
html { scroll-behavior: auto; }
.otech-legal-page .otech-client-layout { display: block; width: 100%; padding: 0; }
.otech-legal-page .otech-client-page > div > .row,
.otech-legal-page .otech-client-page > div > .row > .primary-content { width: 100%; min-width: 0; margin: 0; padding: 0; }
.otech-legal { width: min(100% - 64px, 1240px); margin: 0 auto; padding: 28px 0 72px; }
.otech-legal__navigation { display: flex; align-items: center; gap: 28px; margin-bottom: 32px; }
.otech-legal__back,
.otech-legal__print { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 9px; min-height: 42px; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.otech-legal__back { color: var(--otech-muted) !important; text-decoration: none !important; }
.otech-legal__back:hover { color: var(--otech-deep-sea) !important; }
.otech-legal__documents { display: flex; flex: 1; flex-wrap: wrap; gap: 4px 24px; align-items: center; }
.otech-legal__documents a { padding: 10px 0; border-bottom: 2px solid transparent; color: var(--otech-muted); font-size: .875rem; font-weight: 700; text-decoration: none; }
.otech-legal__documents a:hover,
.otech-legal__documents a[aria-current="page"] { color: var(--otech-deep-sea); border-color: currentColor; }
.otech-legal__print { padding: 0 16px; border: 1px solid var(--otech-line); border-radius: 10px; background: #fff; color: var(--otech-ink); cursor: pointer; }
.otech-legal__print:hover { border-color: var(--otech-deep-sea); color: var(--otech-deep-sea); }
.otech-legal__print[hidden] { display: none; }
.otech-legal__layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 36px; }
.otech-legal__contents { position: sticky; top: 99px; min-width: 0; }
.otech-legal__toc { min-width: 0; padding: 14px 0; }
.otech-legal__toc summary { padding: 0 10px 14px; color: var(--otech-ink); font-family: var(--font-heading); font-size: .9rem; font-weight: 600; cursor: pointer; }
.otech-legal__toc summary::marker { color: var(--otech-deep-sea); font-size: .8em; }
.otech-legal__toc nav { max-height: calc(100dvh - 170px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.otech-legal__toc ol,
.otech-legal__toc ul { margin: 0; padding: 0; list-style: none; }
.otech-legal__toc a { display: block; margin: 3px 0; padding: 9px 12px; border-left: 2px solid transparent; color: var(--otech-muted); font-size: .875rem; line-height: 1.45; text-decoration: none; overflow-wrap: anywhere; }
.otech-legal__toc a:hover { color: var(--otech-deep-sea); background: #eeebff; }
.otech-legal__toc a[aria-current="location"] { border-left-color: var(--otech-deep-sea); background: #eeebff; color: var(--otech-deep-sea); font-weight: 700; }
.otech-legal__article { min-width: 0; padding: 40px 48px 48px; border: 1px solid var(--otech-line); border-radius: 16px; background: #fff; color: var(--otech-ink); font-family: var(--font-body); font-size: 1rem; font-weight: 400; line-height: 1.85; overflow-wrap: anywhere; }
.otech-legal__header { margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--otech-line); }
.otech-legal__article h1 { max-width: 26ch; margin: 0 0 20px; font-size: clamp(1.65rem, 2.8vw, 2.35rem); font-weight: 600; line-height: 1.24; letter-spacing: -.045em; }
.otech-legal__article h2 { margin: 0 0 20px; font-size: 1.25rem; font-weight: 600; line-height: 1.45; letter-spacing: -.025em; }
.otech-legal__article h3,
.otech-legal__article h4 { margin: 26px 0 12px; font-size: 1rem; font-weight: 600; line-height: 1.6; letter-spacing: -.015em; }
.otech-legal__header[id],
.otech-legal__article h2[id],
.otech-legal__section[id] { scroll-margin-top: 104px; }
.otech-legal__article p { margin: 0 0 18px; color: inherit; font: inherit; }
.otech-legal__article p:last-child { margin-bottom: 0; }
.otech-legal__article ul,
.otech-legal__article ol { margin: 18px 0 24px; padding-left: 1.4em; }
.otech-legal__article ul { list-style-type: disc; }
.otech-legal__article ol { list-style-type: decimal; }
.otech-legal__article li { padding-left: .25em; margin: 10px 0; }
.otech-legal__article li::marker { color: var(--otech-deep-sea); }
.otech-legal__article a { text-decoration: underline; text-underline-offset: 3px; }
.otech-legal__article strong,
.otech-legal__article b { font-weight: 700; }
.otech-legal__section + .otech-legal__section { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--otech-line); }
.otech-legal__updated { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--otech-line); color: var(--otech-muted); font-size: .875rem; }
@media (max-width: 1023px) {
    .otech-legal { width: calc(100% - 48px); }
    .otech-legal__layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .otech-legal__contents { position: static; }
    .otech-legal__toc { padding: 16px; border: 1px solid var(--otech-line); border-radius: 12px; background: #fff; }
    .otech-legal__toc summary { padding: 0; }
    .otech-legal__toc[open] summary { margin-bottom: 16px; }
    .otech-legal__toc nav { max-height: 300px; }
    .otech-legal__article { padding: 32px; }
    .otech-legal__navigation { gap: 20px; }
}
@media (max-width: 620px) {
    .otech-legal { width: calc(100% - 32px); padding: 18px 0 40px; }
    .otech-legal__navigation { flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
    .otech-legal__documents { order: 3; flex-basis: 100%; gap: 20px; }
    .otech-legal__documents a { font-size: .8rem; }
    .otech-legal__print { margin-left: auto; }
    .otech-legal__article { padding: 24px 20px; font-size: .975rem; line-height: 1.8; }
    .otech-legal__article h1 { font-size: 1.65rem; }
    .otech-legal__article h2 { font-size: 1.125rem; }
    .otech-legal__section + .otech-legal__section { margin-top: 28px; padding-top: 26px; }
}
@media print {
    @page { margin: 16mm; }
    html, body.otech-theme { background: #fff !important; color: #16132d !important; }
    .otech-header, .otech-footer, .otech-skip-link, .otech-legal__navigation,
    .otech-legal__contents, #fullpage-overlay, .btn-return-to-admin, .modal,
    .otech-legal-page .otech-main-content > .alert { display: none !important; }
    .otech-legal, .otech-legal__layout, .otech-legal__article { display: block; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
    .otech-legal__article { font-size: 10pt; line-height: 1.6; }
    .otech-legal__article h1 { font-size: 21pt; max-width: none; }
    .otech-legal__article h2 { font-size: 13pt; }
    .otech-legal__article h3, .otech-legal__article h4 { font-size: 11pt; }
    .otech-legal__article h1, .otech-legal__article h2,
    .otech-legal__article h3, .otech-legal__article h4 { break-after: avoid; }
    .otech-legal__article p, .otech-legal__article li { orphans: 3; widows: 3; }
    .otech-legal__article a { color: inherit; }
}
