/* Policy navigation and readable records; substantive policy copy stays in HTML. */
.policy-page [id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.policy-page .policy-contents { margin: 28px 0 36px; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-soft); }
.policy-page .policy-contents .policy-contents-title { color: var(--ink); font-weight: 600; margin: 0 0 12px; }
.policy-page .policy-contents ul { list-style: none; padding: 0; margin: 0; }
.policy-page .policy-quick-links { display: flex; flex-wrap: wrap; gap: 8px; }
.policy-page .policy-quick-links li { margin: 0; }
.policy-page .policy-quick-links a { display: block; min-height: 44px; padding: 10px 14px; border: 1px solid var(--border-control); border-radius: 8px; background: var(--bg); color: var(--brand-on-light); font-size: .9rem; line-height: 1.5; text-underline-offset: 3px; }
.policy-page .policy-contents details { margin-top: 16px; border-top: 1px solid var(--border); }
.policy-page .policy-contents summary { cursor: pointer; padding-block: 14px; color: var(--ink); font-weight: 600; }
.policy-page .policy-contents .policy-section-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.policy-page .policy-section-list li { margin: 0; min-width: 0; }
.policy-page .policy-section-list a { display: block; padding-block: 10px; min-height: 44px; font-size: .9rem; line-height: 1.6; text-underline-offset: 3px; }
.policy-page.prose .policy-back { margin: 22px 0 0; font-size: .85rem; }
.policy-page .policy-back a { display: inline-block; min-height: 44px; padding-block: 10px; text-underline-offset: 3px; }
.policy-page .legal-table-wrap:focus-visible { outline: 2px solid var(--brand-on-light); outline-offset: 4px; }
.policy-page .policy-field-label { display: none; }

@media (max-width: 640px) {
  .policy-page .policy-contents { padding: 18px; }
  .policy-page .policy-contents .policy-section-list { grid-template-columns: 1fr; }
  /* Explicit table roles in the HTML retain table relationships when the visual
     layout changes. Column labels are repeated visually, hidden from AT. */
  .nt-interior .policy-page.legal .legal-table,
  .nt-interior .policy-page.legal .legal-table tbody,
  .nt-interior .policy-page.legal .legal-table tr { display: block; width: 100%; }
  .nt-interior .policy-page.legal .legal-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nt-interior .policy-page.legal .legal-table tbody tr { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; }
  .nt-interior .policy-page.legal .legal-table th,
  .nt-interior .policy-page.legal .legal-table td { display: block; width: auto; min-width: 0; padding: 14px 16px; border: 0; overflow-wrap: anywhere; }
  .nt-interior .policy-page.legal .legal-table tbody th { color: var(--ink); background: var(--bg-soft); border-radius: 12px 12px 0 0; }
  .nt-interior .policy-page.legal .legal-table td + td { border-top: 1px solid var(--border); }
  .policy-page .policy-field-label { display: block; margin-bottom: 6px; color: var(--ink); font-size: .85rem; font-weight: 600; }
}

@media print {
  .policy-page .policy-contents, .policy-page .policy-back { display: none; }
}
