.terms-sale-page {
  --terms-navy: #0a1f33;
  --terms-navy-soft: #173b59;
  --terms-teal: #0f8a8a;
  --terms-teal-dark: #0c6e6e;
  --terms-border: #dce5e9;
  --terms-muted: #5d7080;
  --terms-pale: #eaf7fa;
  background: #f8fbfc;
}

.terms-sale-main {
  min-height: 70vh;
  background-color: #f8fbfc;
  background-image:
    linear-gradient(rgba(15, 138, 138, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 138, 138, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
}

.terms-breadcrumb-bar {
  border-bottom: 1px solid #e5ecef;
  background: rgba(255, 255, 255, 0.94);
}

.terms-breadcrumbs {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  color: #6f8290;
  font-size: 0.76rem;
}

.terms-breadcrumbs a {
  color: #627786;
}

.terms-breadcrumbs a:hover,
.terms-breadcrumbs a:focus-visible,
.terms-breadcrumbs [aria-current="page"] {
  color: var(--terms-teal-dark);
}

.terms-breadcrumbs svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.terms-sale-section {
  padding: 34px 0 54px;
}

.terms-sale-layout {
  display: grid;
  grid-template-columns: minmax(220px, 242px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(34px, 4vw, 48px);
}

.terms-policy-sidebar {
  display: grid;
  gap: 24px;
}

.terms-sidebar-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--terms-border);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 3px 12px rgba(10, 31, 51, 0.045);
}

.terms-sidebar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--terms-border);
  color: var(--terms-navy);
  font-size: 0.92rem;
}

.terms-sidebar-title svg,
.terms-policy-link svg,
.terms-help-line svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.terms-policy-list {
  display: grid;
}

.terms-policy-link {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 11px 14px 11px 17px;
  border-bottom: 1px solid #edf1f3;
  color: #314b60;
  font-size: 0.78rem;
  font-weight: 600;
}

.terms-policy-link:last-child {
  border-bottom: 0;
}

.terms-policy-link:hover,
.terms-policy-link:focus-visible {
  color: var(--terms-teal-dark);
  background: #f5fafb;
}

.terms-policy-link[aria-current="page"] {
  color: var(--terms-teal-dark);
  background: var(--terms-pale);
}

.terms-policy-link[aria-current="page"]::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: var(--terms-teal);
}

.terms-help-card {
  padding: 17px 16px 16px;
}

.terms-help-card h2 {
  margin: 0 0 9px;
  color: var(--terms-navy);
  font-size: 0.88rem;
}

.terms-help-card > p {
  margin: 0 0 14px;
  color: var(--terms-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.terms-help-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 10px;
  color: #496275;
  font-size: 0.73rem;
  line-height: 1.45;
}

.terms-help-line svg {
  margin-top: 1px;
  color: var(--terms-teal);
}

.terms-help-line a {
  overflow-wrap: anywhere;
  color: var(--terms-teal-dark);
  font-weight: 700;
}

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

.terms-page-header {
  margin-bottom: 22px;
}

.terms-page-header h1 {
  margin: 0 0 5px;
  color: var(--terms-navy);
  font-size: clamp(2.1rem, 3.4vw, 3.05rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.terms-updated {
  margin: 0 0 14px;
  color: #6b7d8a;
  font-size: 0.75rem;
}

.terms-intro {
  max-width: 860px;
  margin: 0;
  color: #354e61;
  font-size: 0.83rem;
  line-height: 1.62;
}

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

.policy-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0 0 18px;
  padding: 14px 17px;
  border-left: 3px solid var(--terms-teal);
  color: #405b6d;
  background: #eef6f7;
  font-size: 0.78rem;
  line-height: 1.55;
}

.policy-notice strong {
  color: var(--terms-navy);
}

.policy-notice p {
  margin: 0;
}

.policy-notice a {
  color: var(--terms-teal-dark);
  font-weight: 700;
}

.policy-groups {
  display: grid;
  gap: 16px;
}

.policy-group-body {
  padding: 17px 22px 19px 66px;
  color: #4e6576;
  font-size: 0.78rem;
  line-height: 1.62;
}

.policy-group-body p {
  margin: 0 0 11px;
}

.policy-group-body p:last-child {
  margin-bottom: 0;
}

.policy-group-body ul,
.policy-group-body ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.policy-group-body li {
  padding-left: 2px;
}

.terms-accordion {
  display: grid;
  gap: 18px;
}

.terms-group {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--terms-border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(10, 31, 51, 0.04);
}

.terms-group-header {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid #cae1e5;
  background: #edf8fa;
}

.terms-group-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--terms-teal);
  font-size: 0.78rem;
  font-weight: 800;
}

.terms-group-header h2 {
  margin: 0;
  color: var(--terms-navy);
  font-size: 1rem;
  line-height: 1.25;
}

.terms-group-header p {
  margin: 3px 0 0;
  color: var(--terms-muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.terms-subgroup + .terms-subgroup {
  border-top: 1px solid var(--terms-border);
}

.terms-subgroup-heading {
  margin: 0;
  padding: 10px 18px 8px 48px;
  color: #557180;
  background: #fbfdfe;
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.terms-item {
  border-bottom: 1px solid var(--terms-border);
}

.terms-item:last-child {
  border-bottom: 0;
}

.terms-trigger {
  display: grid;
  width: 100%;
  min-height: 67px;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 13px;
  padding: 10px 8px 10px 4px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.terms-trigger:hover,
.terms-trigger:focus-visible,
.terms-trigger[aria-expanded="true"] {
  background: #f2f9fa;
}

.terms-trigger:focus-visible {
  outline: 2px solid rgba(15, 138, 138, 0.55);
  outline-offset: -2px;
}

.terms-number {
  display: grid;
  width: 34px;
  height: 27px;
  place-items: center;
  border-radius: 999px;
  color: #2b6680;
  background: #dff1f5;
  font-size: 0.68rem;
  font-weight: 800;
}

.terms-trigger-copy {
  min-width: 0;
}

.terms-trigger-title,
.terms-trigger-preview {
  display: block;
}

.terms-trigger-title {
  margin-bottom: 2px;
  color: var(--terms-navy);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.28;
}

.terms-trigger-preview {
  color: var(--terms-muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.terms-chevron {
  width: 17px;
  height: 17px;
  justify-self: end;
  fill: none;
  stroke: #315b72;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.terms-trigger[aria-expanded="true"] .terms-chevron {
  transform: rotate(180deg);
}

.terms-panel {
  height: 0;
  overflow: hidden;
  transition: height 220ms ease;
}

.terms-panel[hidden] {
  display: none;
}

.terms-panel-inner {
  margin: 0 50px 15px 48px;
  padding: 14px 16px;
  border-left: 2px solid #9acfd2;
  background: #f7fbfc;
}

.terms-panel-inner p {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  color: #4e6576;
  background: transparent;
  font-size: 0.75rem;
  line-height: 1.55;
}

.terms-panel-inner p:last-child,
.terms-panel-inner .terms-detail-list:last-child {
  margin-bottom: 0;
}

.terms-detail-list {
  display: grid;
  gap: 5px;
  margin: 0 0 10px 18px;
  padding: 0;
  color: #4e6576;
  font-size: 0.75rem;
  line-height: 1.5;
  list-style: disc;
}

.terms-sale-footer {
  padding: 38px 0 18px;
  background: #061b2e;
  color: rgba(255, 255, 255, 0.7);
}

.terms-footer-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(4, minmax(115px, 1fr));
  gap: clamp(24px, 4vw, 52px);
  padding-bottom: 30px;
}

.terms-footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: #fff;
}

.terms-footer-brand-lockup svg {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  fill: none;
  stroke: #4ed0d0;
  stroke-width: 1.5;
}

.terms-footer-brand-lockup strong,
.terms-footer-brand-lockup small {
  display: block;
}

.terms-footer-brand-lockup strong {
  font-size: 0.96rem;
  letter-spacing: 0.03em;
}

.terms-footer-brand-lockup small {
  margin-top: 2px;
  color: #59c9ce;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.terms-footer-brand p {
  max-width: 210px;
  margin: 0;
  color: rgba(255, 255, 255, 0.59);
  font-size: 0.72rem;
  line-height: 1.55;
}

.terms-footer-column h2 {
  margin: 0 0 11px;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.terms-footer-column ul {
  display: grid;
  gap: 7px;
}

.terms-footer-column a {
  color: rgba(255, 255, 255, 0.69);
  font-size: 0.69rem;
}

.terms-footer-column a:hover,
.terms-footer-column a:focus-visible,
.terms-footer-column a[aria-current="page"] {
  color: #56d0d2;
}

.terms-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.66rem;
}

@media (max-width: 980px) {
  .terms-sale-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 28px;
  }

  .terms-footer-grid {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }

  .terms-footer-brand {
    grid-row: span 2;
  }
}

@media (max-width: 760px) {
  .terms-sale-section {
    padding: 24px 0 40px;
  }

  .terms-sale-layout {
    grid-template-columns: 1fr;
  }

  .terms-policy-sidebar {
    gap: 14px;
  }

  .terms-policy-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terms-policy-link:nth-child(odd) {
    border-right: 1px solid #edf1f3;
  }

  .terms-page-header h1 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .terms-trigger {
    min-height: 76px;
    grid-template-columns: 36px minmax(0, 1fr) 21px;
    gap: 10px;
    padding-right: 5px;
  }

  .terms-panel-inner {
    margin: 0 35px 14px 42px;
    padding: 13px 14px;
  }

  .policy-group-body {
    padding: 15px 18px 18px;
  }

  .terms-group-header {
    padding: 14px;
  }

  .terms-subgroup-heading {
    padding-left: 42px;
  }

  .terms-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terms-footer-brand {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 480px) {
  .terms-sale-page .header-quote-actions {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }

  .terms-sale-page .header-account,
  .terms-sale-page .header-direct-cart {
    gap: 0;
    margin-right: 0.25rem;
    padding-inline: 7px;
    font-size: 0.72rem;
  }

  .terms-sale-page .header-account svg,
  .terms-sale-page .header-direct-cart svg {
    display: none;
  }

  .terms-sale-page .header-quote {
    padding-inline: 8px;
    font-size: 0.75rem;
  }

  .terms-breadcrumbs {
    gap: 7px;
    font-size: 0.7rem;
  }

  .terms-policy-list {
    grid-template-columns: 1fr;
  }

  .policy-notice {
    grid-template-columns: 1fr;
  }

  .terms-policy-link:nth-child(odd) {
    border-right: 0;
  }

  .terms-trigger-preview {
    font-size: 0.68rem;
  }

  .terms-panel-inner {
    margin-right: 18px;
    margin-left: 39px;
  }

  .terms-footer-grid {
    grid-template-columns: 1fr;
  }

  .terms-footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .terms-trigger,
  .terms-chevron,
  .terms-panel {
    transition: none;
  }
}
