.legal-hero {
  padding: 82px 0 58px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #f4f7ff 100%);
}
.legal-hero .container { max-width: 920px; }
.legal-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(2.7rem, 7vw, 4.8rem);
  line-height: 1;
  letter-spacing: -.055em;
}
.legal-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  color: #64728d;
  font-size: .86rem;
}
.legal-page { padding: 72px 0 105px; }
.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}
.legal-nav {
  position: sticky;
  top: 105px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(19, 37, 81, .06);
}
.legal-nav strong { padding: 8px 10px; color: var(--blue-950); }
.legal-nav a {
  padding: 8px 10px;
  color: var(--muted);
  border-radius: 9px;
  text-decoration: none;
  font-size: .9rem;
}
.legal-nav a:hover { color: var(--blue-800); background: var(--blue-50); }
.legal-content { max-width: 760px; }
.legal-content section { scroll-margin-top: 110px; margin-bottom: 52px; }
.legal-content h2 {
  margin: 0 0 16px;
  color: var(--blue-950);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}
.legal-content h3 { margin: 28px 0 10px; color: var(--blue-950); }
.legal-content p, .legal-content li { color: #4d596f; }
.legal-content ul { padding-left: 1.25rem; }
.legal-content li + li { margin-top: 8px; }
.notice-card, .support-card {
  margin: 0 0 36px;
  padding: 25px 27px;
  border: 1px solid #cbd8fb;
  border-radius: 18px;
  background: linear-gradient(145deg, #f8faff, #edf3ff);
}
.notice-card strong, .support-card strong { color: var(--blue-950); }
.notice-card p, .support-card p { margin: 8px 0 0; }
.data-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.data-table th, .data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.data-table th { color: var(--blue-950); background: var(--blue-50); font-size: .88rem; }
.data-table tr:last-child td { border-bottom: 0; }
.contact-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 28px 0 40px; }
.contact-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(19, 37, 81, .06);
}
.contact-card:hover { border-color: #b7c8fa; transform: translateY(-2px); }
.legal-nav a:focus-visible, .contact-card:focus-visible, .code-note a:focus-visible {
  outline: 3px solid #6f96ff;
  outline-offset: 3px;
}
.contact-card strong { display: block; color: var(--blue-950); font-size: 1.05rem; }
.contact-card span { display: block; margin-top: 6px; color: var(--muted); font-size: .9rem; }
.code-note {
  padding: 15px 17px;
  border-radius: 12px;
  color: #273552;
  background: #f2f5fa;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88rem;
  overflow-wrap: anywhere;
}
@media (max-width: 820px) {
  .legal-layout { grid-template-columns: 1fr; gap: 38px; }
  .legal-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-nav strong { grid-column: 1 / -1; }
}
@media (max-width: 580px) {
  .legal-hero { padding-top: 58px; }
  .legal-page { padding-top: 48px; }
  .contact-options { grid-template-columns: 1fr; }
  .data-table { display: block; overflow-x: auto; }
  .legal-nav { grid-template-columns: 1fr; }
}
