:root {
  --navy: #071525;
  --deep: #031221;
  --blue: #2b64e8;
  --blue-strong: #1265f3;
  --ice: #8fc1ff;
  --ink: #172033;
  --muted: #667085;
  --line: #e1e7ef;
  --soft: #f5f8fc;
  --white: #fff;
  --green: #16a36a;
  --container: 1220px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Manrope", var(--sans);
  --shadow: 0 24px 70px rgba(7, 21, 37, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
.container { width: min(var(--container), calc(100% - 42px)); margin-inline: auto; }

.topbar { background: var(--navy); color: #aebdca; font-size: 11px; }
.topbar-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar a { color: #eef5fb; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 25px;
}
.main-nav a, .sign-in {
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}
.main-nav a:hover, .sign-in:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.button {
  min-height: 49px;
  padding: 0 23px;
  border: 1px solid var(--blue);
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
  transition: .2s;
}
.button:hover { transform: translateY(-2px); background: #1f4fc0; box-shadow: 0 13px 30px rgba(43,100,232,.22); }
.button-small { min-height: 44px; padding-inline: 19px; font-size: 12px; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.menu-toggle span { display: block; height: 2px; margin: 5px 0; border-radius: 10px; background: var(--navy); }

.terms-hero {
  padding: 47px 0 66px;
  background:
    radial-gradient(circle at 87% 8%, rgba(43,100,232,.12), transparent 31%),
    linear-gradient(180deg, #f4f7fc 0%, #fff 100%);
}
.hero-shell {
  min-height: 470px;
  padding: 61px;
  border-radius: 27px;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 65px;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(18,101,243,.22), transparent 33%),
    linear-gradient(135deg, #061729, #0a3358);
  box-shadow: 0 28px 85px rgba(7,21,37,.15);
}
.eyebrow {
  color: #80cbff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 18px 0 17px;
  font-family: var(--display);
  font-size: clamp(54px, 6vw, 82px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.hero-copy > p {
  max-width: 710px;
  margin: 0;
  color: #c3d1dc;
  font-size: 17px;
  line-height: 1.86;
  text-align: justify;
  text-justify: inter-word;
}
.document-meta {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  gap: 27px;
  flex-wrap: wrap;
  color: #9fb0c0;
  font-size: 11px;
}
.document-meta strong { color: #fff; margin-right: 5px; }

.hero-document { position: relative; min-height: 330px; }
.document-sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 270px;
  min-height: 315px;
  padding: 35px;
  border-radius: 22px;
  transform: translate(-50%, -52%) rotate(2deg);
  color: var(--navy);
  background: #fff;
  box-shadow: 0 28px 70px rgba(0,0,0,.25);
}
.document-sheet::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid #e1e8f1;
  border-radius: 14px;
  pointer-events: none;
}
.document-mark {
  width: 55px;
  height: 55px;
  padding: 13px;
  border-radius: 15px;
  color: var(--blue);
  background: #eaf1ff;
}
.document-mark svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.document-sheet > span {
  display: block;
  margin-top: 36px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
}
.document-sheet > strong {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.32;
}
.document-lines { display: grid; gap: 9px; margin-top: 32px; }
.document-lines i { height: 5px; border-radius: 99px; background: #e6ebf2; }
.document-lines i:nth-child(2) { width: 82%; }
.document-lines i:nth-child(3) { width: 61%; }
.verification-badge {
  position: absolute;
  right: 0;
  bottom: 5px;
  width: 230px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(5,27,48,.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}
.verification-badge > span {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  background: #dcfce7;
  font-weight: 800;
}
.verification-badge strong, .verification-badge small { display: block; }
.verification-badge strong { color: #fff; font-size: 11px; }
.verification-badge small { margin-top: 3px; color: #91a5b8; font-size: 9px; }

.summary-section { padding: 0 0 54px; background: #fff; }
.summary-grid {
  margin-top: -31px;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
.summary-grid article {
  min-height: 150px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 37px rgba(7,21,37,.07);
}
.summary-grid span {
  display: block;
  margin-bottom: 11px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.summary-grid strong {
  display: block;
  color: #2a374b;
  font-size: 12px;
  line-height: 1.65;
}

.terms-section { padding: 50px 0 95px; background: #fff; }
.terms-layout {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 55px;
  align-items: start;
}
.terms-sidebar { position: sticky; top: 113px; }
.toc-card {
  max-height: calc(100vh - 140px);
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: auto;
  background: #f8fafc;
}
.toc-card > span {
  display: block;
  margin-bottom: 12px;
  color: #344054;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.toc-card nav { display: grid; }
.toc-card a {
  padding: 8px 5px;
  border-bottom: 1px solid #e7ecf2;
  color: #667085;
  font-size: 10px;
  line-height: 1.45;
}
.toc-card a:hover, .toc-card a.active { color: var(--blue); }

.terms-content { min-width: 0; }
.legal-notice, .closing-note {
  padding: 25px 28px;
  border: 1px solid #cbdaf2;
  border-radius: 17px;
  background: #f2f6ff;
}
.legal-notice strong, .closing-note strong {
  color: var(--navy);
  font-family: var(--display);
  font-size: 17px;
}
.legal-notice p, .closing-note p {
  margin: 8px 0 0;
  color: #526173;
  font-size: 13px;
  text-align: justify;
  text-justify: inter-word;
}

.term-block {
  padding: 43px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 52px minmax(0,1fr);
  gap: 22px;
}
.term-number {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #eaf1ff;
  font-size: 10px;
  font-weight: 800;
}
.term-block h2 {
  margin: 2px 0 17px;
  color: #1f2b3e;
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.term-block p {
  margin: 0 0 16px;
  color: #536173;
  font-size: 14px;
  line-height: 1.9;
  text-align: justify;
  text-justify: inter-word;
}
.term-block ul {
  margin: 5px 0 18px;
  padding-left: 21px;
  color: #536173;
}
.term-block li {
  margin: 9px 0;
  padding-left: 4px;
  font-size: 13px;
  line-height: 1.75;
}
.term-block li::marker { color: var(--blue); }
.information-box {
  margin: 23px 0 5px;
  padding: 19px 21px;
  border-left: 4px solid var(--blue);
  border-radius: 0 13px 13px 0;
  background: #f7f9fc;
}
.information-box strong {
  display: block;
  color: #243247;
  font-size: 13px;
}
.information-box p {
  margin: 7px 0 0;
  font-size: 12px;
}
.contact-panel {
  margin-top: 22px;
  padding: 17px;
  border-radius: 13px;
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  background: #f5f8fc;
}
.contact-panel a {
  padding: 10px 13px;
  border: 1px solid #d5dfec;
  border-radius: 9px;
  color: var(--blue);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}
.closing-note { margin-top: 43px; background: #f8fafc; border-color: var(--line); }

.site-footer {
  padding: 58px 0 24px;
  color: #dce6ef;
  background: #05101c;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
}
.footer-brand p { max-width: 390px; color: #91a5b8; font-size: 12px; }
.footer-grid h4 { margin: 0 0 15px; color: #fff; font-size: 12px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: #9fb0c0; font-size: 11px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  margin-top: 41px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #7f92a5;
  font-size: 10px;
}

@media (max-width: 1080px) {
  .main-nav, .header-actions { display: none; }
  .menu-toggle { display: block; }
  .site-header.menu-open .main-nav {
    position: absolute;
    left: 21px;
    right: 21px;
    top: calc(100% + 1px);
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 0 0 16px 16px;
    display: grid;
    gap: 7px;
    background: #fff;
    box-shadow: 0 25px 45px rgba(7,21,37,.13);
  }
  .site-header.menu-open .main-nav a { padding: 10px 7px; border-bottom: 1px solid #edf1f6; }
  .hero-shell { grid-template-columns: 1fr; }
  .hero-document { min-height: 390px; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .terms-layout { grid-template-columns: 1fr; }
  .terms-sidebar { position: static; }
  .toc-card { max-height: none; }
  .toc-card nav { grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
}

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

@media (max-width: 640px) {
  .container { width: min(var(--container), calc(100% - 28px)); }
  .topbar { display: none; }
  .header-inner { min-height: 68px; }
  .terms-hero { padding: 18px 0 48px; }
  .hero-shell { min-height: auto; padding: 40px 24px; border-radius: 20px; }
  .hero-copy h1 { font-size: 45px; }
  .hero-copy > p, .legal-notice p, .closing-note p, .term-block p { text-align: left; }
  .document-meta { flex-direction: column; gap: 7px; }
  .hero-document { min-height: 345px; }
  .document-sheet { width: 230px; min-height: 285px; }
  .verification-badge { width: 205px; right: -3px; }
  .summary-grid { grid-template-columns: 1fr; margin-top: -20px; }
  .summary-grid article { min-height: auto; }
  .terms-section { padding-top: 22px; }
  .toc-card nav { grid-template-columns: 1fr; }
  .term-block { grid-template-columns: 1fr; gap: 10px; padding: 34px 0; }
  .term-block h2 { font-size: 22px; }
  .contact-panel { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
