/* Shared English/Malay legal reading layout. No changes to policy wording or site-wide typography. */
.legal-page { background: #faf8f4; color: #292720; }
.legal-skip { position: absolute; top: -80px; left: 16px; z-index: 10000; background: #fff; padding: 12px 18px; }
.legal-skip:focus { top: 12px; }
.legal-shell { max-width: 1180px; margin: 0 auto; padding: 145px 24px 64px; font-family: Montserrat, Arial, sans-serif; font-size: 1rem; line-height: 1.75; text-align: left; }
.legal-shell .number-ledger { font-family: inherit !important; font-size: inherit; font-weight: inherit; font-variant-numeric: lining-nums; }
.legal-shell p { margin: 0 0 16px; }
/* Justify paragraph copy only; headings, lists, navigation and the site footer
   retain their existing alignment. Keep short/final lines naturally aligned. */
.legal-page .legal-shell p {
  text-align: justify;
  text-align-last: start;
  text-justify: inter-word;
  overflow-wrap: break-word;
}
.legal-shell strong, .legal-shell b { font-weight: 600; }
.legal-shell a { color: #70521f; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-shell a:hover { color: #332407; }
.legal-shell a:focus-visible, .legal-shell summary:focus-visible { outline: 2px solid #8a651f; outline-offset: 4px; }
.legal-breadcrumb { font-size: .8125rem; line-height: 1.6; margin-bottom: 24px; }
.legal-shell .legal-kicker { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; line-height: 1.5; font-weight: 600; color: #70521f; }
.legal-shell h1 { font-family: Georgia, serif; font-size: clamp(1.5rem, 2.1vw, 1.8rem); font-weight: 700; line-height: 1.3; margin: 0; color: #28251f; overflow-wrap: break-word; }
.legal-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin: 0 0 20px; }
.legal-title-row h1 { flex: 1 1 420px; min-width: 0; }
.legal-shell .legal-summary { max-width: 78ch; font-size: 1rem; line-height: 1.75; color: #4c4840; margin: 0 0 16px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0; font-size: .8125rem; line-height: 1.6; color: #625b4f; }
.legal-meta .legal-active { color: #178044; font-weight: 700; }
.legal-languages { display: flex; flex-wrap: wrap; gap: 6px; }
.legal-languages a[aria-current] { font-weight: 600; color: #292720; }
.legal-language-notice { flex: 0 1 auto; max-width: 100%; margin: 0; padding: 0; scroll-margin-top: 160px; }
.legal-language-notice > span { display: block; margin-bottom: 5px; font-size: .75rem; line-height: 1.5; color: #625b4f; }
.legal-language-notice .legal-languages a { display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; min-height: 36px; box-sizing: border-box; border: 1px solid #d3c5aa; border-radius: 5px; background: transparent; font-size: .75rem; line-height: 1.5; text-decoration: none; }
.legal-language-notice .legal-languages a[aria-current] { border-color: #8a651f; background: #f0e7d5; box-shadow: inset 0 -2px #8a651f; }
.legal-language-notice .legal-languages a:hover { background: #f0e7d5; }
.legal-review { border: 1px solid #b79250; border-left: 4px solid #967031; background: #fff5df; border-radius: 8px; padding: 16px 20px; margin: 20px 0 28px; font-size: .875rem; line-height: 1.7; }
.legal-review > strong { display: block; margin-bottom: 6px; }
.legal-shell .legal-review p { margin: 0; font-size: inherit; line-height: inherit; }
.legal-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 28px; align-items: start; }
.legal-nav { background: #f0ece3; padding: 20px; border-radius: 10px; }
.legal-nav h2 { font: 600 .9375rem/1.5 Montserrat, Arial, sans-serif; margin: 0 0 14px; }
.legal-nav ul { list-style: none; padding: 0; margin: 0; }
.legal-nav li { margin: 0 0 10px; line-height: 1.6; }
.legal-nav li:last-child { margin-bottom: 0; }
.legal-nav a { font-size: .875rem; }
.legal-nav a[aria-current] { color: #292720; font-weight: 600; }
.legal-article { min-width: 0; background: #fff; border: 1px solid #e6dfd2; border-radius: 10px; padding: 32px; }
.legal-article h2, .legal-contact h2 { font: 700 1.25rem/1.45 Georgia, serif; color: #28251f; margin: 0 0 14px; scroll-margin-top: 160px; overflow-wrap: break-word; }
.legal-article h3 { font: 600 1.0625rem/1.5 Montserrat, Arial, sans-serif; margin: 24px 0 12px; }
.legal-article section + section { margin-top: 28px; padding-top: 28px; border-top: 1px solid #ece6db; }
.legal-article p, .legal-article li, .legal-contact p { font-size: 1rem; line-height: 1.75; }
.legal-article p { max-width: 78ch; }
.legal-article ul, .legal-article ol { padding-left: 24px; margin: 16px 0; }
.legal-article li { margin-bottom: 10px; padding-left: 3px; }
.legal-article li:last-child, .legal-article section > :last-child { margin-bottom: 0; }
.legal-toc { margin-bottom: 28px; border-bottom: 1px solid #e6dfd2; padding-bottom: 16px; font-size: .875rem; }
.legal-toc summary { cursor: pointer; font-size: .9375rem; font-weight: 600; line-height: 1.6; padding: 8px 0; }
.legal-toc li { font-size: .875rem; line-height: 1.65; margin-bottom: 8px; }
.legal-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.legal-card { min-width: 0; border: 1px solid #e6dfd2; border-radius: 10px; padding: 24px; background: #fff; }
.legal-card h2 { font: 700 1.25rem/1.45 Georgia, serif; margin: 0 0 12px; }
.legal-card p { font-size: 1rem; line-height: 1.75; margin: 0 0 16px; }
.legal-card > a { font-size: .875rem; font-weight: 600; }
.legal-contact { margin-top: 28px; border-top: 1px solid #e6dfd2; padding-top: 28px; }
.legal-contact p { max-width: 78ch; }
.legal-contact > :last-child { margin-bottom: 0; }
.legal-office-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin: 20px 0; font-size: .875rem; line-height: 1.75; }
.legal-office-details dt { font-weight: 600; margin-bottom: 6px; }
.legal-office-details dd { margin: 0; overflow-wrap: anywhere; }
.legal-bottom { display: flex; justify-content: space-between; gap: 12px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #e6dfd2; flex-wrap: wrap; font-size: .875rem; line-height: 1.6; }
@media (max-width: 1280px) { .legal-shell { padding-top: 40px; } }
@media (max-width: 980px) {
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .legal-nav ul { display: flex; flex-wrap: wrap; gap: 10px 20px; }
  .legal-nav li { margin: 0; }
}
@media (max-width: 760px) {
  .legal-shell { padding: 28px 18px 48px; }
  .legal-title-row { align-items: flex-start; gap: 14px; }
  .legal-title-row h1 { flex-basis: 100%; }
  .legal-language-notice .legal-languages a { min-height: 44px; }
  .legal-cards, .legal-office-details { grid-template-columns: 1fr; }
  .legal-article, .legal-card { padding: 24px 20px; }
  .legal-review { padding: 14px 16px; }
  .legal-article h2, .legal-contact h2, .legal-card h2 { font-size: 1.1875rem; }
}
@media print {
  gf-site-header, gf-site-footer, .legal-page .site-header, .legal-page .site-footer, .legal-page .topbar, .legal-nav, .legal-skip, .legal-bottom, .legal-toc, .legal-language-notice { display: none !important; }
  .legal-shell { padding: 0; max-width: none; font-size: 11pt; }
  .legal-layout, .legal-cards { display: block; }
  .legal-article { border: none; padding: 0; }
  .legal-page { background: white; }
  .legal-article h2, .legal-contact h2 { break-after: avoid; }
  .legal-article p, .legal-article li, .legal-contact p, .legal-card p { font-size: 11pt; line-height: 1.6; orphans: 3; widows: 3; }
  .legal-review { border-color: #444; }
}
