@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/legal/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.top, .foot {
  font-family: 'Inter Variable', Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.top {
  --chrome: #f8fbfc;
  --line: #ccd9e0;
  --line-strong: #b7c7d0;
  --ink: #20303c;
  --surface: #fffefb;
  --hover: #eef6f8;
  --highlight: #e4eef2;
  --fill: #1376a3;
  --fill-hover: #04638f;
  --on-fill: #ffffff;
  --accent-rgb: 19, 118, 163;
  --shadow-small: 0 1px 1px rgba(255, 255, 255, .9) inset, 0 2px 7px rgba(43, 65, 78, .10);
  --focus: 0 0 0 3px rgba(19, 118, 163, .24);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--chrome) 88%, transparent);
  color: var(--ink);
  backdrop-filter: saturate(1.4) blur(10px);
}

.foot {
  --footer: #1b1b1b;
  --line: #333333;
  --ink: #ebe8df;
  --ink-soft: #bdbdb8;
  --muted: #8f8f8b;
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--footer);
  color: var(--ink);
}

.top .wrap, .foot .wrap { width: min(1160px, 100% - 64px); max-width: none; margin-inline: auto; padding-inline: 0; }

.top-in { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.top-nav { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.top .brand, .foot .brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.top .brand img, .foot .brand img { width: 28px; height: 28px; }
.top .brand span, .foot .brand span { font-size: 1.12rem; font-weight: 700; letter-spacing: -.03em; }

.top .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: linear-gradient(180deg, var(--surface), var(--hover));
  color: var(--ink);
  box-shadow: var(--shadow-small);
  font: inherit;
  font-size: .76rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transform: none;
}

.top .btn:hover { background: linear-gradient(180deg, var(--surface), var(--highlight)); color: var(--ink); text-decoration: none; transform: none; }
.top .btn:focus-visible { outline: 0; box-shadow: var(--focus), var(--shadow-small); }
.top .btn-primary { border-color: var(--fill-hover); background: linear-gradient(180deg, var(--fill), var(--fill-hover)); color: var(--on-fill); box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 2px 6px rgba(var(--accent-rgb), .28); }
.top .btn-primary:hover { background: linear-gradient(180deg, var(--fill), var(--fill)); color: var(--on-fill); }

.foot-grid { display: grid; grid-template-columns: .8fr repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot h2 { margin: 0 0 12px; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .12em; line-height: 1.6; text-transform: uppercase; }
.foot ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline dashed; text-underline-offset: .2em; }
.foot ul a { font-size: .86rem; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.foot-base nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.foot-gh { display: inline-flex; align-items: center; gap: 6px; }
.foot-gh svg { width: 15px; height: 15px; }

@media (max-width: 991.98px) {
  .top .wrap, .foot .wrap { width: min(100%, 100% - 48px); }
  .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .top .wrap, .foot .wrap { width: min(100%, 100% - 32px); }
  .top-nav .btn:not(.btn-primary) { display: none; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
