/* Shared layout guards: keep media and long policy content inside grid tracks. */
.layout > *, .paper, .contact, .table-wrap {
  min-width: 0;
  max-width: 100%;
}
.paper a, .paper p, .paper li, .paper th, .paper td {
  overflow-wrap: anywhere;
}
.table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

/* Bound native players by both the content column and the visible screen. */
.paper video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(64vh, 34rem);
  margin: 1.25rem auto;
  object-fit: contain;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.paper .demo-video, .paper .portrait-video {
  width: min(100%, 16rem, 28.8vh);
  height: auto;
  max-height: min(64vh, 34rem);
}
@supports (height: 1svh) {
  .paper video {
    max-height: min(64svh, 34rem);
  }
  .paper .demo-video, .paper .portrait-video {
    width: min(100%, 16rem, 28.8svh);
    max-height: min(64svh, 34rem);
  }
}

.table-label {
  display: none;
}
/* Native fullscreen is allowed to use the entire display. */
.paper video:fullscreen {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.paper video:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
}
@media (max-width: 640px) {
  main:not(.marketing) {
    padding: 32px 16px 48px;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 28px;
  }
  .paper {
    padding: 18px;
  }
  .paper h2 {
    font-size: clamp(1.25rem, 5.5vw, 1.6rem);
  }
  .paper video {
    margin: 1rem auto;
    border-radius: 10px;
  }

  /* Keep the policy's real table headers and roles for assistive technology.
     Visually, each row becomes a compact, labelled card on a phone. */
  .privacy-page .table-wrap {
    overflow: visible;
  }
  .privacy-page table,
  .privacy-page tbody,
  .privacy-page tr,
  .privacy-page td {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .privacy-page thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .privacy-page tbody {
    display: grid;
    gap: 14px;
  }
  .privacy-page tbody tr {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--raised);
  }
  .privacy-page td {
    padding: 0 0 14px;
    border: 0;
  }
  .privacy-page td:last-child {
    padding-bottom: 0;
  }
  .privacy-page .table-label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .035em;
    text-transform: uppercase;
  }
}

@media print {
  .paper video {
    display: none;
  }
}
