/* Terms: comfortable reading, clear sections, and useful native anchor links. */
body[data-page="terms"] .page-intro {
  max-width: 1080px;
  margin-inline: auto;
  padding-bottom: 40px;
}
body[data-page="terms"] .page-intro .lead { max-width: 70ch; }
body[data-page="terms"] .terms-updated {
  color: #526a7b;
  font-size: 18px;
  line-height: 1.7;
  margin-top: 18px;
}
body[data-page="terms"] .terms-summary {
  max-width: 1080px;
  margin: 0 auto 38px;
  padding: 26px 30px;
  border: 1px solid #c9e2ed;
  border-left: 4px solid #0084a6;
  border-radius: 12px;
  background: #f0f8fc;
}
body[data-page="terms"] .page-intro .terms-summary { margin-top: 28px; margin-bottom: 0; }
body[data-page="terms"] .terms-summary p,
body[data-page="terms"] .terms-summary li {
  color: #3f5b6d;
  font-size: 19px;
  line-height: 1.8;
  max-width: 75ch;
}
body[data-page="terms"] .terms-summary h2,
body[data-page="terms"] .terms-summary h3 { font-size: 25px; line-height: 1.4; margin-bottom: 12px; }
body[data-page="terms"] .terms-summary p + p { margin-top: 12px; }
body[data-page="terms"] .terms-summary strong { color: #102d43; }
body[data-page="terms"] .terms-summary > strong { display: block; margin-bottom: 8px; font-size: 20px; line-height: 1.5; }
body[data-page="terms"] .terms-layout {
  display: grid;
  grid-template-columns: minmax(190px, 15rem) minmax(0, 1fr);
  align-items: start;
  gap: clamp(30px, 5vw, 64px);
  max-width: 1080px;
  margin-inline: auto;
  padding-bottom: 80px;
}
body[data-page="terms"] .terms-nav {
  min-width: 0;
  padding: 23px 19px;
  border: 1px solid #d7e6ee;
  border-radius: 13px;
  background: #f7fbfd;
}
body[data-page="terms"] .terms-nav > h2,
body[data-page="terms"] .terms-nav > h3,
body[data-page="terms"] .terms-nav > p {
  margin: 0 9px 15px;
  color: #102d43;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.02em;
}
body[data-page="terms"] .terms-nav ul {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}
body[data-page="terms"] .terms-nav li { min-width: 0; }
body[data-page="terms"] .terms-nav a {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #435e70;
  font-size: 18px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
body[data-page="terms"] .terms-nav a:hover,
body[data-page="terms"] .terms-nav a[aria-current="location"] {
  color: #005d77;
  background: #e5f5fc;
  border-color: #b5dce9;
}
body[data-page="terms"] .terms-nav a[aria-current="location"] { font-weight: 600; }
body[data-page="terms"] .terms-nav a:focus-visible {
  outline: 3px solid #007a9a;
  outline-offset: 2px;
}
body[data-page="terms"] .terms-content {
  min-width: 0;
  width: 100%;
  max-width: 70ch;
  padding-bottom: 0;
}
body[data-page="terms"] .terms-section {
  padding-block: 29px 14px;
  border-top: 1px solid #d8e6ed;
  scroll-margin-top: 20px;
}
body[data-page="terms"] .terms-section:first-child { padding-top: 0; border-top: 0; }
body[data-page="terms"] .terms-section h2 {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  font-size: calc(clamp(25px, 2.3vw, 30px) + 2px);
  line-height: 1.35;
  letter-spacing: -.035em;
}
body[data-page="terms"] .terms-section h3 {
  margin: 24px 0 12px;
  font-size: 23px;
  line-height: 1.5;
}
body[data-page="terms"] .terms-content p,
body[data-page="terms"] .terms-content li {
  font-size: 19px;
  line-height: 1.8;
  color: #425c6d;
  overflow-wrap: anywhere;
}
body[data-page="terms"] .terms-content p { margin-bottom: 17px; }
body[data-page="terms"] .terms-content address {
  font-size: 19px;
  font-style: normal;
  line-height: 1.8;
  color: #425c6d;
  margin-bottom: 20px;
}
body[data-page="terms"] .terms-content ul,
body[data-page="terms"] .terms-content ol { padding-left: 24px; margin: 0 0 21px; }
body[data-page="terms"] .terms-content li { padding-left: 3px; margin-bottom: 10px; }
body[data-page="terms"] .terms-content strong { color: #102d43; }
body[data-page="terms"] .terms-content a,
body[data-page="terms"] .terms-summary a {
  color: #006c89;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
body[data-page="terms"] .terms-content a:hover,
body[data-page="terms"] .terms-summary a:hover { text-decoration-thickness: 2px; }
body[data-page="terms"] .terms-section:target,
body[data-page="terms"] .terms-section:focus-visible {
  outline: 2px solid #72b8ce;
  outline-offset: 10px;
  border-radius: 4px;
}
@media (min-width: 1000px) and (min-height: 780px) {
  body[data-page="terms"] .terms-nav {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    max-height: calc(100dvh - var(--nav-height) - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}
@media (max-width: 900px) {
  body[data-page="terms"] .terms-layout { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  body[data-page="terms"] .terms-content { max-width: 100%; }
  body[data-page="terms"] .terms-nav { padding: 21px; }
  body[data-page="terms"] .terms-nav > h2,
  body[data-page="terms"] .terms-nav > h3,
  body[data-page="terms"] .terms-nav > p { margin-left: 0; }
  body[data-page="terms"] .terms-nav ul { display: flex; flex-wrap: wrap; gap: 8px; }
  body[data-page="terms"] .terms-nav a { background: #fff; border-color: #d4e5ee; }
}
@media (max-width: 600px) {
  body[data-page="terms"] .page-intro { padding-bottom: 30px; }
  body[data-page="terms"] .terms-summary { padding: 23px 21px; margin-bottom: 28px; }
  body[data-page="terms"] .terms-nav { padding: 20px 17px; }
  body[data-page="terms"] .terms-nav a { padding: 10px; }
  body[data-page="terms"] .terms-layout { padding-bottom: 55px; }
  body[data-page="terms"] .terms-section { padding-top: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="terms"] .terms-nav a { transition: none; }
}
@media print {
  body[data-page="terms"] { background: #fff; color: #000; }
  body[data-page="terms"] .site-header { position: static; background: #fff; backdrop-filter: none; }
  body[data-page="terms"] .main-nav,
  body[data-page="terms"] .menu-toggle,
  body[data-page="terms"] .mobile-contact,
  body[data-page="terms"] .reading-progress { display: none !important; }
  body[data-page="terms"] .page-intro { padding-top: 20px; }
  body[data-page="terms"] .terms-layout { display: block; padding-bottom: 0; }
  body[data-page="terms"] .terms-nav { position: static; max-height: none; overflow: visible; margin-bottom: 28px; background: #fff; }
  body[data-page="terms"] .terms-nav ul { display: flex; flex-wrap: wrap; gap: 4px 10px; }
  body[data-page="terms"] .terms-nav a { min-height: 0; padding: 3px; color: #000; background: #fff; border-color: transparent; }
  body[data-page="terms"] .terms-content { max-width: none; }
  body[data-page="terms"] .terms-section { break-inside: auto; }
  body[data-page="terms"] .terms-section,
  body[data-page="terms"] .page-intro { opacity: 1 !important; transform: none !important; }
  body[data-page="terms"] .terms-section h2,
  body[data-page="terms"] .terms-section h3 { break-after: avoid; color: #000; }
  body[data-page="terms"] .terms-section p,
  body[data-page="terms"] .terms-section li { color: #000; orphans: 3; widows: 3; }
  body[data-page="terms"] .terms-section:target,
  body[data-page="terms"] .terms-section:focus-visible { outline: none; }
}
