:root {
  color: #1c1c1a;
  background: #f7f7f5;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f7f7f5; color: #1c1c1a; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible, summary:focus-visible { outline: 2px solid #1c1c1a; outline-offset: 4px; }

.legal-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1040px) / 2));
  border-bottom: 1px solid rgba(28, 28, 26, .1);
  background: rgba(247, 247, 245, .94);
  backdrop-filter: blur(14px);
}

.legal-brand { font-size: 14px; font-weight: 720; letter-spacing: .1em; text-decoration: none; }
.legal-nav { display: flex; gap: 20px; color: #696965; font-size: 12px; }
.legal-nav a { text-decoration: none; }
.legal-nav a:hover { color: #1c1c1a; }

.legal-shell { width: min(100% - 40px, 760px); margin: 0 auto; padding: 56px 0 96px; }
.legal-hero { max-width: 680px; padding-bottom: 36px; border-bottom: 1px solid rgba(28, 28, 26, .12); }
.legal-hero p:first-child { margin: 0 0 14px; color: #72726d; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.legal-hero h1 { max-width: 14em; margin: 0; font-size: clamp(34px, 5vw, 52px); font-weight: 560; line-height: 1.08; letter-spacing: -.035em; }
.legal-hero p:last-child { max-width: 640px; margin: 20px 0 0; color: #62625d; font-size: 15px; line-height: 1.75; }

.legal-language-nav { display: flex; gap: 10px; margin: 34px 0 0; }
.legal-language-nav a { padding: 8px 12px; border: 1px solid rgba(23, 23, 19, .16); border-radius: 999px; font-size: 12px; text-decoration: none; }
.legal-language-nav a:hover { border-color: #171713; }

.legal-section { display: block; padding: 40px 0; border-bottom: 1px solid rgba(28, 28, 26, .1); }
.legal-section > h2 { margin: 0 0 24px; color: #696965; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.legal-copy { max-width: 680px; }
.legal-copy h3 { margin: 32px 0 10px; font-size: 19px; line-height: 1.45; }
.legal-copy h3:first-child { margin-top: 0; }
.legal-copy p, .legal-copy li { color: #50504c; font-size: 14px; line-height: 1.82; }
.legal-copy ul { margin: 14px 0 0; padding-left: 20px; }
.legal-copy strong { color: #1c1c1a; }
.legal-copy .legal-note { padding: 16px 18px; border-left: 2px solid #8a8a84; background: rgba(255, 255, 255, .52); }

.legal-footer { display: flex; justify-content: space-between; padding-top: 30px; color: #817b70; font-size: 11px; line-height: 1.8; }
.legal-footer nav { display: flex; gap: 18px; }

.authority-shell { width: min(100% - 40px, 760px); }
.authority-hero { max-width: 680px; }
.authority-hero h1 { max-width: 15em; font-size: clamp(34px, 4.5vw, 50px); line-height: 1.08; }
.authority-section { display: block; padding: 36px 0; border-bottom: 1px solid rgba(28, 28, 26, .1); }
.authority-section > h2 { max-width: 22em; margin: 0 0 14px; font-size: clamp(19px, 2.2vw, 23px); font-weight: 620; line-height: 1.35; letter-spacing: -.018em; }
.authority-copy { max-width: 650px; }
.authority-copy p, .authority-copy li, .authority-facts dd { color: #50504c; font-size: 15px; line-height: 1.78; }
.authority-copy p { margin: 0 0 14px; }
.authority-copy ul, .authority-copy ol { margin: 0; padding-left: 22px; }
.authority-copy li + li { margin-top: 9px; }
.authority-facts { display: grid; margin: 0; gap: 0; }
.authority-facts div { display: grid; padding: 13px 0; border-bottom: 1px solid rgba(28, 28, 26, .08); gap: 20px; grid-template-columns: minmax(110px, .42fr) minmax(0, 1.58fr); }
.authority-facts div:first-child { padding-top: 0; }
.authority-facts dt { color: #777772; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.authority-facts dd { margin: 0; color: #292927; }
.authority-links { display: grid; list-style: none; padding: 0 !important; gap: 10px; }
.authority-links a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(28, 28, 26, .1); text-decoration: none; }
.authority-faq details { padding: 16px 0; border-bottom: 1px solid rgba(28, 28, 26, .1); }
.authority-faq summary { cursor: pointer; color: #24211d; font-size: 16px; font-weight: 650; }
.authority-faq details p { margin: 14px 0 0; }
.authority-source { margin: 36px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(28, 28, 26, .1); }
.authority-source strong { color: #555551; font-size: 11px; letter-spacing: .06em; }
.authority-source p { max-width: 640px; margin: 7px 0 0; color: #72726d; font-size: 12px; line-height: 1.7; }
.authority-gallery { display: grid; margin: 32px 0 4px; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.authority-gallery figure { margin: 0; overflow: hidden; border: 1px solid rgba(28, 28, 26, .08); background: rgba(255,255,255,.42); }
.authority-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #ebe7dd; }
.authority-gallery figcaption { padding: 12px 14px 14px; color: #68645d; font-size: 12px; line-height: 1.6; }
.not-found-action { margin: 48px 0 0; }
.not-found-action a { display: inline-flex; padding: 13px 18px; border: 1px solid rgba(23, 23, 19, .2); border-radius: 999px; text-decoration: none; }
.not-found-action a:hover { border-color: #171713; }

@media (max-width: 680px) {
  .legal-header { min-height: 64px; padding-inline: 20px; }
  .legal-nav a { display: none; }
  .legal-nav .legal-nav__language { display: block; }
  .legal-shell { width: min(100% - 32px, 760px); padding: 42px 0 72px; }
  .legal-hero { padding-bottom: 30px; }
  .legal-hero h1 { font-size: clamp(32px, 10vw, 42px); }
  .legal-section { padding: 34px 0; }
  .authority-section { padding: 30px 0; }
  .authority-section > h2 { font-size: 19px; }
  .authority-facts div { gap: 8px; grid-template-columns: 1fr; }
  .authority-gallery { grid-template-columns: 1fr; }
  .legal-footer { display: grid; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
