/* HTML-only helpers for the static marketing pages. */

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.icon--arrow {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 5 7 7-7 7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 5 7 7-7 7'/%3E%3C/svg%3E");
}

.icon--download {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E");
}

.icon--receipt {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-2.5-2-2.5 2-2.5-2-2.5 2z'/%3E%3Cpath d='M9 8h6'/%3E%3Cpath d='M9 12h6'/%3E%3Cpath d='M9 16h4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-2.5-2-2.5 2-2.5-2-2.5 2z'/%3E%3Cpath d='M9 8h6'/%3E%3Cpath d='M9 12h6'/%3E%3Cpath d='M9 16h4'/%3E%3C/svg%3E");
}

.icon--users {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2'/%3E%3Cpath d='M9.5 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8'/%3E%3Cpath d='M21 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2'/%3E%3Cpath d='M9.5 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8'/%3E%3Cpath d='M21 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.icon--chart {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='m7 15 4-4 3 3 5-7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='m7 15 4-4 3 3 5-7'/%3E%3C/svg%3E");
}

.icon--bell {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 1 0-12 0v3.2a2 2 0 0 1-.6 1.4L4 17h5'/%3E%3Cpath d='M9 17a3 3 0 0 0 6 0'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 1 0-12 0v3.2a2 2 0 0 1-.6 1.4L4 17h5'/%3E%3Cpath d='M9 17a3 3 0 0 0 6 0'/%3E%3C/svg%3E");
}

.icon--shield {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5c0 5 3.4 9.4 7 10 3.6-.6 7-5 7-10V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5c0 5 3.4 9.4 7 10 3.6-.6 7-5 7-10V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

.icon--phone {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2.2'/%3E%3Cpath d='M10 18h4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2.2'/%3E%3Cpath d='M10 18h4'/%3E%3C/svg%3E");
}

.icon--check {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E");
}

.brand-link,
.faq-page-cat {
  text-decoration: none;
}

.feature__icon .icon {
  width: 26px;
  height: 26px;
}

.btn .icon,
.plan__features .icon,
.showcase__list .icon {
  width: 18px;
  height: 18px;
}

.plan__features .icon,
.showcase__list .icon {
  color: var(--brick-600);
  margin-top: 2px;
}

.faq-page-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.faq-page-cat:hover {
  background: var(--brick-50);
}

.faq-group {
  scroll-margin-top: 75px;
}

.faq-group + .faq-group {
  margin-top: 48px;
}

.faq-group__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 0 0 18px;
  scroll-margin-top: 110px;
}

.faq-group .faq-list {
  margin-top: 0;
}

/* ── Legal body tables ───────────────────────────────────── */
.legal__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(95,28,22,.08);
}
.legal__body th {
  background: var(--brick-600);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.legal__body td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--ink-200);
  color: var(--ink-700);
  vertical-align: top;
}
.legal__body tr:last-child td { border-bottom: none; }
.legal__body tr:nth-child(even) td { background: var(--cream-100); }
.legal__body td a { color: var(--brick-700); word-break: break-all; }

.btn--light-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--light-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ── Legal TOC collapsible (details/summary) ─────────────── */
.legal__toc-details {
  /* no box of its own — inherits .legal__toc card */
}

.legal__toc-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  padding-bottom: 2px;
}
.legal__toc-summary::-webkit-details-marker { display: none; }
.legal__toc-summary h5 { margin: 0; pointer-events: none; }

.legal__toc-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-color: var(--brick-600);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  transition: transform 0.22s var(--ease-out);
}
.legal__toc-details[open] > .legal__toc-summary .legal__toc-chevron {
  transform: rotate(180deg);
}

/* Desktop: disable the toggle; always show contents */
@media (min-width: 881px) {
  .legal__toc-summary {
    pointer-events: none;
    cursor: default;
  }
  .legal__toc-chevron { display: none; }
}

/* ── Legal responsive ────────────────────────────────────── */

/* Base: prevent long words / URLs / company names from overflowing */
.legal__body,
.legal__callout,
.legal__header .meta,
.legal__header h1 {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Table scroll wrapper — tablet: horizontal scroll */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  margin: 16px 0 20px;
  box-shadow: 0 1px 3px rgba(95,28,22,.08);
}
.table-scroll table {
  margin: 0;
  box-shadow: none;
  border-radius: 0;
  min-width: 480px; /* keeps header row intact while wrapper scrolls */
}

/* Phone (≤560px): stacked card layout — no horizontal scroll needed */
@media (max-width: 560px) {
  .table-scroll {
    overflow-x: visible;
    border-radius: 0;
    box-shadow: none;
    margin: 12px 0 20px;
  }
  .table-scroll table,
  .table-scroll thead,
  .table-scroll tbody,
  .table-scroll tr {
    display: block;
    width: 100%;
  }
  .table-scroll thead { display: none; }
  .table-scroll table {
    min-width: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .table-scroll tr {
    border: 1px solid var(--ink-200);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #fff;
    box-shadow: var(--shadow-xs);
  }
  .table-scroll td {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--ink-100);
    font-size: 13px;
    line-height: 1.5;
    background: #fff !important;
    text-align: left;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .table-scroll td:last-child { border-bottom: none; }
  .table-scroll td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--brick-700);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    min-width: 78px;
    flex-shrink: 0;
    padding-top: 2px;
    line-height: 1.4;
  }
}

@media (max-width: 880px) {
  .legal__header { margin-bottom: 32px; }
  .legal__header .meta { font-size: 12px; line-height: 1.7; }
  .legal__body { font-size: 15px; }
  .legal__body h2 { font-size: 20px; margin: 28px 0 10px; scroll-margin-top: 75px; }
  .legal__body h3 { font-size: 15px; margin: 16px 0 6px; }
  .legal__callout { padding: 14px 16px; font-size: 14px; }
  .legal__toc ol { gap: 0; }
  .legal__toc a { font-size: 13px; padding: 8px 10px; }
}

@media (max-width: 480px) {
  .legal { padding-block: 36px 48px; }
  .legal__header h1 { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  .legal__header .meta { font-size: 11px; }
  .legal__toc { padding: 14px 12px; }
  .legal__body { font-size: 14px; line-height: 1.65; }
  .legal__body h2 { font-size: 17px; }
  .legal__body h3 { font-size: 14px; }
  .legal__callout { font-size: 13px; padding: 12px 14px; }
  .legal__body ul,
  .legal__body ol { padding-left: 18px; }
}
