/* Match the green rotating chevrons in the original homepage accordions. */
.site-header .product-menu summary .nav-chev,
.site-header .mobile-menu .acc-icon,
.presentation-disclosure .drop-chevron,
.v5-disclosure .acc-icon,
.accordion-trigger .acc-icon {
  display: inline-block;
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  color: #8FC46B;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.site-header .product-menu summary .nav-chev svg,
.site-header .mobile-menu .acc-icon svg,
.presentation-disclosure .drop-chevron svg,
.v5-disclosure .acc-icon svg,
.accordion-trigger .acc-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-header .product-menu[open] .nav-chev,
.site-header .mobile-menu[open] .acc-icon,
.presentation-disclosure[open] .drop-chevron,
.v5-disclosure[open] .acc-icon,
.accordion-trigger[aria-expanded="true"] .acc-icon {
  transform: rotate(180deg);
}

/* The legal pages use the same Platform dropdown and mobile Menu control. */
.legal-page .primary-nav .product-menu { position: relative; margin: 0; }
.legal-page .primary-nav .product-menu summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 15px 0;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  list-style: none;
}
.legal-page .primary-nav .product-menu summary::-webkit-details-marker { display: none; }
.legal-page .primary-nav .product-menu summary::marker { content: ""; }
.legal-page .primary-nav .product-dropdown {
  position: absolute;
  top: 100%;
  left: -22px;
  z-index: 60;
  display: grid;
  width: 280px;
  padding: 11px 19px 16px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: 0 14px 30px rgba(30,26,21,.06);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
}
.legal-page .primary-nav .product-dropdown a { padding: 9px 3px; }
.legal-page .primary-nav .product-dropdown small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.legal-page .primary-nav .product-menu:not([open]) .product-dropdown { display: none; }
.legal-page .mobile-menu summary { display: flex; align-items: center; gap: 11px; }
@media (prefers-reduced-motion: reduce) {
  .site-header .product-menu summary .nav-chev,
  .site-header .mobile-menu .acc-icon,
  .presentation-disclosure .drop-chevron,
  .v5-disclosure .acc-icon,
  .accordion-trigger .acc-icon { transition: none !important; }
}
/* Legal pages use the same navigation breakpoint as the rest of the site. */
@media (max-width: 1180px) {
  .legal-page .primary-nav { display: none; }
  .legal-page .mobile-menu { display: block; }
  .legal-page .mobile-menu nav {
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 20px 22px; background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 24px rgba(30,26,21,.08);
    max-height: calc(100dvh - 90px); overflow-y: auto;
  }
  .legal-page .mobile-menu:not([open]) nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}
