:root { scroll-behavior: smooth; }
.legal-body {
  min-height: 100vh;
  background: var(--gx-bg);
  color: var(--gx-ink);
}
.legal-topbar {
  position: sticky;
  z-index: 80;
  top: 0;
  min-height: 82px;
  padding: 14px clamp(18px, 3vw, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--gx-line);
  background: transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.legal-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.legal-brand img { width: 42px; height: 42px; flex: 0 0 auto; }
.legal-brand span { min-width: 0; display: grid; gap: 2px; }
.legal-brand strong { font-size: 16px; font-weight: 600; line-height: 1.15; }
.legal-brand small { color: var(--gx-text-secondary); font-size: 14px; font-weight: 400; line-height: 1.2; }
.legal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.legal-main { width: min(940px, calc(100% - 36px)); margin: 0 auto; padding: 66px 0 44px; }
.legal-hero { padding: 0 0 48px; border-bottom: 1px solid var(--gx-line); }
.legal-hero h1 { max-width: 820px; margin: 14px 0 16px; font-size: clamp(38px, 7vw, 72px); font-weight: 600; line-height: 1.02; letter-spacing: -.045em; }
.legal-hero p { max-width: 760px; margin: 0; color: var(--gx-text-secondary); font-size: clamp(17px, 2vw, 20px); line-height: 1.7; }
.legal-hero small { display: block; margin-top: 20px; color: var(--gx-text-faint); font-size: 14px; }
.legal-section { padding: 42px 0; border-bottom: 1px solid var(--gx-line); }
.legal-section h2 { margin: 0 0 18px; font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.legal-section p, .legal-section li, .legal-section dd, .legal-section address { color: var(--gx-text-secondary); font-size: 16px; font-weight: 400; line-height: 1.8; }
.legal-section p { margin: 0 0 16px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 0; padding-left: 24px; display: grid; gap: 9px; }
.legal-section address { font-style: normal; }
.legal-section a { color: var(--gx-red-dark); font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-facts { margin: 0; display: grid; border-top: 1px solid var(--gx-line); }
.legal-facts > div { min-height: 58px; padding: 15px 0; display: grid; grid-template-columns: minmax(150px, .42fr) minmax(0, 1fr); gap: 22px; align-items: start; border-bottom: 1px solid var(--gx-line); }
.legal-facts dt { color: var(--gx-text-faint); font-size: 14px; font-weight: 500; }
.legal-facts dd { margin: 0; color: var(--gx-ink); }
.legal-footer { padding: 34px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--gx-text-faint); font-size: 14px; }
.legal-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.legal-footer a { color: var(--gx-red-dark); font-weight: 500; text-decoration: none; }
.legal-footer a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .legal-topbar { min-height: 72px; padding: 12px 16px; }
  .legal-actions .btn:not(.btn-icon) { display: none; }
  .legal-main { width: min(100% - 32px, 940px); padding-top: 46px; }
  .legal-hero { padding-bottom: 36px; }
  .legal-section { padding: 34px 0; }
  .legal-facts > div { grid-template-columns: 1fr; gap: 3px; }
  .legal-footer { align-items: flex-start; flex-direction: column; }
  .legal-footer nav { justify-content: flex-start; gap: 12px 18px; }
}
