/* U9: original legal content, page-scoped reading styles shared with both SSGs. */
.policy-page { min-width: 0; color: hsl(var(--foreground)); background: hsl(var(--background)); }
.policy-page.policy-static-page { padding-top: 64px; }
.policy-container { max-width: 1120px; margin-inline: auto; padding: 24px 24px 48px; min-width: 0; }
.policy-navigation { display: flex; gap: 8px 18px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid hsl(var(--border)); }
.policy-navigation nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.policy-navigation a { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 4px; font-size: 13px; line-height: 1.6; color: hsl(var(--muted-foreground)); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: hsl(var(--border)); }
.policy-navigation a[aria-current=page] { color: hsl(var(--foreground)); text-decoration-color: currentColor; font-weight: 600; }
.policy-header { padding: 28px 0 26px; }
.policy-header h1 { font-size: clamp(28px,3vw,40px); font-weight: 650; line-height: 1.4; color: hsl(var(--foreground)); margin: 0 0 16px; scroll-margin-top: 88px; }
.policy-header p { color: hsl(var(--muted-foreground)); font-size: 13px; line-height: 1.95; margin: 0; overflow-wrap: anywhere; }
.policy-header p > span { color: hsl(var(--foreground)); }
.policy-layout { display: grid; grid-template-columns: 232px minmax(0,1fr); gap: 40px; align-items: start; }
.policy-sidebar { min-width: 0; position: sticky; top: 88px; }
.policy-contents { border-block: 1px solid hsl(var(--border)); }
.policy-contents summary { min-height: 44px; padding: 12px 6px; cursor: pointer; font-size: 14px; line-height: 1.6; font-weight: 600; }
.policy-contents summary > span { font-size: 12px; color: hsl(var(--muted-foreground)); font-weight: 400; margin-left: 12px; }
.policy-contents-scroll { max-height: min(60vh,520px); overflow-y: auto; overscroll-behavior: contain; padding: 4px 0 10px; }
.policy-contents-scroll ol { list-style: none; padding: 0; margin: 0; }
.policy-contents-scroll li { margin: 0; }
.policy-contents-scroll a { display: flex; align-items: baseline; gap: 10px; padding: 12px 8px; min-height: 44px; border-radius: 6px; font-size: 13px; line-height: 1.7; color: hsl(var(--foreground)); overflow-wrap: anywhere; }
.policy-contents-scroll a > span:first-child { font-size: 11px; color: hsl(var(--muted-foreground)); font-variant-numeric: tabular-nums; flex: 0 0 18px; }
.policy-contents-scroll a:hover { background: hsl(var(--muted)); }
.policy-article { min-width: 0; font-size: 15px; line-height: 1.95; color: hsl(var(--foreground)); scroll-margin-top: 88px; }
.policy-page .policy-article > p { font-size: 14px; line-height: 1.95; padding: 20px; margin: 0 0 30px; border: 1px solid hsl(var(--border)); border-radius: 10px; background: hsl(var(--muted) / .4); color: hsl(var(--foreground)); }
.policy-page .policy-article :where(p,li,span,a,strong) { overflow-wrap: anywhere; word-break: normal; }
.policy-page .policy-article :where(p,li) { color: hsl(var(--foreground)); }
.policy-page .policy-article :where(strong,a) { color: hsl(var(--foreground)); }
.policy-page .policy-article a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.policy-section { margin-top: 28px; padding-top: 26px; border-top: 1px solid hsl(var(--border)); min-width: 0; }
.policy-section h2 { margin: 0 0 16px; font-size: 20px; font-weight: 600; line-height: 1.55; color: hsl(var(--foreground)); scroll-margin-top: 90px; overflow-wrap: anywhere; }
.policy-section-body > * + * { margin-top: 12px; }
.policy-section-body ul { padding-left: 22px; margin-left: 0; line-height: 1.95; }
.policy-section-body ul.list-none { padding-left: 0; }
.policy-section-body li + li { margin-top: 6px; }
.policy-page .policy-section-body p[class*="bg-amber"] { color: hsl(var(--foreground)); background: hsl(var(--muted) / .55); border: 1px solid hsl(var(--border)); border-inline-start: 3px solid hsl(var(--primary)); border-radius: 8px; padding: 16px; font-size: 15px; line-height: 1.95; }
.policy-return { margin-top: 32px; display: flex; justify-content: flex-end; }
.policy-return a { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 10px 16px; font-size: 13px; color: hsl(var(--foreground)); background: hsl(var(--card)); }
.policy-page :where(a,summary,[tabindex]):focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 3px; }
.policy-page :where(h1,h2,article):target { outline: 2px solid hsl(var(--ring)); outline-offset: 6px; }
@media(max-width: 850px) {
 .policy-layout { grid-template-columns: minmax(0,1fr); gap: 26px; }
 .policy-sidebar { position: static; }
 .policy-contents-scroll { max-height: min(45vh,360px); }
}
@media(max-width: 600px) {
 .policy-container { padding: 16px 16px 32px; }
 .policy-navigation { gap: 4px 12px; padding-bottom: 14px; }
 .policy-navigation nav { gap: 4px 12px; }
 .policy-navigation a { min-height: 44px; }
 .policy-header { padding: 24px 0; }
 .policy-article { font-size: 15px; }
 .policy-page .policy-article > p { padding: 16px; margin-bottom: 24px; }
 .policy-section { margin-top: 24px; padding-top: 22px; }
 .policy-section h2 { font-size: 19px; }
}
@media(prefers-reduced-motion:reduce) { .policy-page { scroll-behavior: auto; } }
@media(forced-colors:active) { .policy-page :where(a,summary,[tabindex]):focus-visible { outline: 2px solid Highlight; } .policy-section { border-color: CanvasText; } }
@media print {
 /* These exceptions apply only while a policy page is the current document. */
 body:has([data-policy-page]) header:not(.policy-header), body:has([data-policy-page]) footer { display: none !important; }
 body:has([data-policy-page]) main { padding-top: 0 !important; overflow: visible !important; }
 .policy-page,.policy-page.policy-static-page { background: white !important; color: black !important; padding: 0; min-height: 0; }
 .policy-container { max-width: none; padding: 0; }
 .policy-navigation,.policy-sidebar,.policy-return { display: none; }
 .policy-header { padding: 0 0 16px; }
 .policy-layout { display: block; }
 .policy-article { overflow: visible; color: black; font-size: 11pt; line-height: 1.7; }
 .policy-page .policy-article > p { font-size: 10pt; padding: 12px; background: white; border-color: #777; }
 .policy-page :where(h1,h2,p,li,span,strong,a) { color: black !important; }
 .policy-section { margin-top: 20px; padding-top: 16px; border-color: #777; }
 .policy-section h2 { break-after: avoid; font-size: 15pt; }
 .policy-section p,.policy-section li { widows: 3; orphans: 3; }
 .policy-page .policy-section-body p[class*="bg-amber"] { background: white; border-color: #777; }
 .policy-page :target { outline: none; }
}
