* { box-sizing: border-box; }

:root {
  --bg: #0f0f10;
  --card-bg: #1c1c1e;
  --text: #f2f2f2;
  --text-dim: #999;
  --border: #333;
}
body.light {
  --bg: #f4f5f7;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --text-dim: #666;
  --border: #ddd;
}

body {
  margin: 0;
  font-family: -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  transition: background 0.2s, color 0.2s;
}

.legal-header {
  padding: 24px 20px 20px;
  background: radial-gradient(circle at 30% 0%, #6a5cff2e, transparent 55%),
              radial-gradient(circle at 85% 30%, #ff5cae2e, transparent 55%),
              var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
}

.theme-toggle {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}

.legal-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
  background: linear-gradient(90deg, #7c8bff, #ff7ac2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.updated-badge {
  display: inline-block;
  font-size: 12px;
  color: var(--text-dim);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
}

.legal-content {
  padding: 20px;
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.legal-card {
  display: flex;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}

.legal-card .icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-card .card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}

.legal-card .card-body {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

.legal-card ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.legal-card li {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 4px;
}

.legal-footer-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 20px;
}
