:root {
  --legal-primary: #0866e5;
  --legal-primary-dark: #0755bd;
  --legal-primary-soft: #edf5ff;
  --legal-primary-softer: #f7faff;
  --legal-primary-border: #cfe0ff;
  --legal-text: #10213f;
  --legal-text-sub: #34445f;
  --legal-text-muted: #66758c;
  --legal-border: #dce5f1;
  --legal-border-strong: #c6d4e6;
  --legal-green: #12966a;
  --legal-green-soft: #effaf6;
  --legal-purple: #6f42e8;
  --legal-purple-soft: #f7f3ff;
  --legal-orange: #ed5a0a;
  --legal-orange-soft: #fff7ed;
  --legal-pink: #df3f75;
  --legal-yellow-soft: #fff9e8;
  --legal-dark: #0b1d38;
  --legal-dark-2: #10294c;
  --legal-radius-sm: 7px;
  --legal-radius-md: 8px;
  --legal-radius-lg: 12px;
  --legal-shadow: 0 1px 2px rgba(16, 33, 63, .03), 0 7px 20px rgba(16, 33, 63, .045);
  --legal-container: 1320px;
  --legal-header-height: 68px;
}

html {
  scroll-behavior: smooth;
}

body.legal-page {
  --builder-primary: var(--legal-primary);
  --builder-primary-dark: var(--legal-primary-dark);
  --builder-ink: var(--legal-text);
  --builder-muted: var(--legal-text-muted);
  --builder-line: var(--legal-border);
  color: var(--legal-text);
  font-size: clamp(15px, .18vw + 14.5px, 16.5px);
  line-height: 1.68;
  background: #fff;
}

.legal-page *,
.legal-page *::before,
.legal-page *::after {
  box-sizing: border-box;
}

.legal-container {
  width: min(calc(100% - 48px), var(--legal-container));
  margin-inline: auto;
}

.legal-page a {
  text-underline-offset: 3px;
}

.legal-page a:focus-visible,
.legal-page button:focus-visible,
.legal-page summary:focus-visible {
  outline: 3px solid rgba(8, 102, 229, .25);
  outline-offset: 3px;
}

.legal-page > .skip-link {
  position: fixed;
  z-index: 1000;
  top: -80px;
  left: 16px;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--legal-dark);
  color: #fff;
  text-decoration: none;
}

.legal-page > .skip-link:focus {
  top: 12px;
}

.legal-breadcrumb {
  padding-block: 18px 4px;
  color: var(--legal-text-muted);
  font-size: .75rem;
}

.legal-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 7px;
  color: #9aa8ba;
}

.legal-breadcrumb a {
  color: #2e72ce;
  text-decoration: none;
}

.legal-breadcrumb a:hover {
  text-decoration: underline;
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  gap: 44px;
  align-items: start;
  min-height: 282px;
  padding-block: 18px 28px;
}

.legal-hero__copy {
  min-width: 0;
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 0 12px;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--legal-primary-soft);
  color: var(--legal-primary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.legal-hero h1 {
  margin: 0;
  color: var(--legal-text);
  font-size: clamp(2.45rem, 3.35vw, 3.05rem);
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.18;
}

.legal-nowrap {
  display: inline-block;
  white-space: nowrap;
}

.legal-hero__lead {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--legal-text-sub);
  font-size: .94rem;
  line-height: 1.75;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 15px 0 0;
  padding: 0;
}

.legal-meta > div {
  display: flex;
  gap: 7px;
  align-items: center;
}

.legal-meta dt {
  color: var(--legal-text-muted);
  font-size: .75rem;
  font-weight: 700;
}

.legal-meta dd {
  margin: 0;
  color: var(--legal-text-sub);
  font-size: .75rem;
  font-weight: 700;
}

.legal-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 180px;
  overflow: hidden;
}

.legal-hero__visual img {
  display: block;
  width: min(100%, 404px);
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  transform: scale(1.68);
  transform-origin: center;
}

.legal-summary {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--legal-primary-border);
  border-radius: var(--legal-radius-md);
  background: #fff;
  box-shadow: var(--legal-shadow);
}

.legal-summary > h2 {
  margin: 0 0 12px;
  color: var(--legal-primary);
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.35;
}

.legal-summary.usage-page-hero {
  display: block;
  padding: 18px;
}

.legal-summary.usage-page-hero .usage-page-summary-grid {
  width: 100%;
}

.legal-summary__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.legal-summary-card {
  display: grid;
  grid-template-rows: 44px minmax(3.2em, auto) minmax(3.3em, auto);
  gap: 10px;
  align-content: center;
  min-width: 0;
  min-height: 212px;
  padding: 16px;
  border: 1px solid var(--legal-border);
  border-radius: 6px;
  background: #fff;
  text-align: center;
}

.legal-summary-card + .legal-summary-card {
  border-left: 1px solid var(--legal-border);
}

.legal-summary-card img {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  object-fit: contain;
}

.hub-legal-page .legal-trust-strip article:nth-child(1) img { content: url("/assets/icons/legal/summary/shield-check.svg"); }
.hub-legal-page .legal-trust-strip article:nth-child(2) img { content: url("/assets/icons/legal/summary/cube-transparent.svg"); }
.hub-legal-page .legal-trust-strip article:nth-child(3) img { content: url("/assets/icons/legal/summary/chart-bar.svg"); }
.hub-legal-page .legal-trust-strip article:nth-child(4) img { content: url("/assets/icons/legal/summary/lock-closed.svg"); }

.legal-summary-card--green img { color: var(--legal-green); }
.legal-summary-card:not(.legal-summary-card--green):not(.legal-summary-card--purple):not(.legal-summary-card--orange) img { color: var(--legal-primary); }
.legal-summary-card--purple img { color: var(--legal-purple); }
.legal-summary-card--orange img { color: var(--legal-orange); }

.legal-summary-card h3 {
  margin: 0;
  color: var(--legal-primary);
  font-size: .96rem;
  font-weight: 750;
  line-height: 1.45;
}

.legal-summary-card--green h3 { color: var(--legal-green); }
.legal-summary-card--purple h3 { color: var(--legal-purple); }
.legal-summary-card--orange h3 { color: var(--legal-orange); }

.legal-summary-card p {
  width: 100%;
  margin: 0;
  color: var(--legal-text-sub);
  font-size: .78rem;
  line-height: 1.65;
  text-align: left;
}

@media (min-width: 1060px) {
  .usage-methodology-page .legal-summary-card__title--compact,
  .terms-legal-page .legal-summary-card:nth-child(4) h3 {
    font-size: .75rem;
    letter-spacing: -.025em;
    white-space: nowrap;
  }
}

.legal-summary__grid.usage-page-summary-grid {
  gap: 12px;
}

.legal-page .usage-page-summary-card {
  grid-template-rows: 54px auto;
  gap: 9px;
  align-content: center;
  min-height: 136px;
  padding: 14px 16px;
}

.legal-page .usage-page-summary-icon-wrap {
  min-height: 54px;
}

.legal-page .usage-page-summary-icon {
  width: 52px;
  height: 52px;
}

.legal-page .usage-page-summary-icon svg {
  width: 28px;
  height: 28px;
}

.legal-page .usage-page-summary-body {
  gap: 4px;
}

.legal-page .usage-page-summary-card p,
.legal-page .usage-page-summary-card span {
  font-size: .82rem;
  text-align: center;
}

.legal-page .usage-page-summary-card strong {
  font-size: 1.16rem;
}

.legal-method-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--legal-primary-border);
  border-radius: 6px;
  background: var(--legal-primary-softer);
  color: var(--legal-text-sub);
  font-size: .75rem;
  line-height: 1.65;
}

.legal-method-banner__icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid #7fb3f2;
  border-radius: 50%;
  color: var(--legal-primary);
  font-weight: 800;
}

.legal-method-banner a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #9bc0f1;
  border-radius: 5px;
  background: #fff;
  color: var(--legal-primary);
  font-size: .75rem;
  font-weight: 800;
  text-decoration: none;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  padding-bottom: 24px;
}

.legal-more-sections {
  margin: 0 0 10px;
  border: 0;
}

.legal-more-sections > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid #a8c9f4;
  border-radius: 6px;
  background: #f8fbff;
  color: var(--legal-primary);
  font-size: .76rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  list-style: none;
}

.legal-more-sections > summary::-webkit-details-marker {
  display: none;
}

.legal-more-sections > summary::before,
.legal-more-sections > summary::after {
  display: none;
  content: none;
}

.legal-more-sections > summary::marker {
  content: "";
}

.legal-more-sections > summary > span:first-child {
  padding-left: 24px;
}

.legal-more-sections__content {
  padding-top: 10px;
}

.legal-more-sections__content > .legal-section:last-child {
  margin-bottom: 0;
}

.legal-main,
.legal-sidebar {
  min-width: 0;
}

.legal-inline-toc,
.legal-sidebar-card,
.legal-section,
.legal-content-card {
  border: 1px solid var(--legal-border);
  border-radius: var(--legal-radius-md);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 33, 63, .02);
}

.legal-inline-toc {
  margin-bottom: 12px;
  padding: 15px 17px;
}

.legal-inline-toc h2 {
  margin: 0 0 12px;
  font-size: .94rem;
  font-weight: 750;
}

.legal-inline-toc ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-inline-toc a {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--legal-text-sub);
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.legal-inline-toc a:hover {
  color: var(--legal-primary);
}

.legal-toc-number {
  display: inline-flex;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--legal-primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
}

.legal-section {
  margin-bottom: 10px;
  scroll-margin-top: calc(var(--legal-header-height) + 20px);
  overflow: clip;
}

.legal-section > summary {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: start;
  margin: 0;
  padding: 14px 16px;
  color: var(--legal-text);
  cursor: pointer;
  font-weight: inherit;
  letter-spacing: normal;
  list-style: none;
}

/* Builderのフォーム用summary装飾を法務ページへ持ち込まない。 */
.legal-section > summary::before,
.legal-section > summary::after {
  display: none;
  content: none;
}

.legal-section > summary::-webkit-details-marker {
  display: none;
}

.legal-section > summary::marker {
  content: "";
}

.legal-section__number {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--legal-primary);
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
}

.legal-section__heading {
  min-width: 0;
}

.legal-section__heading h2 {
  margin: 1px 0 0;
  color: var(--legal-text);
  font-size: .94rem;
  font-weight: 750;
  line-height: 1.4;
}

.legal-section__heading > p {
  margin: 5px 0 0;
  color: var(--legal-text-sub);
  font-size: .74rem;
  line-height: 1.65;
}

.legal-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.legal-chip {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--legal-border);
  border-radius: 4px;
  background: #fff;
  color: var(--legal-text-muted);
  font-size: .65rem;
  font-weight: 700;
  line-height: 1.35;
}

.legal-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--legal-primary);
}

.legal-section__chevron {
  position: relative;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--legal-primary);
}

.legal-section__chevron::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease, top .18s ease;
}

.legal-section[open] .legal-section__chevron::before {
  top: 10px;
  transform: rotate(225deg);
}

.legal-section__content {
  padding: 0 18px 20px 60px;
  border-top: 1px solid #edf1f6;
  color: var(--legal-text-sub);
  font-size: .86rem;
  line-height: 1.85;
}

.legal-section.is-animating,
.article-faq-item.is-animating {
  overflow: hidden;
}

.legal-page .article-faq-item summary {
  position: relative;
  padding-right: 48px;
  cursor: pointer;
  list-style: none;
}

.legal-page .article-faq-item summary::-webkit-details-marker {
  display: none;
}

.legal-page .article-faq-item summary::marker {
  content: "";
}

.legal-page .article-faq-item summary::before {
  display: none;
  content: none;
}

.legal-page .article-faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 19px;
  width: 9px;
  height: 9px;
  margin: 0;
  padding: 0;
  border-top: 0;
  border-left: 0;
  border-right: 2px solid var(--legal-primary);
  border-bottom: 2px solid var(--legal-primary);
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}

.legal-page .article-faq-item[open] summary::after {
  transform: translateY(-25%) rotate(225deg);
}

.legal-page .article-faq-answer {
  height: auto;
  padding: 0 18px 18px;
  opacity: 1;
  overflow: visible;
  transition: none;
}

.legal-section__content > :first-child {
  margin-top: 16px;
}

.legal-section__content > :last-child {
  margin-bottom: 0;
}

.legal-section__content h3 {
  margin: 20px 0 8px;
  color: var(--legal-text);
  font-size: .93rem;
}

.legal-section__content ul,
.legal-section__content ol {
  padding-left: 1.35em;
}

.legal-section__content li + li {
  margin-top: 6px;
}

.legal-section__content code {
  padding: .08em .35em;
  border-radius: 4px;
  background: #eef4fb;
  color: #184f9d;
  font-size: .9em;
}

.legal-note {
  margin: 16px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--legal-primary);
  border-radius: 4px;
  background: var(--legal-primary-softer);
}

.legal-note--warning {
  border-left-color: #d89200;
  background: var(--legal-yellow-soft);
}

.legal-note--success {
  border-left-color: var(--legal-green);
  background: var(--legal-green-soft);
}

.legal-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.legal-data-card {
  padding: 13px 14px;
  border: 1px solid var(--legal-border);
  border-radius: 7px;
  background: #fff;
}

.legal-data-card h3 {
  margin: 0 0 5px;
  font-size: .84rem;
}

.legal-data-card p {
  margin: 0;
  font-size: .78rem;
  line-height: 1.75;
}

.legal-table-wrap {
  max-width: 100%;
  margin: 14px 0;
  overflow-x: auto;
  border: 1px solid var(--legal-border);
  border-radius: 7px;
}

.legal-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  background: #fff;
  font-size: .76rem;
}

.legal-table th,
.legal-table td {
  padding: 11px 12px;
  border-right: 1px solid var(--legal-border);
  border-bottom: 1px solid var(--legal-border);
  vertical-align: top;
  text-align: left;
  line-height: 1.7;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table th:last-child,
.legal-table td:last-child {
  border-right: 0;
}

.legal-table thead th {
  background: var(--legal-primary-soft);
  color: var(--legal-text);
  font-weight: 800;
}

.legal-sidebar {
  position: sticky;
  top: calc(var(--legal-header-height) + 16px);
  display: grid;
  gap: 12px;
}

.legal-sidebar-card {
  padding: 15px;
}

.legal-sidebar-card h2 {
  margin: 0 0 12px;
  color: var(--legal-text);
  font-size: .92rem;
  font-weight: 750;
  line-height: 1.4;
}

.legal-sidebar-card p {
  margin: 0;
  color: var(--legal-text-sub);
  font-size: .75rem;
  line-height: 1.75;
}

.legal-sidebar-card--support {
  border-color: #f3cbd8;
  background: #fffafb;
}

.legal-sidebar-card--support h2 {
  color: var(--legal-pink);
}

.legal-sidebar-card--sponsors {
  border-color: var(--legal-primary-border);
  background: #fff;
}

.legal-sidebar-card--sponsors .affiliate-pr-notice {
  margin: 0 0 10px;
  padding: 7px 9px;
  font-size: .62rem;
}

.legal-sidebar-card--sponsors .wpq-sponsor-list {
  grid-template-columns: 1fr;
}

.legal-sidebar-card--principles {
  border-color: #cce9dc;
  background: #f8fdfb;
}

.legal-sidebar-card--principles h2 {
  color: var(--legal-green);
}

.legal-sidebar-card--method {
  border-color: var(--legal-primary-border);
  background: var(--legal-primary-softer);
}

.legal-sidebar-card--warning {
  border-color: #f2db9e;
  background: var(--legal-yellow-soft);
}

.legal-sidebar-card--warning h2 {
  color: #a76600;
}

.legal-sidebar-toc ol,
.legal-check-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-sidebar-toc a {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--legal-primary);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.legal-sidebar-toc a:hover {
  text-decoration: underline;
}

.legal-check-list li {
  position: relative;
  padding-left: 18px;
  color: var(--legal-text-sub);
  font-size: .72rem;
  line-height: 1.55;
}

.legal-check-list li::before {
  content: "";
  position: absolute;
  top: .38em;
  left: 2px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--legal-green);
  border-bottom: 2px solid var(--legal-green);
  transform: rotate(-45deg);
}

.legal-sidebar-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.legal-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--legal-primary);
  border-radius: 6px;
  background: var(--legal-primary);
  color: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.legal-button:hover {
  background: var(--legal-primary-dark);
  box-shadow: 0 8px 18px rgba(8, 102, 229, .15);
  transform: translateY(-1px);
}

.legal-button--outline {
  border-color: #9bc0f1;
  background: #fff;
  color: var(--legal-primary);
}

.legal-button--outline:hover {
  background: var(--legal-primary-soft);
}

.legal-button--ofuse,
.legal-sidebar-actions .wpq-support-link--ofuse {
  border-color: #f25a09;
  background: #f25a09;
}

.legal-button--ofuse:hover,
.legal-sidebar-actions .wpq-support-link--ofuse:hover {
  background: #d94f06;
}

.legal-button--stripe,
.legal-sidebar-actions .wpq-support-link--stripe {
  border-color: #635bff;
  background: #635bff;
}

.legal-button--stripe:hover,
.legal-sidebar-actions .wpq-support-link--stripe:hover {
  background: #5735c5;
}

.legal-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 8px 0 clamp(26px, 4vw, 44px);
  border: 1px solid var(--legal-border);
  border-radius: var(--legal-radius-md) var(--legal-radius-md) 0 0;
  background: #fff;
  overflow: hidden;
}

.legal-trust-strip article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 10px 14px;
}

.legal-trust-strip article + article {
  border-left: 1px solid var(--legal-border);
}

.legal-trust-strip img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.legal-trust-strip strong,
.legal-trust-strip span {
  display: block;
}

.legal-trust-strip strong {
  color: var(--legal-primary);
  font-size: .72rem;
  line-height: 1.4;
}

.legal-trust-strip article:first-child strong { color: var(--legal-green); }
.legal-trust-strip article:nth-child(3) strong { color: var(--legal-purple); }
.legal-trust-strip article:last-child strong { color: var(--legal-orange); }

.legal-trust-strip span {
  margin-top: 3px;
  color: var(--legal-text-muted);
  font-size: .62rem;
  line-height: 1.45;
}

.legal-page .site-footer,
.legal-page .builder-site-footer {
  border-top: 0;
  background: var(--legal-dark);
  color: #fff;
}

.legal-page .site-footer__grid {
  gap: 30px;
  padding-block: 34px 24px;
}

.legal-page .site-footer .footer-brand img {
  filter: brightness(0) invert(1);
  opacity: .96;
}

.legal-page .site-footer h2,
.legal-page .site-footer strong {
  color: #fff;
}

.legal-page .site-footer a,
.legal-page .site-footer span,
.legal-page .site-footer p {
  color: #bdcadc;
}

.legal-page .site-footer a:hover {
  color: #fff;
}

.legal-page .site-footer__copyright {
  border-top-color: rgba(255, 255, 255, .12);
  color: #8fa1ba;
}

.legal-page .builder-site-footer {
  grid-template-columns: minmax(230px, 1.25fr) minmax(100px, .55fr) minmax(130px, .65fr) minmax(160px, .8fr) minmax(286px, 1.1fr);
  padding-top: 34px;
}

.legal-page .builder-site-footer > * {
  min-width: 0;
}

.legal-page .builder-site-footer__support .builder-footer-support-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.legal-page .usage-page-card-head h3 {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.legal-page .usage-count-pill {
  flex: 0 0 auto;
  min-width: max-content;
  line-height: 1;
  white-space: nowrap;
}

.legal-page .usage-side-card-support {
  display: block;
  padding: 15px;
}

.legal-page .usage-page-side {
  gap: 12px;
}

.legal-page .usage-side-card,
.legal-page .usage-affiliate-card {
  border-color: var(--legal-border);
  border-radius: var(--legal-radius-md);
  background: #fff;
  box-shadow: var(--legal-shadow);
}

.legal-page .usage-side-card h3,
.legal-page .usage-affiliate-card h3 {
  color: var(--legal-text);
  font-size: .92rem;
  font-weight: 750;
  line-height: 1.45;
  text-align: left;
}

.legal-page .usage-side-card-support h2 {
  margin: 0 0 12px;
  color: var(--legal-pink);
  font-size: .92rem;
  font-weight: 750;
  line-height: 1.4;
  text-align: left;
}

.legal-page .usage-side-card-support p {
  margin: 0;
  color: var(--legal-text-sub);
  font-size: .75rem;
  line-height: 1.75;
}

.legal-page .builder-site-footer__support a:first-child {
  border-color: #f25a09;
  background: #f25a09;
}

.legal-page .builder-site-footer__support a {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-inline: 7px;
  white-space: normal;
}

.legal-page .builder-site-footer__support a:last-child {
  border-color: #635bff;
  background: #635bff;
}

.legal-settings-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.legal-setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--legal-border);
  border-radius: 7px;
  background: #fff;
}

.legal-setting-row strong {
  font-size: .86rem;
}

.legal-setting-row p {
  margin: 4px 0 0;
  font-size: .76rem;
  line-height: 1.65;
}

.legal-page .privacy-switch {
  flex: 0 0 auto;
}

.legal-status-line {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--legal-primary-softer);
  color: var(--legal-text-sub);
  font-size: .76rem;
}

.legal-page .privacy-live {
  min-height: 1.7em;
  margin: 10px 0 0;
  color: var(--legal-primary);
  font-size: .76rem;
  font-weight: 700;
}

.legal-page .privacy-region-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.legal-page .privacy-region-actions [hidden] {
  display: none !important;
}

.legal-page .privacy-region-actions .legal-button {
  min-height: 38px;
}

.legal-page .privacy-switch {
  min-width: 96px;
  min-height: 42px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--legal-border-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--legal-text-sub);
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}

.legal-page .privacy-switch > span {
  position: relative;
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: #98a2b3;
}

.legal-page .privacy-switch > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
}

.legal-page .privacy-switch[aria-checked="true"] {
  border-color: #91c5a4;
  background: var(--legal-green-soft);
  color: var(--legal-green);
}

.legal-page .privacy-switch[aria-checked="true"] > span {
  background: var(--legal-green);
}

.legal-page .privacy-switch[aria-checked="true"] > span::after {
  transform: translateX(12px);
}

.legal-empty-state {
  padding: 18px;
  border: 1px dashed var(--legal-border-strong);
  border-radius: 7px;
  color: var(--legal-text-muted);
  text-align: center;
}

@media (max-width: 1050px) {
  .legal-summary__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

  .legal-inline-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .legal-trust-strip article:nth-child(3) {
    border-top: 1px solid var(--legal-border);
    border-left: 0;
  }

  .legal-trust-strip article:nth-child(4) {
    border-top: 1px solid var(--legal-border);
  }

  .legal-page .builder-site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .legal-container {
    width: min(calc(100% - 36px), var(--legal-container));
  }

  .legal-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr);
    gap: 20px;
    min-height: 240px;
    align-items: center;
  }

  .legal-hero__visual {
    min-height: 160px;
  }

  .legal-hero__visual img {
    width: min(100%, 340px);
    transform: scale(1.3);
  }

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

  .legal-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-sidebar-toc {
    display: none;
  }
}

@media (max-width: 640px) {
  .legal-container {
    width: min(calc(100% - 28px), var(--legal-container));
  }

  .legal-breadcrumb {
    padding-top: 13px;
  }

  .legal-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 12px 22px;
  }

  .legal-hero__visual {
    display: none;
  }

  .legal-hero h1 {
    font-size: clamp(1.8rem, 9vw, 2.15rem);
  }

  .legal-hero__lead {
    font-size: .9rem;
    line-height: 1.8;
  }

  .legal-meta {
    display: grid;
    gap: 7px;
  }

  .legal-summary {
    padding: 14px;
  }

  .legal-summary__grid {
    grid-template-columns: 1fr;
  }

  .legal-summary-card + .legal-summary-card,
  .legal-summary-card:nth-child(3),
  .legal-summary-card:nth-child(4) {
    border-left: 1px solid var(--legal-border);
  }

  .legal-summary-card {
    grid-template-rows: 48px auto auto;
    gap: 7px;
    min-height: 0;
    padding: 16px;
  }

  .legal-summary-card img {
    width: 48px;
    height: 48px;
  }

  .legal-method-banner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .legal-method-banner a {
    grid-column: 1 / -1;
    width: 100%;
  }

  .legal-inline-toc ol,
  .legal-sidebar,
  .legal-data-grid,
  .legal-trust-strip {
    grid-template-columns: 1fr;
  }

  .legal-section > summary {
    grid-template-columns: 28px minmax(0, 1fr) 24px;
    gap: 9px;
    padding: 14px;
  }

  .legal-section__heading h2 {
    font-size: .93rem;
  }

  .legal-section__content {
    padding: 0 14px 18px;
    font-size: .84rem;
  }

  .legal-more-sections > summary {
    grid-template-columns: minmax(0, 1fr) 24px;
    padding: 9px 12px;
    font-size: .72rem;
    text-align: left;
  }

  .legal-more-sections > summary > span:first-child {
    padding-left: 0;
  }

  .legal-setting-row {
    grid-template-columns: 1fr;
  }

  .legal-page .privacy-switch {
    justify-self: start;
  }

  .legal-trust-strip article,
  .legal-trust-strip article + article,
  .legal-trust-strip article:nth-child(3),
  .legal-trust-strip article:nth-child(4) {
    border-top: 1px solid var(--legal-border);
    border-left: 0;
  }

  .legal-trust-strip article:first-child {
    border-top: 0;
  }

  .legal-page .builder-site-footer {
    grid-template-columns: 1fr;
  }

  .legal-page .builder-site-footer__support .builder-footer-support-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .legal-button,
  .legal-section__chevron::before,
  .legal-page .privacy-switch > span::after {
    transition: none;
  }
}
