@font-face {
  font-family: "Laisha";
  src: url("./fonts/Laisha.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Trap";
  src: url("./fonts/Trap-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Trap";
  src: url("./fonts/Trap-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #06183e;
  --muted: #667085;
  --soft: #f6f9fc;
  --line: #dce5ee;
  --aqua: #55d7d1;
  --blue: #0a1b4f;
  --blue-2: #163a8c;
  --orange: #ffb457;
  --white: #fff;
  --shadow: 0 24px 70px rgba(6, 24, 62, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Trap, Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1329px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 12px 0;
  background: rgba(246, 249, 252, .88);
  border-bottom: 1px solid rgba(10, 27, 79, .08);
  backdrop-filter: blur(18px);
}

.nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 68px;
  border: 1px solid rgba(10, 27, 79, .08);
  border-radius: 999px;
  background: var(--white);
}

.brand img {
  width: 112px;
}

.nav-links {
  display: flex;
  justify-self: center;
  align-items: center;
  padding: 7px;
  border: 1px solid rgba(10, 27, 79, .08);
  border-radius: 999px;
  background: var(--white);
  white-space: nowrap;
}

.nav-links a {
  min-width: 112px;
  padding: 10px 16px;
  border-radius: 999px;
  text-align: center;
  transition: color .2s ease, background .2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--blue-2);
  background: #eef3ff;
}

.nav-action,
.document-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  font-weight: 500;
  transition: transform .2s ease, box-shadow .2s ease;
}

.nav-action:hover,
.document-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(6, 24, 62, .16);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--blue);
  background: var(--white);
  cursor: pointer;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 126px;
  color: var(--blue);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .75) 0 8%, transparent 8.5%),
    radial-gradient(circle at 82% 60%, rgba(255, 255, 255, .28) 0 16%, transparent 16.5%),
    linear-gradient(135deg, #bdf4ef 0%, var(--aqua) 52%, #7ee3dc 100%);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  opacity: .55;
}

.legal-hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: Laisha, Georgia, serif;
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: .98;
}

.legal-hero p {
  max-width: 670px;
  margin: 24px 0 0;
  font-size: clamp(17px, 2vw, 21px);
}

.document-section {
  position: relative;
  z-index: 2;
  margin-top: -66px;
  padding-bottom: 88px;
}

.document-card {
  overflow: hidden;
  border: 1px solid rgba(10, 27, 79, .1);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.document-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.document-label {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.document-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--white);
  background: var(--blue-2);
  font-size: 12px;
  font-weight: 700;
}

.document-label strong,
.document-label small {
  display: block;
}

.document-label strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-label small {
  color: var(--muted);
}

.document-actions {
  display: flex;
  gap: 10px;
}

.document-action {
  min-height: 46px;
  padding-inline: 22px;
  font-size: 14px;
}

.document-action.secondary {
  color: var(--blue);
  background: #eef3ff;
  border-color: #dbe5ff;
}

.pdf-viewer {
  display: block;
  width: 100%;
  height: min(78vh, 940px);
  min-height: 650px;
  border: 0;
  background: #e8edf3;
}

.pdf-fallback {
  padding: 56px 28px;
  text-align: center;
}

.pdf-fallback p {
  margin-top: 0;
  color: var(--muted);
}

.site-footer {
  padding: 0 0 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 12px;
}

.footer-brand,
.footer-links {
  min-height: 330px;
  border-radius: 20px;
  box-shadow: 8px 8px 30px rgba(6, 24, 62, .08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  color: var(--white);
  background: var(--blue);
}

.footer-brand strong {
  font-size: 32px;
}

.footer-mark {
  width: 112px;
  height: 112px;
  margin: auto;
  background: url("./images/footer-spiral.png") center / contain no-repeat;
}

.footer-links {
  display: grid;
  align-content: space-between;
  gap: 32px;
  padding: 48px 54px 24px;
  background: var(--white);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.footer-links h2 {
  margin: 0 0 10px;
  color: #a9b0bd;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  width: fit-content;
  margin: 7px 0;
  font-size: 17px;
}

.footer-links a:hover {
  color: var(--blue-2);
}

.copyright {
  color: #5f6879;
  font-size: 12px;
}

.coop-word {
  overflow: hidden;
  margin-top: 24px;
}

.coop-word img {
  width: 100%;
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: auto 1fr auto;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    justify-self: end;
  }

  .nav-action {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    right: 32px;
    left: 32px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .site-header.open .nav-links {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 32px, 1329px);
  }

  .brand {
    width: 112px;
    height: 58px;
  }

  .brand img {
    width: 94px;
  }

  .legal-hero {
    padding: 58px 0 100px;
  }

  .document-section {
    margin-top: -48px;
    padding-bottom: 60px;
  }

  .document-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .document-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdf-viewer {
    height: 72vh;
    min-height: 520px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-links {
    min-height: 290px;
  }

  .footer-links {
    padding: 36px 28px 24px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    right: 16px;
    left: 16px;
  }

  .legal-hero h1 {
    font-size: 46px;
  }

  .document-label strong {
    max-width: 220px;
  }

  .document-actions,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .pdf-viewer {
    min-height: 460px;
  }
}
