
.legal-hero {
  padding: 75px 0 85px;
}

.legal-eyebrow {
  color: #b9ddff;
}

.legal-hero h1 {
  margin: 20px 0 15px;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 810;
  line-height: 1.1;
  letter-spacing: -.045em;
  color: #fff;
}

.legal-hero h1 span {
  color: #64caff;
}

.legal-hero p {
  color: #d0dffa;
  font-size: 16px;
  line-height: 1.8;
}

/* Main reading layout */

.legal-main {
  min-height: 620px;
  background: #f8fafe;
  padding: 65px 0 100px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

/* Sidebar */

.legal-sidebar {
  position: sticky;
  top: 25px;
  background: #fff;
  border: 1px solid #e1e8f3;
  border-radius: 11px;
  padding: 23px 16px;
}

.sidebar-eyebrow,
.document-eyebrow {
  display: block;
  color: #286bc8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
}

.sidebar-eyebrow {
  margin: 0 10px 23px;
}

.policy-group {
  border-top: 1px solid #edf1f7;
}

.policy-group summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 19px 12px;
  color: #183050;
  font-size: 14px;
  font-weight: 750;
}

.policy-group summary::-webkit-details-marker {
  display: none;
}

.policy-group summary::after {
  content: '+';
  position: absolute;
  right: 10px;
  color: #50739e;
  font-size: 19px;
  font-weight: 400;
}

.policy-group[open] summary::after {
  content: '−';
}

.policy-group summary:focus-visible,
.policy-button:focus-visible {
  outline: 2px solid #286bc8;
  outline-offset: 2px;
}

.policy-nav {
  display: grid;
  gap: 4px;
  padding-bottom: 16px;
}

.policy-button {
  width: 100%;
  border: none;
  border-radius: 6px;
  background: transparent;
  padding: 12px 13px;
  text-align: left;
  color: #60718d;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.policy-button:hover {
  background: #f0f5fd;
  color: #1648ac;
}

.policy-button.active {
  background: #e9f1ff;
  color: #1648ac;
  font-weight: 750;
  box-shadow: inset 3px 0 #286bc8;
}

/* Document reader */

.legal-reader {
  min-width: 0;
  min-height: 500px;
  padding: clamp(25px, 4vw, 52px);
  background: #fff;
  border: 1px solid #e1e8f3;
  border-radius: 11px;
  box-shadow: 0 8px 28px #182a480a;
}

.policy-document[hidden] {
  display: none !important;
}

.policy-document h2 {
  margin: 14px 0 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid #e8eef7;
  color: #142540;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 790;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.policy-content {
  color: #374861;
  font-size: 16px;
  line-height: 1.9;
}

.policy-content h3 {
  margin: 34px 0 14px;
  color: #183050;
  font-size: 21px;
  line-height: 1.35;
}

.policy-content h4 {
  margin: 25px 0 12px;
  color: #183050;
  font-size: 17px;
}

.policy-content p {
  margin: 0 0 19px;
}

.policy-content ul,
.policy-content ol {
  margin: 12px 0 22px;
  padding-left: 28px;
}

.policy-content li {
  margin-bottom: 10px;
}

.policy-content a {
  color: #2163c2;
}

.import-notice {
  padding: 22px;
  border: 1px dashed #b6c9e8;
  border-radius: 8px;
  background: #f6f9ff;
  color: #566c88;
}

/* Shared website branding */

.brand-logo {
  display: block;
  width: 95%;
  height: 95%;
  object-fit: contain;
  transform: translateX(2px);
}

.footer-brand,
.footer-legal,
.footer-portal {
  text-decoration: none;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal,
.footer-portal {
  color: #dce9ff;
  font-weight: 600;
}

.footer-legal:hover,
.footer-portal:hover {
  color: #fff;
  text-decoration: none;
}

.legal-mobile-nav {
  display: none;
}

/* Responsive layout */

@media (max-width: 760px) {
  .legal-hero {
    padding: 65px 0 75px;
  }

  .legal-main {
    padding: 40px 0 75px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-reader {
    min-height: 350px;
    padding: 26px 22px;
  }

  .policy-content {
    font-size: 15px;
  }

  .legal-mobile-nav {
    display: block;
    position: relative;
    color: #fff;
  }

  .legal-mobile-nav summary {
    cursor: pointer;
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
  }

  .legal-mobile-nav nav {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 30;
    width: min(280px, 85vw);
    padding: 12px;
    border: 1px solid #ffffff30;
    border-radius: 8px;
    background: #081d51;
    box-shadow: 0 16px 36px #0005;
  }

  .legal-mobile-nav nav a {
    display: block;
    padding: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
  }
}

/* CyberDax shared typography */
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Navigation links */
.site-header .brand,
.site-header .nav-links a,
.legal-mobile-nav nav a {
  text-decoration: none;
}

.site-header .nav-links a,
.site-header .nav-links a:visited {
  color: #f4f8ff;
}

.site-header .nav-links .nav-portal,
.site-header .nav-links .nav-portal:visited {
  color: #ffffff;
}

.site-header .nav-links a:not(.nav-portal):hover {
  color: #82ddff;
}

/* Footer links */
.footer a {
  text-decoration: none;
}

.footer a:hover {
  text-decoration: none;
}