:root {
  --text-body:   #3a3a3a;
}

body {
  background: #ffffff;
}

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; transition: color 0.18s ease;
}
.back-link:hover { color: var(--black); }

.legal-hero {
  padding: 160px 28px 72px;
  background: linear-gradient(160deg, #fafafa 0%, #f0f0f3 100%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute; top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(229,36,32,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.legal-hero__inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.legal-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--red); margin-bottom: 20px;
  padding: 6px 14px; background: var(--red-alpha); border-radius: var(--radius-pill);
}
.legal-hero__title {
  font-size: clamp(32px, 4.5vw, 54px); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.06;
  color: var(--black); margin-bottom: 20px;
}
.legal-hero__sub {
  font-size: 17px; line-height: 1.65;
  color: var(--text-muted); margin-bottom: 20px;
}
.legal-hero__date { font-size: 13px; color: #aaa; font-weight: 500; }

.legal-body {
  max-width: 1240px; margin: 0 auto;
  padding: 72px 28px 120px;
  display: grid; grid-template-columns: 240px 1fr;
  gap: 80px; align-items: start;
}

.legal-toc { position: sticky; top: 100px; }
.legal-toc__label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #bbb; margin-bottom: 16px;
}
.legal-toc__list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.legal-toc__item a {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 10px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  border-radius: 8px; line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease;
}
.legal-toc__item a:hover { background: rgba(0,0,0,0.04); color: var(--black); }
.legal-toc__item a.is-active { color: var(--red); background: var(--red-alpha); font-weight: 600; }
.legal-toc__num { font-size: 11px; font-weight: 700; color: #ccc; min-width: 18px; flex-shrink: 0; }
.legal-toc__item a.is-active .legal-toc__num { color: var(--red); }

.legal-content { min-width: 0; }
.legal-section {
  padding-bottom: 60px; margin-bottom: 60px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.legal-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.legal-section__num {
  display: inline-block; font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
}
.legal-section__title {
  font-size: clamp(20px, 2.2vw, 26px); font-weight: 800;
  letter-spacing: -0.02em; color: var(--black);
  margin-bottom: 24px; line-height: 1.2;
}
.legal-section p {
  font-size: 16px; line-height: 1.8;
  color: var(--text-body); margin-bottom: 16px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { list-style: none; padding: 0; margin: 4px 0 20px; display: flex; flex-direction: column; gap: 10px; }
.legal-section ul li {
  font-size: 16px; line-height: 1.75;
  color: var(--text-body); padding-left: 20px; position: relative;
}
.legal-section ul li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); opacity: 0.6;
}

@media (max-width: 1060px) { .legal-body { grid-template-columns: 200px 1fr; gap: 52px; } }
@media (max-width: 860px) {
  .legal-body { grid-template-columns: 1fr; gap: 0; padding: 48px 24px 96px; }
  .legal-toc { position: static; background: #f7f7f8; border-radius: 16px; padding: 20px; margin-bottom: 56px; }
}
@media (max-width: 640px) {
  .legal-hero { padding: 140px 20px 56px; }
  .legal-hero__title { font-size: 28px; }
  .legal-hero__sub { font-size: 15px; }
  .legal-body { padding: 36px 16px 80px; }
  .legal-section { padding-bottom: 44px; margin-bottom: 44px; }
  .legal-section p, .legal-section ul li { font-size: 15px; }
  .footer { padding: 48px 20px 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__links { flex-direction: column; gap: 14px; }
}
