/* euno-site — /legal document set.
   Design language taken from the landing page, not invented: 1200px canvas,
   Spectral for display, DM Sans for text, cream #F6F3EC ground, rust accent,
   hairline rules, light footer. Fonts are FIRST-PARTY on purpose — the cookie
   notice states that nothing third-party loads on these pages, and a webfont CDN
   would make that false and hand visitor IPs to a third party. */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/dm-sans-var.woff2") format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/spectral-400.woff2") format('woff2');
}

:root {
  --bg: #F6F3EC;
  --surface: #FFFDF8;
  --ink: #16130F;
  --ink-soft: #1C1310;
  --text: #423C33;
  --muted: #5F584A;
  --faint: #6E6656;
  --rule: #E4DECE;
  --rule-soft: #EDE8DC;
  --rust: #9A5314;
  --gold: #8A6A1F;

  --canvas: 1200px;       /* matches the landing page content width exactly */
  --prose: 40rem;         /* reading column */
  --index: 13rem;         /* sticky section index */
  --sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: 'Spectral', ui-serif, Georgia, serif;
  --shadow: 0 1px 2px rgba(22,19,15,.04), 0 18px 40px -20px rgba(22,19,15,.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--ink-soft); color: var(--bg);
  padding: 11px 18px; border-radius: 0 0 10px 0;
  font: 500 14px/1 var(--sans);
}
.skip:focus { left: 0; }

.canvas {
  width: 100%;
  max-width: var(--canvas);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3.2vw, 2.5rem);
}

/* ---------------- top bar ---------------- */

.nav {
  position: sticky; top: 0; z-index: 12;
  background: rgba(246, 243, 236, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav .canvas {
  display: flex; align-items: center; gap: 1.5rem;
  height: 80px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: .6rem;
  text-decoration: none; color: var(--ink);
  font: 400 23px/1 var(--serif);
}
.brand .sep { color: var(--rule); font-size: 20px; }
.brand .by { font: 400 12px/1 var(--sans); color: var(--faint); }
.brand .ziro { font: 500 14px/1 var(--serif); color: var(--ink); letter-spacing: .02em; }
.navlinks {
  margin-left: auto; display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.9rem);
  list-style: none; padding: 0;
}
.navlinks a {
  font: 400 14.5px/1 var(--sans); color: var(--muted); text-decoration: none;
  transition: color .25s;
}
.navlinks a:hover, .navlinks a:focus-visible, .navlinks a[aria-current] { color: var(--ink); }
.pill {
  display: inline-flex; align-items: center; height: 40px; padding: 0 20px;
  border-radius: 999px; background: var(--ink-soft); color: var(--bg) !important;
  font: 500 14.5px/1 var(--sans); text-decoration: none;
  transition: transform .25s cubic-bezier(.22,.61,.36,1), opacity .25s;
}
.pill:hover { transform: translateY(-1px); opacity: .92; }

/* ---------------- masthead ---------------- */

.masthead {
  text-align: center;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(2.75rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.eyebrow {
  margin: 0 0 clamp(1.1rem, 2vw, 1.6rem);
  font: 500 12px/1 var(--sans);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--rust);
}
h1 {
  margin: 0 auto;
  max-width: 17ch;
  font: 400 clamp(44px, 6.4vw, 82px)/0.99 var(--serif);
  letter-spacing: -0.021em;
  color: var(--ink);
  text-wrap: balance;
}
.dateline {
  margin: clamp(1.5rem, 3vw, 2.1rem) 0 0;
  font: 400 13.5px/1.6 var(--sans);
  color: var(--faint);
  letter-spacing: .01em;
}
.dateline b { font-weight: 500; color: var(--muted); }
.standfirst {
  margin: clamp(1.6rem, 3vw, 2.2rem) auto 0;
  max-width: 34rem;
  font: 400 clamp(17.5px, 1.5vw, 19.5px)/1.62 var(--sans);
  color: var(--muted);
  text-wrap: pretty;
}

/* entrance — one orchestrated reveal, not scattered micro-animations */
@media (prefers-reduced-motion: no-preference) {
  .masthead > * { animation: rise .85s cubic-bezier(.22,.61,.36,1) both; }
  .masthead > .eyebrow    { animation-delay: .02s; }
  .masthead > h1          { animation-delay: .09s; }
  .masthead > .dateline   { animation-delay: .19s; }
  .masthead > .standfirst { animation-delay: .25s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------------- document body ---------------- */

.doc {
  display: grid;
  grid-template-columns: var(--index) minmax(0, 1fr);
  gap: 0 clamp(2.5rem, 5vw, 5rem);
  padding: clamp(2.75rem, 5vw, 4.5rem) 0 clamp(4rem, 8vw, 7rem);
}

.index { position: relative; }
.index-inner { position: sticky; top: calc(80px + 2.25rem); }
.index h2 {
  margin: 0 0 1rem;
  font: 500 11.5px/1 var(--sans);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint);
}
.index ol { margin: 0; padding: 0; list-style: none; counter-reset: ix; }
.index li { counter-increment: ix; margin: 0 0 .62rem; }
.index a {
  display: grid; grid-template-columns: 1.5rem 1fr; align-items: baseline;
  font: 400 13.5px/1.42 var(--sans); color: var(--muted);
  text-decoration: none; transition: color .25s;
}
.index a::before {
  content: counter(ix);
  font-variant-numeric: tabular-nums;
  color: var(--faint);
  transition: color .25s;
}
.index a:hover, .index a:focus-visible { color: var(--ink); }
.index a:hover::before, .index a:focus-visible::before { color: var(--rust); }

.prose { max-width: var(--prose); counter-reset: sec; }

.clause {
  counter-increment: sec;
  padding: 0 0 clamp(2.25rem, 4vw, 3.25rem);
  scroll-margin-top: calc(80px + 1.5rem);   /* the id lives here, so the offset must too */
}
.clause + .clause { border-top: 1px solid var(--rule-soft); padding-top: clamp(2.25rem, 4vw, 3.25rem); }

.clause > h2 {
  margin: 0 0 1.1rem;
  font: 400 clamp(25px, 2.5vw, 31px)/1.2 var(--serif);
  letter-spacing: -0.014em;
  color: var(--ink);
  scroll-margin-top: calc(80px + 1.5rem);
  text-wrap: balance;
}
/* Section numbers are generated, never typed — so they cannot drift out of
   order when a clause is inserted or removed. */
.clause > h2 .num { display: none; }
.clause > h2::before {
  content: "Section " counter(sec);
  display: block;
  margin: 0 0 .6rem;
  font: 500 11.5px/1 var(--sans);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--rust);
}

.clause h3 {
  margin: 2rem 0 .6rem;
  font: 500 15.5px/1.45 var(--sans);
  letter-spacing: .005em;
  color: var(--ink);
}

.clause p, .clause ul, .clause ol { margin: 0 0 1.05rem; }
.clause > p:last-child, .clause > ul:last-child { margin-bottom: 0; }
.clause ul, .clause ol { padding-left: 1.15rem; }
.clause li { margin: 0 0 .55rem; }
.clause li::marker { color: var(--faint); }

.clause a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  transition: text-decoration-color .25s;
}
.clause a:hover, .clause a:focus-visible { text-decoration-color: var(--rust); }
.clause strong { font-weight: 600; color: var(--ink); }

/* clause permalink — legal text gets cited by section, so offer the anchor */
.anchor {
  display: inline-block; margin-top: 1.4rem;
  font: 400 12.5px/1 var(--sans); color: var(--rule);
  text-decoration: none; letter-spacing: .04em;
  opacity: 0; transition: opacity .25s, color .25s;
}
.clause:hover .anchor, .anchor:focus-visible { opacity: 1; }
.anchor:hover { color: var(--rust); }

/* ---------------- callout ---------------- */

.note {
  margin: 1.6rem 0;
  padding: 1.35rem 1.55rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 16px;
}
.note p { margin: 0 0 .65rem; }
.note p:last-child { margin: 0; }

/* ---------------- tables ----------------
   Tables break out past the reading column, into the air on the right. */

.tablewrap {
  margin: 1.8rem 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
@media (min-width: 70rem) {
  .tablewrap { width: calc(100% + 11rem); }
}
.tablescroll { overflow-x: auto; }
table { width: 100%; min-width: 33rem; border-collapse: collapse; font-size: 14.5px; }
caption {
  padding: 1rem 1.35rem .35rem;
  text-align: left;
  font: 500 11.5px/1.45 var(--sans);
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--faint);
}
th, td { padding: .95rem 1.35rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-soft); }
thead th {
  font: 500 11px/1.4 var(--sans);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  border-bottom-color: var(--rule);
}
tbody th { font-weight: 600; color: var(--ink); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
code {
  font: 400 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(22,19,15,.045);
  padding: .12em .4em; border-radius: 5px;
}

/* ---------------- hub ---------------- */

.docs { padding: clamp(2.75rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.docs .sec {
  margin: 0 0 1.25rem;
  font-weight: 500;
  font: 500 11.5px/1 var(--sans);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint);
}
.docs .sec + .docrow { border-top: 1px solid var(--rule); }
.docs .group + .group { margin-top: clamp(3rem, 5vw, 4.25rem); }

.docrow {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr) auto;
  align-items: start;
  gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--text);
  transition: background .3s;
}
.docrow:hover { background: rgba(255,253,248,.7); }
.docname {
  margin: 0;
  font: 400 clamp(21px, 2vw, 25px)/1.25 var(--serif);
  color: var(--ink);
  letter-spacing: -0.012em;
}
.docrow:hover .docname { color: var(--rust); }
.docdesc { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 34rem; }
.docmeta {
  font: 400 12.5px/1.5 var(--sans);
  color: var(--faint);
  white-space: nowrap;
  text-align: right;
}
.badge {
  display: inline-block; margin-top: .45rem; padding: .2em .6em;
  border: 1px solid var(--rule); border-radius: 999px;
  font: 500 10.5px/1.5 var(--sans);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint);
}
.prose-note { max-width: 36rem; margin: 1.3rem 0 0; color: var(--muted); font-size: 15.5px; }
.prose-note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }

/* ---------------- footer ----------------
   Light, hairline-ruled — matching the landing page, which has no dark band. */

.sitefoot {
  border-top: 1px solid var(--rule);
  padding: clamp(2.25rem, 4vw, 3rem) 0 clamp(2.5rem, 4vw, 3.5rem);
}
.footrow {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .75rem 1.5rem;
  padding-bottom: 1.4rem;
}
.footrow .contact {
  margin-left: auto; display: flex; gap: 1.5rem;
  font: 400 13px/1 var(--sans); color: var(--muted);
}
.footrow .contact a { color: var(--muted); text-decoration: none; }
.footrow .contact a:hover { color: var(--ink); }

.footlinks {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 1.6rem;
  margin: 0; padding: 1.4rem 0 0; list-style: none;
  border-top: 1px solid var(--rule);
  font: 400 13px/1 var(--sans);
}
.footlinks a { color: var(--muted); text-decoration: none; }
.footlinks a:hover, .footlinks a[aria-current] { color: var(--ink); }
.footlinks .copy { margin-left: auto; color: var(--faint); }

.disclosure {
  margin: 1.4rem 0 0;
  max-width: 58rem;
  font: 400 12.5px/1.75 var(--sans);
  color: var(--faint);
}
.disclosure b { color: var(--muted); font-weight: 500; }

/* ---------------- focus ---------------- */

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------------- responsive ---------------- */

@media (max-width: 63.999rem) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .index { margin-bottom: 2.75rem; }
  .index-inner { position: static; }
  .index ol { columns: 2; column-gap: 2rem; }
  .index li { break-inside: avoid; }
  .prose { max-width: none; }
  .docrow { grid-template-columns: minmax(0, 1fr) auto; }
  .docdesc { grid-column: 1 / -1; }
}
@media (max-width: 34rem) {
  body { font-size: 16.5px; }
  .nav .canvas { height: 68px; gap: 1rem; }
  .navlinks .hide-sm { display: none; }
  .index ol { columns: 1; }
  .footrow .contact { margin-left: 0; width: 100%; }
  .footlinks .copy { margin-left: 0; width: 100%; }
}
/* company-details tables (class="kv"): stack each row rather than scroll sideways */
@media (max-width: 599px) {
  table.kv { min-width: 0; }
  table.kv th, table.kv td { display: block; }
  table.kv th { padding-bottom: .2rem; border-bottom: 0; }
  table.kv td { padding-top: 0; }
}
/* narrow phones: the brand already links home, so drop the duplicate "Euno" link */
@media (max-width: 440px) {
  .nav .navlinks li:first-child { display: none; }
  .nav .pill { padding: 0 14px; font-size: 14px; }
  .nav .brand { font-size: 21px; gap: .4rem; }
}

/* ---------------- print ----------------
   These documents get attached to matter files, so they must print. */

@media print {
  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.5; }
  .nav, .sitefoot, .skip, .index, .anchor { display: none !important; }
  .canvas { max-width: none; padding: 0; }
  .masthead { text-align: left; padding: 0 0 18pt; border-bottom: 1pt solid #000; }
  .masthead > * { animation: none !important; }
  h1 { font-size: 26pt; max-width: none; }
  .standfirst { margin-left: 0; max-width: none; font-size: 11pt; }
  .doc { display: block; padding: 18pt 0 0; }
  .prose { max-width: none; }
  .clause { page-break-inside: avoid; }
  .clause > h2 { font-size: 14pt; color: #000; }
  .clause a { color: #000; }
  .clause a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; color: #444; }
  .tablewrap { width: 100% !important; border: 1px solid #999; box-shadow: none; }
  th, td { border-bottom: 1px solid #ccc; }
  .note { border: 1px solid #999; box-shadow: none; }
}
