/* 星熵智标 · 法律页面与 Cookie 偏好 */
[hidden] { display: none !important; }

.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 10000;
  max-width: 1120px; margin: 0 auto; background: #fff; border: 1px solid #dfe4ec;
  border-radius: 14px; box-shadow: 0 18px 55px rgba(15, 23, 42, .2);
  padding: 16px 18px;
}
.cookie-banner__body { display: flex; align-items: center; gap: 14px; }
.cookie-banner__icon {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 10px; background: #eef4ff; color: #1f5eff; font-size: 20px; font-weight: 700;
}
.cookie-banner__text { flex: 1; min-width: 0; }
.cookie-banner__text b { display: block; font-size: 13px; color: #111827; }
.cookie-banner__text p { margin: 4px 0 0; color: #6b7280; font-size: 11.5px; line-height: 1.65; }
.cookie-banner__text a { color: #1f5eff; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.cookie-btn {
  height: 34px; padding: 0 13px; border-radius: 7px; border: 1px solid transparent;
  font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.cookie-btn--primary { background: #1f5eff; color: #fff; }
.cookie-btn--primary:hover { background: #174bd8; }
.cookie-btn--ghost { background: #fff; border-color: #dfe4ec; color: #374151; }
.cookie-btn--ghost:hover { background: #f8fafc; }
.cookie-linkbtn { border: 0; background: transparent; color: #6b7280; font: inherit; font-size: 11.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.cookie-linkbtn:hover { color: #111827; }

.cookie-dialog {
  width: min(92vw, 560px); border: 1px solid #e7eaf0; border-radius: 16px;
  padding: 26px 26px 22px; box-shadow: 0 24px 70px rgba(16, 32, 58, .22);
}
.cookie-dialog::backdrop { background: rgba(17, 24, 39, .38); }
.cookie-dialog h2 { margin: 0 0 8px; font-size: 20px; color: #111827; }
.cookie-dialog__lead { margin: 0 0 18px; color: #6b7280; font-size: 12.5px; line-height: 1.75; }
.cookie-dialog__close {
  position: absolute; top: 10px; right: 12px; width: 28px; height: 28px;
  border: 0; border-radius: 50%; background: #f3f5f8; color: #6b7280; font-size: 18px; cursor: pointer;
}
.cookie-choice {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-top: 1px solid #eef1f5;
}
.cookie-choice span { display: grid; gap: 3px; }
.cookie-choice b { color: #111827; font-size: 12.5px; }
.cookie-choice i { color: #8a94a6; font-size: 11.5px; font-style: normal; line-height: 1.55; }
.cookie-choice input { width: 17px; height: 17px; margin-top: 2px; accent-color: #1f5eff; flex: none; }
.cookie-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.ft__licenses { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.legal-links { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.legal-links a, .legal-links button {
  border: 0; background: transparent; padding: 0; color: inherit; font: inherit;
  cursor: pointer; text-decoration: none;
}
.legal-links a:hover, .legal-links button:hover { color: #1f5eff; text-decoration: underline; text-underline-offset: 2px; }
.legal-links > * + *::before { content: '·'; margin-right: 8px; color: #b7c0cd; text-decoration: none; }

.legal-page { background: #f6f8fb; }
.legal-main { padding: 56px 0 72px; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 46px; align-items: start; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.legal-toc {
  position: sticky; top: 96px; padding: 18px; border: 1px solid #e5e9f0;
  border-radius: 12px; background: #fff;
}
.legal-toc b { display: block; margin-bottom: 10px; font-size: 12px; color: #111827; }
.legal-toc a { display: block; padding: 5px 0; color: #6b7280; font-size: 11.5px; line-height: 1.45; }
.legal-toc a:hover { color: #1f5eff; }
.legal-content { min-width: 0; }
.legal-content h1 { margin: 0 0 8px; font-family: var(--font-display); font-size: 34px; letter-spacing: -.03em; color: #111827; }
.legal-meta { margin: 0 0 26px; color: #8a94a6; font-size: 12px; }
.legal-content h2 { margin: 34px 0 12px; padding-top: 4px; font-size: 19px; color: #111827; }
.legal-content h3 { margin: 22px 0 8px; font-size: 14px; color: #111827; }
.legal-content p, .legal-content li { color: #4b5563; font-size: 13px; line-height: 1.9; }
.legal-content p { margin: 0 0 12px; }
.legal-content ul, .legal-content ol { margin: 0 0 15px; padding-left: 22px; }
.legal-content li + li { margin-top: 4px; }
.legal-callout { margin: 18px 0; padding: 14px 16px; border: 1px solid #dbe6ff; border-radius: 10px; background: #f4f7ff; }
.legal-callout p { margin: 0; color: #334155; }
.legal-table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 12px; }
.legal-table th, .legal-table td { padding: 9px 10px; border: 1px solid #e5e9f0; text-align: left; vertical-align: top; line-height: 1.65; }
.legal-table th { background: #f6f8fb; color: #475569; font-weight: 700; white-space: nowrap; }
.legal-table td { color: #5b6577; }
.legal-contact { margin-top: 30px; padding-top: 18px; border-top: 1px solid #e5e9f0; }
.legal-contact a { color: #1f5eff; text-decoration: underline; text-underline-offset: 2px; }
.acct-legal { margin: 6px 0 0; padding: 4px 2px 12px; color: #8a94a6; font-size: 11.5px; line-height: 1.8; }
.acct-legal a, .acct-legal button { color: #1f5eff; text-decoration: none; }
.acct-legal a:hover, .acct-legal button:hover { text-decoration: underline; }
.acct-legal button { border: 0; background: transparent; padding: 0; font: inherit; cursor: pointer; }

@media (max-width: 820px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 14px; }
  .cookie-banner__body { align-items: flex-start; flex-wrap: wrap; }
  .cookie-banner__text { flex-basis: calc(100% - 54px); }
  .cookie-banner__actions { width: 100%; justify-content: stretch; padding-left: 52px; }
  .cookie-banner__actions .cookie-btn { flex: 1; }
  .cookie-banner__actions .cookie-linkbtn { flex-basis: 100%; text-align: left; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; padding: 0 18px; }
  .legal-toc { position: static; }
  .legal-main { padding-top: 34px; }
  .legal-content h1 { font-size: 28px; }
}
