:root {
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--preview-bg);
  color: var(--preview-ink);
  font: 1rem/1.6 system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

#legal-content {
  color: var(--preview-ink);
  padding-block: clamp(1.5rem, 6vw, 4rem) 3rem;
  overflow-wrap: anywhere;
}

#legal-content .cmp-wrap {
  width: min(1070px, calc(100% - 2rem));
  margin-inline: auto;
}

#legal-content .cmp-head {
  margin-bottom: 1.25rem;
}

#legal-content h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4.8vw, 3.4rem);
  line-height: 1.16;
  letter-spacing: -.04em;
}

#legal-content h2 {
  font-size: clamp(1.22rem, 3vw, 1.65rem);
  line-height: 1.25;
  margin: 0 0 .5rem;
}

#legal-content p {
  margin: .45rem 0 0;
  color: var(--preview-muted);
}

#legal-content a {
  color: var(--preview-accent);
  text-decoration: underline;
  text-underline-offset: .17em;
}

#legal-content a:focus-visible,
#legal-content summary:focus-visible,
.cmp-skip:focus-visible {
  outline: 3px solid var(--preview-accent);
  outline-offset: 3px;
}

.cmp-skip {
  position: absolute;
  left: .5rem;
  top: .5rem;
  z-index: 20;
  padding: .5rem .75rem;
  background: white;
  color: var(--preview-accent);
  transform: translateY(-180%);
}

.cmp-skip:focus {
  transform: none;
}

#legal-content .cmp-section {
  margin-top: clamp(1.5rem, 4vw, 2.65rem);
}

#legal-content [id] {
  scroll-margin-top: 5rem;
}

#legal-content .cmp-fit {
  margin-top: 0;
  border: 1px solid #a6cbbd;
  border-left: 4px solid var(--preview-accent);
  border-radius: 14px;
  background: var(--preview-soft);
  padding: clamp(.9rem, 3vw, 1.45rem);
}

#legal-content .cmp-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  list-style: none;
  margin: .9rem 0 0;
  padding: 0;
}

#legal-content .cmp-facts li {
  background: var(--preview-panel);
  border: 1px solid var(--preview-line);
  border-radius: 8px;
  padding: .48rem .63rem;
  font-size: .9rem;
  line-height: 1.45;
}

#legal-content .cmp-card {
  border: 1px solid var(--preview-line);
  border-radius: 12px;
  background: var(--preview-panel);
  overflow: hidden;
}

#legal-content .cmp-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: clamp(.82rem, 1.6vw, .96rem);
  line-height: 1.42;
  margin: 0;
}

#legal-content .cmp-table col:first-child { width: 24%; }
#legal-content .cmp-table col:nth-child(2) { width: 33%; }

#legal-content .cmp-table th,
#legal-content .cmp-table td {
  text-align: start;
  vertical-align: top;
  padding: .72em .85em;
  overflow-wrap: anywhere;
}

#legal-content .cmp-table thead { background: #eaf1f5; }
#legal-content .cmp-table tbody tr { border-top: 1px solid var(--preview-line); }
#legal-content .cmp-table tbody tr:nth-child(even) { background: #f7fafb; }
#legal-content .cmp-table tbody .cmp-onemouse { background: #eaf7ef; }
#legal-content .cmp-table .cmp-onemouse th { box-shadow: inset 3px 0 var(--preview-accent); }

#legal-content .cmp-credit {
  margin-top: .8rem;
  font-size: .86rem;
}

#legal-content .cmp-faq details {
  margin-top: .55rem;
  border: 1px solid var(--preview-line);
  background: var(--preview-panel);
  border-radius: 8px;
  padding: .65rem .75rem;
}

#legal-content .cmp-faq summary {
  font-weight: 650;
  cursor: pointer;
}

#legal-content .cmp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1rem;
}

#legal-content .cmp-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

#legal-content .cmp-actions .cmp-primary {
  padding: .4rem .9rem;
  border-radius: 9px;
  background: var(--preview-accent);
  color: white;
  text-decoration: none;
  font-weight: 750;
}

#legal-content .cmp-actions .cmp-primary:hover {
  text-decoration: underline;
}

@media (max-width: 620px) {
  #legal-content .cmp-facts { grid-template-columns: minmax(0, 1fr); }
  #legal-content .cmp-table col:first-child { width: 27%; }
  #legal-content .cmp-table col:nth-child(2) { width: 32%; }
  #legal-content .cmp-table th,
  #legal-content .cmp-table td { padding-inline: .48em; }
}


#legal-content .cmp-fit-actions {
  margin-top: 1rem;
}

#legal-content .cmp-context {
  margin: 0 0 .75rem;
  line-height: 1.5;
}

#legal-content .cmp-sources {
  margin-top: 1.75rem;
  border-top: 1px solid var(--preview-line);
  padding-top: .5rem;
  font-size: .9rem;
}

#legal-content .cmp-sources summary {
  cursor: pointer;
  font-weight: 650;
  padding: .45rem 0;
}

#legal-content .cmp-sources ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: .35rem .85rem;
  padding-inline-start: 1.4rem;
}

/* Feature rows remain table rows at every width. Mobile selects which app columns to show. */
#legal-content .cmp-sr {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0;
}
#legal-content .cmp-legend {
  display:flex; flex-wrap:wrap; gap:.35rem .85rem; margin:.45rem 0 .75rem; padding:0;
  list-style:none; font-size:.82rem; color:var(--preview-muted);
}
#legal-content .cmp-legend li {display:inline-flex; align-items:center; gap:.3rem;}
#legal-content .cmp-status {
  display:inline-grid; place-items:center; min-width:1.32rem; height:1.32rem; border-radius:50%;
  font-size:.84rem; font-weight:800; line-height:1; color:#344b5a; background:#edf2f5;
}
#legal-content .cmp-status-y {color:#075736; background:#def3e6;}
#legal-content .cmp-status-c {color:#734606; background:#fff0c9;}
#legal-content .cmp-status-n {color:#435763; background:#e9eef1;}
#legal-content .cmp-matrix-picker {
  display:flex; flex-wrap:wrap; align-items:center; gap:.35rem .6rem;
  margin:.65rem 0 .75rem; font-size:.9rem; font-weight:700;
}
#legal-content .cmp-matrix-picker select {
  max-width:100%; min-height:44px; padding:.32rem .65rem;
  border:1px solid #778f9c; border-radius:8px; background:var(--preview-panel);
  color:var(--preview-ink); font:inherit;
}
#legal-content .cmp-matrix-picker[hidden],
#legal-content .cmp-matrix-table [hidden] {display:none !important;}
#legal-content .cmp-matrix-scroll {max-width:100%; overflow:auto;}
#legal-content .cmp-matrix-scroll:focus-visible,
#legal-content .cmp-matrix-picker select:focus-visible {outline:3px solid var(--preview-accent); outline-offset:2px;}
#legal-content .cmp-matrix-table {
  table-layout:fixed; width:100%; min-width:1060px; margin:0;
  border-spacing:0; font-size:.8rem; line-height:1.3;
}
#legal-content .cmp-matrix-table th,#legal-content .cmp-matrix-table td {
  padding:.56em .42em; vertical-align:top; text-align:center;
  border-bottom:1px solid var(--preview-line); overflow-wrap:anywhere;
}
#legal-content .cmp-matrix-table thead th {background:#e8f0f4;}
#legal-content .cmp-matrix-table tr > :first-child {
  text-align:start; padding-inline:.65em; background:#f4f8fa;
}
#legal-content .cmp-matrix-table tr:not(.cmp-matrix-group) > :first-child {
  position:sticky; inset-inline-start:0; z-index:1;
}
#legal-content .cmp-matrix-table thead th:first-child {width:15%;}
#legal-content .cmp-matrix-table tbody tr:nth-child(odd) td {background:#f7fafd;}
#legal-content .cmp-matrix-table :is(thead,tbody) tr :is(th,td)[data-cmp-app="one"] {background:#eaf7ee;}
#legal-content .cmp-matrix-table .cmp-matrix-group th {
  padding:.55em .72em; border-top:1px solid #a9bdc7;
  background:#e2edf2; color:#27495b; font-weight:800;
}
#legal-content .cmp-matrix-table .cmp-detail {
  display:block; margin-top:.26em; color:#344e5e; font-size:.77rem;
}
#legal-content .cmp-matrix-note {max-width:86ch;}
@media(max-width:767px) {
  #legal-content .cmp-matrix-picker label {flex-basis:100%;}
  #legal-content .cmp-matrix-picker select {width:min(100%,25rem);}
  #legal-content [data-matrix-mode="pair"] .cmp-matrix-table {
    min-width:0; font-size:clamp(.74rem,2.3vw,.85rem);
  }
  #legal-content [data-matrix-mode="pair"] .cmp-matrix-table thead th:first-child {width:38%;}
  #legal-content [data-matrix-mode="pair"] .cmp-matrix-table tr > :first-child {position:static;}
}
#legal-content .cmp-scroll-hint {margin:.4rem 0 .45rem; font-size:.82rem;}
#legal-content [data-matrix-mode="pair"] .cmp-scroll-hint {display:none;}
@media(min-width:1096px) {
  #legal-content .cmp-scroll-hint {display:none;}
}
