@import url("https://fonts.googleapis.com/css2?family=Stack+Sans+Headline:wght@400;500;600;700;800&family=Stack+Sans+Text:wght@400;500;600;700&family=Unbounded:wght@400;500;600;700;800&display=swap");

:root {
  --page-width: 1180px;
  --ink: #f5f7f9;
  --muted: #929ba6;
  --line: #252a31;
  --panel: #0d1014;
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #000;
  font-family: "Stack Sans Text", "Hanken Grotesk", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
}

.legal-header-inner,
.legal-main,
.legal-footer-inner {
  width: min(calc(100% - 40px), var(--page-width));
  margin-inline: auto;
}

.legal-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-logo {
  font-family: "Unbounded", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #454b54;
  border-radius: 999px;
  color: #d8dde3;
  font-size: 13px;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}

.legal-back:hover,
.legal-back:focus-visible {
  color: #fff;
  border-color: #fff;
}

.legal-main {
  padding: 104px 0 120px;
}

.legal-kicker {
  margin: 0 0 18px;
  color: #8de3cf;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-title {
  max-width: 12ch;
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.legal-intro {
  max-width: 680px;
  margin: 30px 0 0;
  color: #b8c0c9;
  font-size: 18px;
  line-height: 1.65;
}

.legal-updated {
  margin-top: 24px;
  color: #69737e;
  font-size: 13px;
}

.legal-layout {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 68px;
  align-items: start;
}

.legal-nav-panel {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  padding: 18px 10px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13, 16, 20, 0.82);
  overflow: hidden;
}

.legal-nav-label {
  margin: 0 8px 12px;
  color: #dfe4e9;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-nav {
  display: grid;
  gap: 2px;
  max-height: calc(100vh - 178px);
  padding-right: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #3e454d transparent;
  scrollbar-width: thin;
}

.legal-nav a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 9px;
  border-radius: 8px;
  color: #7f8994;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.legal-nav a span {
  color: #58616b;
  font-variant-numeric: tabular-nums;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  color: #fff;
  background: #181c21;
  outline: none;
}

.legal-nav a:hover span,
.legal-nav a:focus-visible span {
  color: #8de3cf;
}

.legal-content {
  min-width: 0;
}

.legal-opening {
  padding: 0 0 38px;
  border-bottom: 1px solid var(--line);
}

.legal-opening p,
.legal-section p,
.legal-section li {
  color: #aab3bd;
  font-size: 15px;
  line-height: 1.72;
}

.legal-opening p {
  margin: 0;
}

.legal-opening p + p {
  margin-top: 16px;
}

.legal-content a {
  color: #dce3e9;
  text-decoration-color: #5c6670;
  text-underline-offset: 3px;
}

.legal-content a:hover,
.legal-content a:focus-visible {
  color: #fff;
  text-decoration-color: #8de3cf;
}

.legal-section {
  padding: 0 0 38px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 104px;
}

.legal-section + .legal-section {
  padding-top: 38px;
}

.legal-opening + .legal-section {
  padding-top: 38px;
}

.legal-section h2 {
  margin: 0 0 16px;
  font-family: "Unbounded", sans-serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.legal-section h2 span {
  color: #67717b;
  font-variant-numeric: tabular-nums;
}

.legal-section h3 {
  margin: 28px 0 10px;
  color: #e1e6eb;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.legal-section p {
  margin: 0;
}

.legal-section p + p,
.legal-section ul + p {
  margin-top: 16px;
}

.legal-section ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-section strong {
  color: #eef1f4;
  font-weight: 600;
}

.legal-section p.legal-emphasis {
  margin: 18px 0;
  padding: 18px 20px;
  border-left: 2px solid #8de3cf;
  color: #e8edf1;
  background: #0d1213;
  font-weight: 600;
}

.legal-caps {
  text-transform: uppercase;
}

.legal-contact {
  display: grid;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #b9c2cb;
  background: var(--panel);
  font-size: 15px;
  font-style: normal;
  line-height: 1.55;
}

.legal-contact strong {
  margin-bottom: 3px;
  color: #fff;
  font-size: 17px;
}

.legal-note {
  margin-top: 42px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #9ba5af;
  background: var(--panel);
  font-size: 13px;
  line-height: 1.6;
}

.legal-footer {
  border-top: 1px solid var(--line);
}

.legal-footer-inner {
  padding: 34px 0 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #68727d;
  font-size: 12px;
}

.legal-footer-links {
  display: flex;
  gap: 22px;
}

.legal-footer-links a {
  text-decoration: none;
}

.legal-footer-links a:hover,
.legal-footer-links a:focus-visible {
  color: #fff;
}

@media (max-width: 820px) {
  .legal-header-inner,
  .legal-main,
  .legal-footer-inner {
    width: min(calc(100% - 32px), var(--page-width));
  }

  .legal-main {
    padding: 72px 0 88px;
  }

  .legal-title {
    font-size: clamp(40px, 13vw, 58px);
  }

  .legal-intro {
    font-size: 16px;
  }

  .legal-layout {
    margin-top: 54px;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .legal-nav-panel {
    position: static;
    max-height: none;
    padding: 16px;
  }

  .legal-nav {
    max-height: 320px;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-y: auto;
  }

  .legal-nav a {
    padding: 9px;
  }

  .legal-section h2 {
    font-size: 19px;
  }

  .legal-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .legal-section h2 {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
  }
}

/* Shared Network-style header controls, including legal-page navigation. */
:root {
  --header-control-height: 36px;
  --header-control-radius: 9px;
  --header-control-font-size: 13px;
}
button, .btn, .static-hero-actions a {
  font-family: "Stack Sans Text", sans-serif !important;
}
body :is(.site-header .desktop-cta a, .site-header button, .site-header select, .legal-back) {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  height: var(--header-control-height) !important;
  min-height: var(--header-control-height) !important;
  padding: 0 14px !important;
  border-radius: var(--header-control-radius) !important;
  font-family: "Stack Sans Text", sans-serif !important;
  font-size: var(--header-control-font-size) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  gap: 7px !important;
  white-space: nowrap;
}
body .site-header select { padding-right: 32px !important; }
body .site-header .desktop-cta { gap: 8px !important; flex-wrap: wrap; }
body :is(.site-header .icon-only, .site-header .menu-toggle) {
  width: var(--header-control-height) !important;
  padding: 0 !important;
}
@media (max-width: 640px) {
  body .site-header-inner { gap: 12px !important; padding-inline: 16px !important; }
  body .legal-header-inner { gap: 12px; flex-wrap: wrap; padding-block: 12px; }
}

/* Shared page-title size across SHRK and Covenant. */
body h1,
body .site-shell h1,
body .legal-title {
  font-size:22px !important;
  line-height:1.2 !important;
}

/* Popup titles share one typography and spacing rule across all sites. */
body .overlay .modal > h3,
body :is(.modal,.popup,[role="dialog"],dialog) > :is(h1,h2,h3),
body :is(.modal-header,.popup-header,.dialog-header) :is(h1,h2,h3),
body :is(.modal-title,.popup-title,.dialog-title),
body .deals-customize-head strong,
body #document-viewer-title {
  font-family:"Unbounded",sans-serif !important;
  font-size:18px !important;
  font-weight:600 !important;
  line-height:1.3 !important;
  margin-bottom:0 !important;
  padding-bottom:20px !important;
}
