/* Legal pages — shared layout */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static !important; max-height: none !important; }
}

.legal-toc {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  font-size: 13.5px;
  border-left: 1px solid var(--border);
  padding: 4px 0 4px 18px;
}
.legal-toc::-webkit-scrollbar { width: 4px; }
.legal-toc::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.legal-toc-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--mid);
  margin-bottom: 14px;
}
.legal-toc-header h3 { font-size: 11px; font-weight: 600; margin: 0; color: var(--mid); }
.legal-toc a {
  display: flex; gap: 10px;
  color: var(--mid);
  text-decoration: none;
  padding: 6px 0;
  line-height: 1.4;
  transition: color 0.15s;
  border-left: 2px solid transparent;
  margin-left: -20px;
  padding-left: 18px;
}
.legal-toc a:hover { color: var(--text); }
.legal-toc a.active { color: var(--green); border-left-color: var(--green); font-weight: 500; }
.legal-toc .toc-num {
  font-variant-numeric: tabular-nums;
  color: rgba(0,0,0,0.25);
  font-size: 11.5px;
  flex-shrink: 0;
  width: 22px;
}

/* Body */
.legal-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  max-width: 760px;
}
.legal-body h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 48px 0 16px;
  scroll-margin-top: 100px;
  color: var(--text);
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
  scroll-margin-top: 100px;
}
.legal-body p { margin-bottom: 16px; color: var(--mid); }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body ol, .legal-body ul { margin: 0 0 20px 24px; }
.legal-body li { margin-bottom: 8px; color: var(--mid); }
.legal-body a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid oklch(55% 0.17 152 / 0.3);
  transition: border-color 0.15s;
}
.legal-body a:hover { border-bottom-color: var(--green); }

.legal-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.legal-meta-badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--green-pale);
  color: oklch(40% 0.15 152);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.legal-meta-item {
  font-size: 13px;
  color: var(--mid);
}

/* Definition table */
.def-table, .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 20px 0 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.def-table th, .def-table td,
.data-table th, .data-table td {
  text-align: left;
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.def-table thead, .data-table thead { background: #f8fafc; }
.def-table th, .data-table th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mid);
}
.def-table tbody td, .data-table tbody td { color: var(--mid); line-height: 1.6; }
.def-table tbody td:first-child {
  font-weight: 600;
  color: var(--text);
  width: 28%;
  white-space: nowrap;
}
.def-table tr:last-child td, .data-table tr:last-child td { border-bottom: none; }

/* Notice / callout */
.notice-box {
  display: flex; gap: 14px;
  padding: 16px 20px;
  background: var(--green-pale);
  border-left: 3px solid var(--green);
  border-radius: 6px;
  margin: 20px 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
}
.notice-box-icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.notice-box strong { color: var(--text); }

/* Trust Center hub */
.trust-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 36px 0 48px;
}
.trust-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none !important;
  border-bottom: 1px solid var(--border) !important;
  transition: border-color 0.2s, transform 0.15s;
  background: white;
}
.trust-card:hover {
  border-color: var(--green) !important;
  transform: translateY(-2px);
}
.trust-card-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-pale);
  border-radius: 8px;
  margin-bottom: 16px;
}
.trust-card h4 {
  font-size: 15px; font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.trust-card p {
  font-size: 13.5px;
  color: var(--mid);
  margin: 0;
  line-height: 1.55;
}

/* Country availability cards */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 24px 0 32px;
}
.country-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  background: white;
}
.country-card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
}
.country-card-name {
  font-size: 16px; font-weight: 600; color: var(--text);
}
.country-card-flag {
  font-size: 22px;
}
.country-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--mid);
  padding: 6px 0;
}
.country-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.dot-green { background: var(--green); box-shadow: 0 0 0 3px oklch(55% 0.17 152 / 0.15); }
.dot-amber { background: #d97706; box-shadow: 0 0 0 3px rgba(217,119,6,0.15); }
.country-status-label { color: var(--text); font-weight: 500; }

/* Stack cards (security pillars / DPA appendix) */
.pillar-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 32px;
}
.pillar {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.pillar-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.pillar h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.pillar p {
  font-size: 14.5px;
  color: var(--mid);
  margin: 0;
  line-height: 1.65;
}

/* Provider cards (subprocessors) */
.provider-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 32px;
}
.provider {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  background: white;
}
.provider-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 12px;
  flex-wrap: wrap;
}
.provider-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.provider-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--off-white);
  color: var(--mid);
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.provider-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  font-size: 13.5px;
  padding: 10px 0;
  border-top: 1px dashed var(--border);
}
.provider-row dt {
  font-weight: 500;
  color: var(--mid);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 1px;
}
.provider-row dd {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

/* TOC sticky highlight on small screens */
@media (max-width: 900px) {
  .legal-toc {
    border-left: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
  }
  .legal-toc a { margin-left: 0; padding-left: 4px; border-left: none; }
}
