/* ── Legal Pages ─────────────────────────────────────── */
.legal-page {
  padding: 120px 0 80px;
}

.legal-content {
  width: min(800px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--ink-muted);
  font-size: 0.88rem;
  margin-bottom: 32px;
}

.legal-intro {
  font-size: 1.08rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-content section {
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  padding-top: 8px;
}

.legal-content h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p {
  color: var(--ink-soft);
  line-height: 1.72;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.legal-content ul,
.legal-content ol {
  color: var(--ink-soft);
  line-height: 1.72;
  font-size: 0.95rem;
  padding-left: 24px;
  margin-bottom: 16px;
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--accent-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--accent-purple);
}

/* ── Summary Cards ──────────────────────────────────── */
.data-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.summary-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.summary-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 12px;
}

.summary-not-collected {
  background: rgba(75, 192, 200, 0.06);
  border-color: rgba(75, 192, 200, 0.15);
}

.summary-not-collected h3 {
  color: var(--accent-teal);
}

.summary-collected {
  background: rgba(254, 172, 94, 0.06);
  border-color: rgba(254, 172, 94, 0.15);
}

.summary-collected h3 {
  color: var(--accent-orange);
}

.summary-card ul {
  margin-bottom: 0;
}

.summary-card li {
  font-size: 0.88rem;
}

/* ── Privacy Labels ─────────────────────────────────── */
.privacy-label {
  margin-bottom: 32px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.label-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.label-icon {
  font-size: 1.4rem;
}

.label-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.label-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-linked {
  background: rgba(254, 172, 94, 0.15);
  color: var(--accent-orange);
}

.badge-not-linked {
  background: rgba(75, 192, 200, 0.15);
  color: var(--accent-teal);
}

.label-detail {
  margin-top: 12px;
  margin-bottom: 0;
}

/* ── Tables ─────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--ink-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-strong);
}

.data-table td {
  padding: 10px 12px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* ── Text Flow Diagram ──────────────────────────────── */
.text-flow {
  margin: 24px 0;
}

.flow-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-left: 2px solid var(--border);
  margin-left: 19px;
  padding-left: 28px;
  position: relative;
}

.flow-step:last-child {
  border-left-color: transparent;
}

.flow-number {
  position: absolute;
  left: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flow-step h3 {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.flow-step p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ── Highlight Box ──────────────────────────────────── */
.highlight-box {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(75, 192, 200, 0.2);
  background: rgba(75, 192, 200, 0.04);
  margin: 24px 0;
}

.highlight-box h3 {
  margin-top: 0;
  color: var(--accent-teal);
  font-size: 0.95rem;
}

.log-example {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.6;
  overflow-x: auto;
}

.highlight-box > p:last-child {
  margin-bottom: 0;
  font-size: 0.88rem;
  color: var(--accent-teal);
  font-weight: 600;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 700px) {
  .data-summary {
    grid-template-columns: 1fr;
  }

  .data-table {
    font-size: 0.8rem;
  }

  .data-table th,
  .data-table td {
    padding: 8px;
  }

  .privacy-label {
    padding: 16px;
  }
}
