/* Matches the supplied policy page: sticky white header, pale background,
   a quarter-width contents sidebar and three-quarter-width section cards. */
:root { color-scheme: light; --policy-primary: #4f46e5; }
html { scroll-behavior: smooth; scroll-padding-top: 144px; }
body.policy-body { display: block; background: #f9fafb; color: #1f2937; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
.policy-body::before { display: none; }
.policy-body .skip-link { background: white; color: var(--policy-primary); }
.policy-body a:focus-visible { outline: 2px solid var(--policy-primary); outline-offset: 4px; }
.policy-container, .policy-page { width: 100%; margin-inline: auto; padding-inline: 16px; }
.policy-header { position: sticky; top: 0; z-index: 5; background: white; box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.policy-header .policy-container { padding-block: 24px; }
.policy-header h1 { max-width: none; margin: 0; color: var(--policy-primary); font-size: 30px; font-weight: 700; letter-spacing: normal; line-height: 36px; }
.policy-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 8px; color: #4b5563; font-size: 14px; line-height: 20px; }
.policy-meta p { margin: 0; }
.policy-meta nav { display: flex; gap: 20px; }
.policy-meta a { text-decoration: none; }
.policy-meta a:hover { color: var(--policy-primary); }
.policy-page { padding-block: 32px; }
.policy-layout { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.policy-toc { width: 100%; padding: 24px; background: white; border: 1px solid #f3f4f6; border-radius: 8px; box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.policy-toc h2 { margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid #e5e7eb; color: #1f2937; font-size: 18px; font-weight: 600; line-height: 28px; }
.policy-toc ol { margin: 0; padding: 0; list-style: none; }
.policy-toc li + li { margin-top: 8px; }
.policy-toc a { display: flex; align-items: baseline; gap: 14px; color: #374151; font-size: 14px; line-height: 20px; text-decoration: none; transition: color .15s; }
.policy-toc svg { width: 14px; height: 14px; flex: 0 0 14px; align-self: flex-start; margin-top: 3px; color: var(--policy-primary); }
.policy-toc a:hover { color: var(--policy-primary); }
.policy-content { width: 100%; min-width: 0; }
.policy-section { margin-bottom: 48px; padding: 32px; border: 1px solid #f3f4f6; border-radius: 8px; background: white; box-shadow: 0 1px 2px rgb(0 0 0 / .05); font-size: 16px; line-height: 1.5; }
.policy-section h2 { margin: 0 0 24px; color: #1f2937; font-size: 24px; font-weight: 700; line-height: 32px; }
.policy-section h3 { margin: 26px 0 16px; color: #1f2937; font-size: 20px; font-weight: 600; line-height: 28px; }
.policy-section p { margin: 0 0 16px; }
.policy-section > :last-child { margin-bottom: 0; }
.policy-section ul, .policy-section ol { margin: 0 0 16px; padding-left: 24px; }
.policy-section li + li { margin-top: 8px; }
.policy-section a { color: var(--policy-primary); overflow-wrap: anywhere; text-underline-offset: 3px; }
.policy-section strong { font-weight: 600; }
.policy-notice { margin-top: 24px; padding: 16px; border-left: 4px solid var(--policy-primary); border-radius: 6px; background: #eff6ff; color: #1f2937; }
.policy-section .button { margin: 4px 0; background: var(--policy-primary); color: white; border: 0; border-radius: 6px; font-size: 14px; }
.policy-section .button:hover { background: #4338ca; }
.table-wrap { width: 100%; overflow-x: auto; margin: 24px 0; }
.table-wrap:focus-visible { outline: 2px solid var(--policy-primary); outline-offset: 3px; }
.policy-section table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; line-height: 1.5; }
.policy-section th { background: #f3f4f6; color: #1f2937; font-weight: 600; }
.policy-section td, .policy-section th { padding: 12px 16px; border: 1px solid #e5e7eb; vertical-align: top; overflow-wrap: anywhere; }
.policy-section th:first-child { width: 23%; }
.policy-section th:nth-child(2) { width: 37%; }
.policy-body .site-footer { width: calc(100% - 32px); color: #6b7280; font-size: 12px; }
.back-to-top { position: fixed; bottom: 24px; right: 24px; display: grid; place-items: center; width: 44px; height: 44px; padding: 12px; border-radius: 50%; background: var(--policy-primary); color: white; box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1); z-index: 6; }
.back-to-top[hidden] { display: none; }
.back-to-top svg { width: 20px; height: 20px; }
@media (min-width: 640px) { .policy-container, .policy-page { max-width: 640px; } }
@media (min-width: 768px) { .policy-container, .policy-page { max-width: 768px; } }
@media (min-width: 1024px) {
 .policy-container, .policy-page { max-width: 1024px; }
 .policy-layout { flex-direction: row; }
 .policy-toc { position: sticky; top: 132px; width: 25%; flex-shrink: 1; }
 .policy-content { width: 75%; flex-shrink: 1; }
}
@media (min-width: 1280px) { .policy-container, .policy-page { max-width: 1280px; } }
@media (min-width: 1536px) { .policy-container, .policy-page { max-width: 1536px; } }
@media (max-width: 639px) {
 .policy-section { padding: 24px; }
 .policy-section table { min-width: 570px; }
 .policy-header h1 { font-size: 27px; line-height: 34px; }
 .policy-meta { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@page { size: A4; margin: 17mm 16mm 18mm; }
@media print {
 html, body.policy-body { min-width: 0; background: white; font-size: 10pt; }
 .skip-link, .policy-toc, .policy-meta nav, .back-to-top { display: none !important; }
 .policy-container, .policy-page { max-width: none; width: 100%; padding: 0; }
 .policy-header { position: static; box-shadow: none; margin-bottom: 20pt; }
 .policy-header .policy-container { padding: 0; }
 .policy-header h1 { font-size: 24pt; line-height: 1.4; }
 .policy-meta { font-size: 9pt; }
 .policy-layout, .policy-content { display: block; width: 100%; }
 .policy-section { padding: 0; margin: 0 0 18pt; border: 0; box-shadow: none; font-size: 9pt; line-height: 1.65; }
 .policy-section h2 { font-size: 15pt; line-height: 1.4; margin: 0 0 9pt; break-after: avoid; }
 .policy-section h3 { font-size: 11pt; margin: 13pt 0 6pt; break-after: avoid; }
 .policy-section p { margin: 0 0 8pt; orphans: 3; widows: 3; }
 .policy-section li { orphans: 3; widows: 3; }
 .policy-notice { font-size: 8pt; padding: 8pt; margin-top: 10pt; }
 .policy-section .button { padding: 0; min-height: 0; background: none; color: var(--policy-primary); font-size: 9pt; text-decoration: underline; }
 .table-wrap { overflow: visible; margin: 10pt 0; }
 .policy-section table { min-width: 0; font-size: 8pt; line-height: 1.6; }
 .policy-section td, .policy-section th { padding: 7pt 8pt; }
 .policy-section tr { break-inside: avoid; }
 .policy-section thead { display: table-header-group; }
 .policy-body .site-footer { width: 100%; padding: 10pt 0 0; border-top: 1px solid #ddd; font-size: 8pt; }
}
