/* ==========================================================================
   Senato Tech — Responsive
   Breakpoints: 1280 / 1024 / 768 / 480
   ========================================================================== */

@media (max-width: 1280px) {
  .hero__products {
    transform: translateX(clamp(0rem, 2vw, 2rem));
  }
}

@media (max-width: 1024px) {
  .legal__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 15rem);
    column-gap: 2.5rem;
  }

  .hero {
    height: auto;
    min-height: calc(100dvh - var(--nav-height));
    padding-block: clamp(2rem, 5vw, 3.5rem);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2.5rem, 7vw, 4rem);
    align-items: start;
  }

  .hero__title {
    font-size: clamp(2.2rem, 6.5vw, 3.4rem);
  }

  .hero__title span {
    white-space: normal;
  }

  .hero__products {
    width: 100%;
    max-width: 42rem;
    transform: none;
  }

  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .cta__title {
    max-width: none;
    font-size: clamp(2.25rem, 7vw, 3.25rem);
  }

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

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

  .footer__col:first-child {
    grid-column: 1 / -1;
  }

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

  .product-card__actions {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .product-card__actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .ledger__actions {
    justify-content: stretch;
  }

  .ledger__actions .btn {
    flex: 1 1 auto;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--space-5);
    padding: var(--space-6) clamp(1rem, 5vw, 4.5rem);
    background: rgba(250, 250, 250, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--color-border);
    transform: translate3d(100%, 0, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform var(--duration) var(--ease),
      opacity var(--duration) var(--ease),
      visibility var(--duration) var(--ease);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav__menu.is-open {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    padding: var(--space-4) 0;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
  }

  .nav__cta {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-2);
  }

  .legal__inner {
    display: block;
  }

  .legal__aside {
    position: static;
    margin-top: 2.5rem;
  }

  .products__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-card {
    min-width: 0;
  }

  .product-card__actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.5rem;
  }

  .product-card__actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .why__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .why-card + .why-card {
    border-left: 0;
    border-top: 1px solid #2e2e2e;
  }

  .ledger__table {
    min-width: 32rem;
  }

  .ledger__table thead th:nth-child(2),
  .ledger__table thead th:nth-child(3),
  .ledger__table tbody td {
    width: 22%;
  }

  .ledger__table tbody th {
    font-size: 0.875rem;
  }

  .ledger__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ledger__actions .btn {
    width: 100%;
  }

  .section__header,
  .section__lead,
  .hero__lead,
  .cta__lead,
  .product-card__desc {
    max-width: none;
  }

  .form-segment {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .form-segment__option {
    font-size: 0.8125rem;
    padding-inline: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .process__grid,
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: 0;
    padding-block: 1.75rem 2.5rem;
  }

  .hero__title {
    font-size: clamp(1.85rem, 8.5vw, 2.4rem);
  }

  .hero-product {
    min-height: 5.5rem;
    gap: 0.75rem;
  }

  .hero-product__body strong {
    font-size: 1.15rem;
  }

  .hero-product__index {
    width: 1.5rem;
  }

  .cta__title {
    font-size: clamp(2rem, 10vw, 2.5rem);
  }

  .cta__form-wrap {
    padding: 1.25rem;
  }

  .form-radios {
    flex-direction: column;
  }

  .form-segment {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .form-segment__option {
    min-height: 2.75rem;
  }

  .form-segment__option + .form-segment__option {
    border-left: 0;
    border-top: 1px solid #cfcfcf;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__legal {
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-5);
  }

  .btn {
    white-space: normal;
  }

  .process-step {
    padding: var(--space-5);
  }
}
