@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --blue-950: #102a56;
  --blue-800: #214782;
  --blue-600: #3672d2;
  --cyan: #18b7e9;
  --sky: #eaf7ff;
  --lavender: #f1efff;
  --pink: #fff0f8;
  --ink: #172033;
  --muted: #607086;
  --border: #dbe5f0;
  --background: #f6f9fc;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(25, 67, 125, 0.13);
  --shadow-soft: 0 12px 34px rgba(25, 67, 125, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  background:
    radial-gradient(circle at 6% 4%, rgba(24, 183, 233, 0.16), transparent 23rem),
    radial-gradient(circle at 94% 14%, rgba(153, 126, 255, 0.12), transparent 26rem),
    var(--background);
  color: var(--ink);
  font-family: 'Manrope', Arial, Helvetica, sans-serif;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(33, 71, 130, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  content: '';
  mask-image: linear-gradient(to bottom, black, transparent 60%);
}

a {
  color: var(--blue-800);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 12px;
  width: min(1120px, calc(100% - 32px));
  min-height: 68px;
  margin: 16px auto 30px;
  padding: 10px 12px 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(219, 229, 240, 0.9);
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(25, 67, 125, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--blue-950);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand::before {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--cyan), var(--blue-600));
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(54, 114, 210, 0.25);
  color: var(--white);
  content: 'F';
  font-size: 1rem;
}

.site-header nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-header nav a {
  padding: 10px 13px;
  color: #4c5b70;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  background: var(--sky);
  color: var(--blue-800);
  outline: none;
}

.legal-document {
  position: relative;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto 56px;
  padding: clamp(28px, 6vw, 64px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(219, 229, 240, 0.9);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.legal-document::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 210px;
  height: 210px;
  border-radius: 0 0 0 100%;
  background: linear-gradient(145deg, rgba(24, 183, 233, 0.12), rgba(153, 126, 255, 0.1));
  content: '';
  pointer-events: none;
}

.eyebrow {
  position: relative;
  width: fit-content;
  margin: 0;
  padding: 7px 11px;
  color: var(--blue-800);
  background: var(--sky);
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  position: relative;
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--blue-950);
  font-size: clamp(2rem, 6vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.updated {
  position: relative;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.intro {
  position: relative;
  max-width: 740px;
  margin: 24px 0 40px;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.75;
}

section {
  position: relative;
  margin-top: 34px;
}

.legal-document > section:not(.document-grid) {
  padding: 0 0 30px 22px;
  border-bottom: 1px solid var(--border);
}

.legal-document > section:not(.document-grid)::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 7px;
  height: 7px;
  background: linear-gradient(145deg, var(--cyan), var(--blue-600));
  border-radius: 50%;
  content: '';
  box-shadow: 0 0 0 5px var(--sky);
}

h2 {
  margin: 0 0 10px;
  color: var(--blue-950);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.35;
}

p {
  margin: 0;
}

.legal-document section p,
.legal-document li {
  color: #526175;
}

ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

li + li {
  margin-top: 9px;
}

.contact {
  position: relative;
  margin-top: 36px;
  padding: clamp(20px, 4vw, 28px);
  background: linear-gradient(135deg, var(--sky), var(--lavender));
  border: 1px solid rgba(54, 114, 210, 0.16);
  border-radius: 20px;
}

.contact h2 {
  padding-left: 34px;
}

.contact h2::before {
  position: absolute;
  top: 25px;
  left: 25px;
  content: '✉';
  font-size: 1.15rem;
}

.pending {
  color: #875116 !important;
  font-weight: 700;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.document-card {
  position: relative;
  min-height: 245px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.document-card::after {
  width: 42px;
  height: 42px;
  margin-top: auto;
  display: grid;
  place-items: center;
  align-self: flex-end;
  background: var(--blue-950);
  border-radius: 14px;
  color: var(--white);
  content: '→';
  font-size: 1.2rem;
  transition: transform 180ms ease, background 180ms ease;
}

.document-card:nth-child(1) {
  background: linear-gradient(155deg, var(--white) 40%, var(--sky));
}

.document-card:nth-child(2) {
  background: linear-gradient(155deg, var(--white) 40%, var(--lavender));
}

.document-card:nth-child(3) {
  background: linear-gradient(155deg, var(--white) 40%, var(--pink));
}

.document-card:hover,
.document-card:focus-visible {
  border-color: rgba(54, 114, 210, 0.38);
  box-shadow: 0 20px 42px rgba(25, 67, 125, 0.16);
  outline: none;
  transform: translateY(-5px);
}

.document-card:hover::after,
.document-card:focus-visible::after {
  background: var(--blue-600);
  transform: translateX(3px);
}

.document-card > span {
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  display: grid;
  place-items: center;
  color: var(--blue-800);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(54, 114, 210, 0.15);
  border-radius: 13px;
  font-size: 0.76rem;
  font-weight: 800;
}

.document-card h2 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.document-card p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.65;
}

.site-footer {
  width: min(920px, calc(100% - 32px));
  margin: -24px auto 38px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 840px) {
  .document-grid {
    grid-template-columns: 1fr;
  }

  .document-card {
    min-height: 210px;
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 8px;
    width: calc(100% - 20px);
    margin: 10px auto 20px;
    padding: 10px;
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    border-radius: 17px;
  }

  .brand {
    padding: 2px 4px;
  }

  .brand::before {
    width: 34px;
    height: 34px;
  }

  .site-header nav {
    width: 100%;
    padding-bottom: 2px;
    justify-content: flex-start;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  .site-header nav a {
    padding: 9px 10px;
    background: #f7f9fc;
    border: 1px solid #edf1f6;
    font-size: 0.78rem;
  }

  .legal-document {
    width: calc(100% - 20px);
    margin-bottom: 38px;
    padding: 28px 20px 34px;
    border-radius: 22px;
  }

  .legal-document::before {
    width: 120px;
    height: 120px;
  }

  h1 {
    font-size: clamp(1.85rem, 11vw, 2.6rem);
  }

  .intro {
    margin-bottom: 28px;
  }

  .legal-document > section:not(.document-grid) {
    padding-left: 18px;
  }

  .document-card {
    min-height: 200px;
    padding: 20px;
  }

  .document-card > span {
    margin-bottom: 18px;
  }
}

@media (max-width: 360px) {
  .site-header,
  .legal-document,
  .site-footer {
    width: calc(100% - 14px);
  }

  .legal-document {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
