/* FE-03 / BACKEND: document and link presentation only; no form state changes. */
.policy-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.policy-links a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.policy-links a:focus-visible, .legal-document a:focus-visible { outline: 2px solid #087b67; outline-offset: 4px; }
.policy-note { margin: 8px 0 0; color: #526760; font-size: .875rem; line-height: 1.7; overflow-wrap: anywhere; }
.policy-footer { padding-block: 24px; }
.policy-documents { min-width: 0; }
.policy-documents a { overflow-wrap: anywhere; }
body.legal-document { margin: 0; background: #f5f6ef; color: #173f36; font-family: system-ui, -apple-system, sans-serif; line-height: 1.8; }
.legal-document * { box-sizing: border-box; }
.legal-document a { color: inherit; }
.legal-shell { max-width: 960px; margin: auto; padding: 28px clamp(20px, 5vw, 64px) 64px; }
.legal-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; border-bottom: 1px solid #cbd7ce; padding-bottom: 20px; }
.legal-brand { font-size: 1.1rem; font-weight: 700; text-decoration: none; }
.legal-languages { display: flex; flex-wrap: wrap; gap: 6px; }
.legal-languages a { display: grid; place-items: center; min-height: 44px; min-width: 44px; padding: 4px 10px; border-radius: 4px; text-decoration: none; }
.legal-languages a[aria-current] { background: #173f36; color: #fff; }
.legal-document h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; margin: 36px 0 16px; }
.legal-document h2 { font-size: 1.25rem; line-height: 1.5; }
.legal-document p, .legal-document li { overflow-wrap: anywhere; }
.legal-draft { border-left: 4px solid #99782a; background: #f1ead5; padding: 16px 20px; margin: 24px 0; color: #4d411f; }
.legal-draft strong { display: block; }
.legal-draft p { margin: 4px 0 0; }
.legal-toc { padding: 20px 24px; border: 1px solid #cbd7ce; border-radius: 8px; }
.legal-toc ol { margin-bottom: 0; padding-left: 24px; }
.legal-toc a { display: inline-block; padding-block: 6px; }
.legal-section { border-bottom: 1px solid #cbd7ce; padding: 20px 0; scroll-margin-top: 20px; }
.legal-footer { padding-top: 24px; }
.legal-skip { position: absolute; left: 20px; top: -100px; background: white; padding: 12px; }
.legal-skip:focus { top: 12px; }
@media print {
  body.legal-document { background: white; color: black; }
  .legal-shell { max-width: none; padding: 0; }
  .legal-header, .legal-toc, .legal-footer, .legal-skip { display: none; }
  .legal-section { break-inside: avoid; }
  .legal-draft { background: none; border: 2px solid black; }
}
