@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter/Inter-Variable.subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 750;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/static/fonts/manrope/manrope-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
}

:root {
  --ff-navy: #0d2530;
  --ff-navy-raised: #113745;
  --ff-bg: #f3f3ef;
  --ff-paper: #fbfcfa;
  --ff-surface: #fffefa;
  --ff-surface-muted: #edf2ef;
  --ff-ink: #152b34;
  --ff-ink-soft: #2d4852;
  --ff-muted: #5d7178;
  --ff-line: #d5dfdc;
  --ff-teal: #2e7182;
  --ff-teal-dark: #205666;
  --ff-green: #21845e;
  --ff-green-dark: #145f43;
  --ff-green-soft: #e1f0e8;
  --ff-red: #a94452;
  --ff-red-soft: #f8e6e8;
  --ff-heading: "Manrope", "Inter", Arial, sans-serif;
  --ff-body: "Inter", Arial, sans-serif;
  --ff-subpage-shell: min(1180px, calc(100% - 48px));
}

.ff-subpage-body {
  min-width: 320px;
  margin: 0;
  background: var(--ff-paper);
  color: var(--ff-ink);
  font-family: var(--ff-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ff-subpage-body a {
  color: var(--ff-teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ff-subpage-body a:hover { color: var(--ff-green-dark); }
.ff-subpage-body :focus-visible { outline: 3px solid #58bfa0; outline-offset: 3px; }

.ff-subpage-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--ff-surface);
  padding: 10px 14px;
  color: var(--ff-ink);
  font-weight: 700;
}

.ff-subpage-skip:focus { transform: translateY(0); }

.ff-subpage-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 37, 48, 0.97);
  color: #fff;
  backdrop-filter: blur(10px);
}

.ff-subpage-header__inner {
  display: grid;
  width: var(--ff-subpage-shell);
  min-height: 72px;
  margin-inline: auto;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.ff-subpage-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit !important;
  font-family: var(--ff-heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.ff-subpage-brand img { display: block; border-radius: 9px; }
.ff-subpage-nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.3vw, 34px); }
.ff-subpage-nav a,
.ff-subpage-actions > a:first-child {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #d8e2e4;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.ff-subpage-nav a:hover,
.ff-subpage-actions > a:first-child:hover { color: #fff; }
.ff-subpage-actions { display: flex; align-items: center; gap: 16px; }
.ff-subpage-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9px;
  padding: 9px 17px;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.ff-subpage-button:hover { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.07); }

.ff-subpage-footer { margin-top: 72px; background: #081c25; color: #fff; }
.ff-subpage-footer__inner {
  display: flex;
  width: var(--ff-subpage-shell);
  min-height: 170px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 38px;
}
.ff-subpage-footer__brand p { margin: 12px 0 0; color: #8fa9af; font-size: 13px; }
.ff-subpage-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 24px; }
.ff-subpage-footer nav a { color: #9fb4b9; font-size: 13px; text-decoration: none; }
.ff-subpage-footer nav a:hover { color: #fff; }

.ff-legal-page { background: linear-gradient(180deg, var(--ff-bg) 0, var(--ff-paper) 310px); }
.legal-shell { width: min(860px, calc(100% - 40px)); margin: 0 auto; padding: 66px 0 0; }
.legal-hero { margin-bottom: 26px; }
.legal-hero .legal-eyebrow {
  margin: 0 0 12px;
  color: var(--ff-teal);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.legal-hero h1 {
  margin: 0 0 12px;
  color: var(--ff-ink);
  font-family: var(--ff-heading);
  font-size: clamp(2.45rem, 7vw, 4.4rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.legal-hero .meta { margin: 0; color: var(--ff-muted); font-size: 0.95rem; }
.legal-doc {
  border: 1px solid var(--ff-line);
  border-radius: 14px;
  background: var(--ff-surface);
  padding: clamp(24px, 5vw, 50px);
  box-shadow: 0 20px 54px rgba(25, 46, 54, 0.085);
  line-height: 1.68;
}
.legal-doc h2 {
  margin: 2.25rem 0 0.8rem;
  border-bottom: 1px solid var(--ff-line);
  padding-bottom: 8px;
  color: var(--ff-ink);
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 { margin: 1.35rem 0 0.55rem; color: var(--ff-ink); font-family: var(--ff-heading); font-size: 1rem; }
.legal-doc p { margin: 0 0 0.9rem; color: var(--ff-ink-soft); }
.legal-doc ul { margin: 0 0 1rem 1.15rem; padding: 0; color: var(--ff-ink-soft); }
.legal-doc li { margin-bottom: 0.4rem; }
.legal-doc strong { color: var(--ff-ink); }
.legal-doc a { color: var(--ff-teal-dark) !important; font-weight: 650 !important; }
.legal-related { display: flex; justify-content: space-between; gap: 18px; margin: 24px 0 0; }
.legal-related a { font-weight: 700; text-decoration: none; }

@media (max-width: 900px) {
  :root { --ff-subpage-shell: calc(100% - 32px); }
  .ff-subpage-header__inner { grid-template-columns: 1fr auto; }
  .ff-subpage-nav { display: none; }
}

@media (max-width: 600px) {
  :root { --ff-subpage-shell: calc(100% - 24px); }
  .ff-subpage-header__inner { min-height: 68px; }
  .ff-subpage-actions > a:first-child { display: none; }
  .ff-subpage-button { min-height: 40px; padding: 7px 11px; font-size: 13px; }
  .ff-subpage-brand { font-size: 15px; }
  .ff-subpage-footer__inner { align-items: flex-start; flex-direction: column; }
  .ff-subpage-footer nav { justify-content: flex-start; }
  .legal-shell { width: min(100% - 24px, 860px); padding-top: 44px; }
  .legal-doc { border-radius: 12px; }
  .legal-related { flex-direction: column; }
}
