@font-face { font-family: 'Archivo Black'; font-weight: 400; font-display: swap; src: url(../assets/fonts/ArchivoBlack-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url(../assets/fonts/Poppins-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url(../assets/fonts/Poppins-600.woff2) format('woff2'); }

:root { --amber: #F9B516; --ember: #EF7522; --ink: #000; --paper: #fff; --muted: #555149; --line: #E7E1D3; --tint: #FFF7E3; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: #1B1B1B; font-family: 'Poppins', system-ui, 'Segoe UI', Calibri, sans-serif; font-size: 15px; line-height: 1.65; }
.doc { max-width: 760px; margin: 0 auto; padding: 32px 20px 56px; }
.doc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 4px solid var(--amber); padding-bottom: 16px; margin-bottom: 24px; }
.doc-head img { height: 44px; width: auto; }
.doc-head a.back { font-size: .85rem; color: inherit; }
h1, h2 { font-family: 'Archivo Black', 'Arial Black', sans-serif; font-weight: 400; color: var(--ink); line-height: 1.15; }
h1 { font-size: 1.9rem; margin: 0 0 .3rem; }
h2 { font-size: 1.1rem; margin: 2rem 0 .6rem; }
h2 .n { display: inline-block; min-width: 2em; color: var(--ember); }
.meta { color: var(--muted); font-size: .85rem; margin: 0 0 1.5rem; }
.summary { background: var(--tint); border-left: 4px solid var(--amber); padding: 14px 18px; border-radius: 6px; margin-bottom: 1.5rem; }
.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
ol.clauses, ol.sub { padding-left: 1.4rem; }
li { margin-bottom: .45rem; }
table { width: 100%; border-collapse: collapse; margin: .6rem 0 1rem; font-size: .9rem; }
th, td { text-align: left; vertical-align: top; border: 1px solid var(--line); padding: 8px 10px; }
th { background: var(--tint); font-weight: 600; }
.foot { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

/* Inside the landing-page pop-up the dialog supplies the title bar */
.embed .doc-head { display: none; }
.embed .doc { padding-top: 20px; }

@media print {
  @page { size: A4; margin: 16mm 16mm 18mm; }
  body { font-size: 10.5pt; }
  .doc { max-width: none; padding: 0; }
  .doc-head a.back { display: none; }
  h2 { break-after: avoid; }
  li, tr { break-inside: avoid; }
}
