:root {
  --bg:        #ffffff;
  --bg-soft:   #f7f7fa;
  --bg-note:   #f4f3ff;
  --border:    #e6e6ec;
  --border-s:  #eceef3;
  --accent:    #5856D6;
  --accent-h:  #4744bf;
  --text:      #1c1c1e;
  --text-m:    #5b5b66;
  --text-d:    #8a8a95;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.legal-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.legal-nav .wrap {
  max-width: 780px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.legal-nav .logo {
  font-size: 18px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
}
.legal-nav .back {
  font-size: 14px; color: var(--text-m); text-decoration: none;
  transition: color 0.2s;
}
.legal-nav .back:hover { color: var(--accent); }

.legal-wrap {
  max-width: 780px; margin: 0 auto;
  padding: 48px 24px 96px;
}
.legal-wrap h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800; letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}
.legal-meta {
  font-size: 13px; color: var(--text-d);
  margin-bottom: 32px;
}
.legal-wrap h2 {
  font-size: 20px; font-weight: 700;
  color: var(--text);
  margin-top: 36px; margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.legal-wrap h3 {
  font-size: 16px; font-weight: 600;
  color: var(--text);
  margin-top: 20px; margin-bottom: 8px;
}
.legal-wrap p {
  font-size: 15px; color: #333338;
  margin-bottom: 12px;
}
.legal-wrap ul, .legal-wrap ol {
  padding-left: 22px;
  margin-bottom: 14px;
}
.legal-wrap li {
  font-size: 15px; color: #333338;
  margin-bottom: 6px;
}
.legal-wrap a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(88,86,214,0.35);
  transition: text-decoration-color 0.2s;
}
.legal-wrap a:hover { text-decoration-color: var(--accent); }
.legal-wrap strong { color: var(--text); font-weight: 600; }
.legal-wrap code {
  font-size: 13px; padding: 2px 6px;
  background: var(--bg-soft); border: 1px solid var(--border-s);
  border-radius: 5px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--accent-h);
}
.legal-note {
  margin: 20px 0;
  padding: 14px 16px;
  background: var(--bg-note);
  border: 1px solid rgba(88,86,214,0.2);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  font-size: 14px;
  color: #2b2b32;
}
.legal-wrap .tbl {
  width: 100%; border-collapse: collapse;
  margin: 16px 0; font-size: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.legal-wrap .tbl th, .legal-wrap .tbl td {
  padding: 11px 14px; text-align: left;
  border-bottom: 1px solid var(--border-s);
  vertical-align: top;
}
.legal-wrap .tbl tr:last-child td { border-bottom: none; }
.legal-wrap .tbl th {
  background: var(--bg-soft);
  color: var(--text-m); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
