@import "https://fonts.googleapis.com/css?family=Roboto:300,400,700&display=swap";

:root {
  --legal-blue: #006bdc;
  --legal-cyan: #12bff0;
  --legal-text: #1f252b;
  --legal-muted: #626b72;
  --legal-border: #d9dde1;
  --legal-soft: #e7eef2;
  --legal-page-width: 970px;
}

html { scroll-behavior: smooth; }

body.legal-page {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: var(--legal-text);
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.legal-page *, .legal-page *::before, .legal-page *::after { box-sizing: border-box; }
.legal-shell { width: min(calc(100% - 48px), var(--legal-page-width)); margin: 0 auto; }

.legal-topbar {
  height: 69px;
  display: flex;
  align-items: center;
  background: #fff;
}
.legal-topbar .legal-shell { display: flex; align-items: center; justify-content: space-between; }
.legal-logo { display: inline-flex; align-items: center; text-decoration: none; }
.legal-logo img { width: 78px; height: auto; display: block; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 4px 14px;
  border: 1px solid #d8dde0;
  border-radius: 999px;
  background: #fff;
  color: #22272b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.legal-back:hover, .legal-back:focus-visible {
  color: #111;
  border-color: #aeb7bd;
  box-shadow: 0 4px 14px rgba(0,0,0,.07);
  transform: translateY(-1px);
  outline: none;
}
.legal-back-arrow { color: #00a9ea; font-size: 17px; line-height: 1; }

.legal-hero {
  position: relative;
  min-height: 238px;
  overflow: hidden;
  background-color: #02090d;
  background-image: url("../images/files/legal-circuit-bg.svg");
  background-position: center 44%;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}
.legal-page.terms-page .legal-hero { background-image: url("../images/files/terms-circuit-bg.svg"); }
.legal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.70) 0%, rgba(0,0,0,.28) 52%, rgba(0,0,0,.10) 100%);
  pointer-events: none;
}
.legal-hero .legal-shell {
  position: relative;
  z-index: 1;
  min-height: 238px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 3px;
}
.legal-eyebrow {
  margin: 0 0 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.legal-title {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 43px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.08;
}
.legal-updated {
  position: relative;
  margin: 26px 0 0 73px;
  color: rgba(255,255,255,.92);
  font-size: 11px;
  line-height: 1.2;
}
.legal-updated::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 11px);
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  transform: translateY(-50%);
}

.legal-main { padding: 22px 0 92px; }
.legal-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 66px;
  align-items: start;
}
.legal-index {
  position: sticky;
  top: 22px;
  padding: 17px 18px 18px;
  border: 1px solid #d8dde1;
  border-radius: 14px;
  background: #fff;
}
.legal-index h2 { margin: 0 0 14px; color: #1e2226; font-size: 14px; font-weight: 700; line-height: 1.3; }
.legal-index ol { margin: 0; padding: 0; list-style: none; }
.legal-index li { margin: 0 0 8px; font-size: 10.5px; line-height: 1.35; }
.legal-index a {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #30363b;
  text-decoration: none;
  transition: color .18s ease;
}
.legal-index-dot {
  flex: 0 0 auto;
  width: 3px;
  height: 3px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--legal-cyan);
  transform: translateY(-2px);
}
.legal-index-number { flex: 0 0 auto; }
.legal-index a:hover, .legal-index a:focus-visible { color: var(--legal-blue); outline: none; }
.legal-index-contact {
  margin: 15px 0 0;
  padding-top: 15px;
  border-top: 1px solid #dce0e3;
  color: #667078;
  font-size: 9.5px;
  line-height: 1.35;
}
.legal-index-contact a { display: inline; padding: 0; color: #0d6ecf; font-weight: 500; }

.legal-content { min-width: 0; }
.legal-section {
  padding: 24px 0 25px;
  border-bottom: 1px solid #dce0e3;
  scroll-margin-top: 24px;
}
.legal-section:first-child { padding-top: 25px; }
.legal-section-header { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.legal-number {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  background: #dfe8ed;
  color: #3e4d55;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.legal-section h2 { margin: 0; color: var(--legal-blue); font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.legal-section p { margin: 0; color: #24292e; font-size: 12.5px; line-height: 1.62; }

.legal-footer { border-top: 1px solid #d9dde0; background: #fff; }
.legal-footer-top {
  min-height: 138px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid #dce0e3;
}
.legal-footer-logo img { width: 80px; height: auto; display: block; }
.legal-footer-links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: flex-end; }
.legal-footer-links a { color: #33383d; font-size: 10.5px; text-decoration: underline; text-underline-offset: 2px; }
.legal-footer-links a:hover, .legal-footer-links a:focus-visible { color: var(--legal-blue); outline: none; }
.legal-footer-bottom {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.legal-copyright { margin: 0; color: #343a40; font-size: 10px; }
.legal-socials { display: flex; align-items: center; gap: 11px; }
.legal-socials a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7dde1;
  border-radius: 50%;
  color: #a9b8c2;
  font-size: 11px;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.legal-socials a:hover, .legal-socials a:focus-visible { color: var(--legal-blue); border-color: #9fc4e7; transform: translateY(-1px); outline: none; }

@media (max-width: 780px) {
  .legal-shell { width: min(calc(100% - 36px), 720px); }
  .legal-layout { grid-template-columns: 1fr; gap: 25px; }
  .legal-index { position: static; }
  .legal-index ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 20px; }
  .legal-index li { margin: 0; }
  .legal-section:first-child { padding-top: 7px; }
}

@media (max-width: 600px) {
  body.legal-page { font-size: 13px; }
  .legal-shell { width: min(calc(100% - 28px), 560px); }
  .legal-topbar { height: 64px; }
  .legal-logo img { width: 72px; }
  .legal-back { min-height: 30px; padding: 4px 11px; font-size: 11px; }
  .legal-hero, .legal-hero .legal-shell { min-height: 216px; }
  .legal-hero { background-position: 57% center; }
  .legal-eyebrow { font-size: 9px; }
  .legal-title { font-size: 35px; }
  .terms-page .legal-title { font-size: 32px; }
  .legal-updated { margin-top: 23px; margin-left: 55px; font-size: 10px; }
  .legal-updated::before { width: 47px; }
  .legal-main { padding: 18px 0 58px; }
  .legal-index { padding: 17px; }
  .legal-index ol { grid-template-columns: 1fr; }
  .legal-section { padding: 22px 0; }
  .legal-section-header { align-items: flex-start; }
  .legal-section h2 { font-size: 16px; }
  .legal-section p { font-size: 12px; line-height: 1.65; }
  .legal-footer-top { min-height: 120px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 18px; padding: 26px 0; }
  .legal-footer-links { justify-content: flex-start; gap: 16px 22px; }
  .legal-footer-bottom { min-height: 96px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 14px; padding: 20px 0; }
}

/* Privacy page additions */
.privacy-page .legal-hero {
  background-image: url("../images/files/legal-circuit-bg.svg");
}
.privacy-page .legal-eyebrow {
  max-width: 620px;
}
.privacy-page .legal-main {
  padding-bottom: 82px;
}
.privacy-page .privacy-layout {
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 58px;
}
.privacy-page .privacy-index {
  max-height: calc(100vh - 44px);
  overflow: auto;
  scrollbar-width: thin;
}
.privacy-page .privacy-index li {
  margin-bottom: 6px;
  font-size: 9.7px;
}
.privacy-page .privacy-content .legal-section p + p {
  margin-top: 9px;
}
.privacy-page .privacy-subheading {
  margin: 16px 0 8px;
  color: #28333b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.privacy-page .privacy-list {
  margin: 8px 0 13px 18px;
  padding: 0;
  color: #24292e;
  font-size: 12.5px;
  line-height: 1.58;
}
.privacy-page .privacy-list li {
  margin: 3px 0;
  padding-left: 3px;
}
.privacy-page .privacy-list li::marker {
  color: var(--legal-blue);
}
.privacy-page .privacy-list-numbered {
  margin-left: 22px;
}
.privacy-page .privacy-contact-card {
  margin: 12px 0;
  padding: 13px 15px;
  border-left: 3px solid var(--legal-cyan);
  border-radius: 4px;
  background: #f6f9fb;
}
.privacy-page .privacy-contact-card p,
.privacy-page .privacy-contact-card p + p {
  margin: 3px 0;
}
.privacy-page .privacy-content a {
  color: #096bc8;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.privacy-page .privacy-direct-link {
  margin-top: 4px !important;
}
.privacy-page .privacy-definition strong {
  color: #1f2f39;
}
.privacy-page .privacy-table-wrap {
  width: 100%;
  margin: 14px 0 16px;
  overflow-x: auto;
  border: 1px solid #d8e0e5;
  border-radius: 8px;
}
.privacy-page .privacy-table {
  width: 100%;
  min-width: 610px;
  border-collapse: collapse;
  background: #fff;
  font-size: 11px;
  line-height: 1.45;
}
.privacy-page .privacy-table th,
.privacy-page .privacy-table td {
  padding: 9px 10px;
  border-right: 1px solid #d8e0e5;
  border-bottom: 1px solid #d8e0e5;
  text-align: left;
  vertical-align: top;
}
.privacy-page .privacy-table th:last-child,
.privacy-page .privacy-table td:last-child {
  border-right: 0;
}
.privacy-page .privacy-table tbody tr:last-child td {
  border-bottom: 0;
}
.privacy-page .privacy-table th {
  background: #eef4f7;
  color: #20313d;
  font-weight: 700;
}
@media (max-width: 780px) {
  .privacy-page .privacy-layout { grid-template-columns: 1fr; gap: 25px; }
  .privacy-page .privacy-index { max-height: none; overflow: visible; }
  .privacy-page .privacy-index ol { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .privacy-page .legal-title { font-size: 32px; }
  .privacy-page .legal-eyebrow { font-size: 8.5px; line-height: 1.35; }
  .privacy-page .privacy-index ol { grid-template-columns: 1fr; }
  .privacy-page .privacy-list { font-size: 12px; }
  .privacy-page .privacy-table { font-size: 10.5px; }
}
