:root {
  color-scheme: light;
  --green: #258f4d;
  --green-dark: #1d603a;
  --green-soft: #edf6ef;
  --ink: #30383a;
  --ink-muted: #586265;
  --line: #dce5df;
  --surface: #f7faf8;
  --white: #fff;
  --warning-bg: #fff8e8;
  --warning-line: #e1b74f;
  --content: 76rem;
  --reading: 50rem;
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --radius: .75rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; min-width: 320px; background: var(--white); font-size: 1rem; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-dark); text-underline-offset: .18em; }
a:hover { color: var(--green); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #1976d2; outline-offset: 3px; border-radius: 3px; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 5; padding: .65rem .9rem; transform: translateY(-180%); color: white; background: var(--green-dark); border-radius: .35rem; }
.skip-link:focus { transform: translateY(0); color: white; }

.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { width: min(100% - 2.5rem, var(--content)); margin: 0 auto; min-height: 6.25rem; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.brand { width: min(31vw, 19rem); min-width: 12rem; flex: 0 1 auto; }
.brand img { width: 100%; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .8rem; color: var(--ink-muted); text-decoration: none; border-radius: .4rem; font-size: .92rem; }
.site-nav a:hover, .site-nav a.current { color: var(--green-dark); background: var(--green-soft); }
.site-nav a.current { font-weight: 700; }

.intro { background: linear-gradient(180deg, #f5faf6 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.intro-inner { width: min(100% - 2.5rem, var(--content)); margin: 0 auto; padding: clamp(2rem, 5vw, 4.25rem) 0 var(--space-5); }
.eyebrow { margin: 0 0 .55rem; color: var(--green-dark); font-size: .8rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, p { overflow-wrap: anywhere; }
h1 { max-width: 54rem; margin: 0; color: #273034; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.12; letter-spacing: -.035em; }
.subtitle { margin: 1rem 0 0; color: var(--green-dark); font-size: clamp(1.02rem, 1.7vw, 1.25rem); font-weight: 650; line-height: 1.45; }
.draft-notice { display: flex; align-items: flex-start; gap: .8rem; max-width: 55rem; margin-top: var(--space-5); padding: .95rem 1.1rem; border: 1px solid #ead59d; border-left: 4px solid var(--warning-line); border-radius: .45rem; background: var(--warning-bg); }
.draft-notice p { margin: 0; font-size: .93rem; line-height: 1.55; }
.notice-mark { display: grid; place-items: center; flex: 0 0 1.5rem; width: 1.5rem; height: 1.5rem; margin-top: .08rem; color: #684b00; background: #f4df9f; border-radius: 50%; font-weight: 800; line-height: 1; }

.document-meta { width: min(100% - 2.5rem, var(--content)); margin: 1.5rem auto 0; display: grid; grid-template-columns: minmax(9rem, .7fr) minmax(9rem, .7fr) minmax(18rem, 1.6fr); gap: .75rem; }
.meta-card { min-width: 0; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--white); }
.meta-label { display: block; margin-bottom: .15rem; color: var(--ink-muted); font-size: .72rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.meta-card strong { display: block; line-height: 1.4; font-size: .96rem; }
.meta-original-title { grid-column: 1 / -1; }

.actions { width: min(100% - 2.5rem, var(--content)); margin: 1.25rem auto 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.action-button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .65rem 1rem; color: var(--green-dark); background: var(--white); border: 1px solid #9ab9a3; border-radius: .45rem; font: inherit; font-size: .92rem; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.action-button:hover { color: #12472a; background: var(--green-soft); border-color: var(--green); }
.action-primary { color: var(--white); background: var(--green-dark); border-color: var(--green-dark); }
.action-primary:hover { color: var(--white); background: #164d2e; }
.action-button[hidden] { display: none; }

.document-layout { width: min(100% - 2.5rem, var(--content)); margin: 0 auto clamp(3rem, 7vw, 6rem); display: grid; grid-template-columns: minmax(14rem, 17rem) minmax(0, var(--reading)); justify-content: space-between; align-items: start; gap: clamp(2rem, 5vw, 4.5rem); }
.toc-wrap { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); }
.toc { overflow: hidden; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); box-shadow: 0 5px 18px rgba(35, 66, 47, .04); }
.toc summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 48px; padding: .75rem 1rem; color: var(--green-dark); font-weight: 750; cursor: pointer; list-style-position: inside; }
.toc summary::marker { color: var(--green); }
.toc-count { color: var(--ink-muted); font-size: .75rem; font-weight: 650; }
.toc nav { max-height: calc(100vh - 6rem); overflow-y: auto; padding: 0 .7rem .75rem; }
.toc ol { display: grid; gap: .12rem; margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: .45rem .55rem; color: #4b5558; border-radius: .35rem; font-size: .84rem; line-height: 1.35; text-decoration: none; }
.toc a span { color: var(--green-dark); font-variant-numeric: tabular-nums; font-weight: 750; }
.toc a:hover, .toc a:focus-visible { color: var(--green-dark); background: #e8f2eb; }
.terms-document { min-width: 0; color: #343d40; }
.terms-document h2 { margin: 0 0 1rem; color: #234d34; font-size: 1.42rem; line-height: 1.3; letter-spacing: -.012em; }
.terms-document h2 span { color: var(--green); font-variant-numeric: tabular-nums; }
.term-section { padding: 1.9rem 0 1.65rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1.4rem; }
.term-section:first-of-type { padding-top: 1.45rem; }
.term-section p { margin: 0 0 .9rem; }
.term-section p:last-child { margin-bottom: 0; }
.clause-label { color: #263b2d; font-weight: 750; font-variant-numeric: tabular-nums; }
.supplier-details { list-style: none; padding-left: 0 !important; margin: 0.8rem 0 1.2rem !important; display: grid; gap: 0.55rem; }
.supplier-details li { margin: 0 !important; padding: 0.35rem 0.5rem; background: #fbfdfc; border-left: 3px solid var(--green); border-radius: 0 4px 4px 0; font-size: 0.95rem; }
.highlight-badge { display: inline-block; padding: 0.15rem 0.5rem; background: #e8f5ec; color: var(--green-dark); border-radius: 4px; font-weight: 600; }
.highlight-badge a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.highlight-badge a:hover { color: var(--green); }
.term-section ul { margin: .45rem 0 1rem; padding-left: 1.45rem; }
.term-section li { margin: .4rem 0; padding-left: .2rem; }
.term-section li::marker { color: var(--green); }
.scope-box { margin: 0 0 1.1rem; padding: 1.35rem 1.45rem; border: 1px solid #cbded0; border-left: 4px solid var(--green); border-radius: .45rem; background: var(--green-soft); }
.scope-box h2 { margin-bottom: .7rem; color: var(--green-dark); font-size: 1.06rem; letter-spacing: .055em; text-transform: uppercase; }
.scope-box p { margin: 0; color: #384541; font-size: .95rem; line-height: 1.6; }

.site-footer { padding: 2rem max(1.25rem, calc((100% - var(--content)) / 2)); color: #e8efea; background: #263331; }
.footer-inner { display: grid; grid-template-columns: minmax(10rem, .8fr) minmax(18rem, 1.5fr) minmax(10rem, .8fr); align-items: start; gap: 2rem; }
.footer-brand img { width: min(100%, 15rem); padding: .55rem; border-radius: .3rem; background: white; }
.footer-brand p { margin: .6rem 0 0; color: #d0dbd3; font-size: .88rem; }
.site-footer address { font-style: normal; line-height: 1.8; overflow-wrap: anywhere; }
.site-footer a { color: #d7f0de; }
.site-footer a:hover { color: white; }
.footer-links { margin: 0; line-height: 2; }
.footer-note { max-width: var(--content); margin: 1.6rem auto 0; padding-top: 1rem; color: #bdcac1; border-top: 1px solid #52625a; font-size: .82rem; }

@media (max-width: 900px) {
  .document-layout { grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr); gap: 1.5rem; }
  .document-meta { grid-template-columns: 1fr 1fr; }
  .meta-scope { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr 1.5fr; }
  .footer-links { grid-column: 2; }
}
@media (max-width: 650px) {
  body { font-size: .98rem; }
  .header-inner { width: min(100% - 1.5rem, var(--content)); min-height: auto; padding: .8rem 0; align-items: flex-start; flex-direction: column; gap: .55rem; }
  .brand { width: min(72vw, 17rem); min-width: 0; }
  .site-nav { width: 100%; justify-content: flex-start; margin-left: -.35rem; gap: .15rem; }
  .site-nav a { min-height: 44px; padding: .45rem .65rem; font-size: .88rem; }
  .intro-inner { width: min(100% - 1.5rem, var(--content)); padding: 2rem 0 1.5rem; }
  h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .draft-notice { margin-top: 1.3rem; padding: .85rem; }
  .document-meta, .actions, .document-layout { width: min(100% - 1.5rem, var(--content)); }
  .document-meta { grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: 1rem; }
  .meta-card { padding: .75rem; }
  .meta-card strong { font-size: .9rem; }
  .meta-scope, .meta-original-title { grid-column: 1 / -1; }
  .actions { margin: 1rem auto 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
  .action-button { min-height: 48px; padding: .6rem .55rem; font-size: .83rem; }
  .action-button:last-child { grid-column: 1 / -1; }
  .document-layout { display: flex; flex-direction: column; gap: 1.2rem; }
  .toc-wrap { position: static; width: 100%; max-height: none; }
  .toc { width: 100%; }
  .toc nav { max-height: 38vh; }
  .terms-document { width: 100%; }
  .terms-document h2 { font-size: 1.28rem; }
  .term-section { padding: 1.5rem 0 1.35rem; }
  .scope-box { padding: 1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-links { grid-column: auto; }
  .footer-brand img { width: min(100%, 14rem); }
}
@media (max-width: 380px) {
  .document-meta { grid-template-columns: 1fr; }
  .meta-scope, .meta-original-title { grid-column: auto; }
  .actions { grid-template-columns: 1fr; }
  .action-button:last-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  @page { margin: 18mm 17mm; }
  html, body { min-width: 0; color: #111; background: #fff; font: 10pt/1.5 Georgia, "Times New Roman", serif; }
  .site-header, .actions, .toc-wrap, .skip-link, .site-footer { display: none !important; }
  .intro { background: #fff; border: 0; }
  .intro-inner { width: auto; padding: 0 0 9pt; }
  .eyebrow { margin-bottom: 4pt; font-size: 8pt; }
  h1 { max-width: none; color: #111; font-size: 20pt; }
  .subtitle { margin-top: 5pt; font-size: 11pt; }
  .draft-notice { max-width: none; margin-top: 8pt; padding: 7pt 9pt; }
  .document-meta { width: auto; margin: 0 0 10pt; grid-template-columns: 1fr 1fr 2fr; gap: 5pt; }
  .meta-card { padding: 6pt 7pt; border-color: #aaa; }
  .meta-original-title { grid-column: 1 / -1; }
  .meta-label { font-size: 7pt; }
  .meta-card strong { font-size: 9pt; }
  .document-layout { display: block; width: auto; margin: 0; }
  .terms-document { max-width: none; }
  .scope-box { break-inside: avoid; background: #fff; }
  .term-section { padding: 9pt 0; border-color: #aaa; break-inside: auto; }
  .terms-document h2 { margin-bottom: 7pt; font-size: 13pt; color: #111; }
  .terms-document p, .terms-document li { orphans: 3; widows: 3; }
  .term-section ul { padding-left: 18pt; }
  a { color: #111; text-decoration: none; }
  a[href]::after { content: none !important; }
}
