:root {
  color-scheme: light;
  --legal-ink: #153d3d;
  --legal-ink-strong: #092f31;
  --legal-muted: #5d706e;
  --legal-brand: #0a6b63;
  --legal-brand-deep: #07524d;
  --legal-accent: #b38a2a;
  --legal-paper: #fffefa;
  --legal-bg: #f1f6f2;
  --legal-line: #dce7e2;
  --legal-shadow: 0 22px 58px rgb(14 68 62 / 9%);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--legal-bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--legal-ink);
  background:
    radial-gradient(circle at 12% 0%, rgb(179 138 42 / 10%), transparent 28rem),
    linear-gradient(180deg, #fbfdf9 0, var(--legal-bg) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--legal-brand);
  text-underline-offset: .2em;
}

a:hover {
  color: var(--legal-brand-deep);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgb(10 107 99 / 28%);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--legal-brand-deep);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgb(21 61 61 / 10%);
  background: rgb(255 254 250 / 91%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.legal-header__inner,
.legal-footer__inner,
.legal-main {
  width: min(calc(100% - 40px), 940px);
  margin-inline: auto;
}

.legal-header__inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.legal-logo img {
  display: block;
  width: clamp(152px, 22vw, 194px);
  max-height: 48px;
}

.legal-header__nav,
.legal-footer__nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.legal-header__nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.legal-main {
  padding-block: clamp(28px, 6vw, 64px) clamp(48px, 8vw, 88px);
}

.legal-document {
  overflow: hidden;
  padding: clamp(26px, 6vw, 64px);
  border: 1px solid var(--legal-line);
  border-radius: 26px;
  background: var(--legal-paper);
  box-shadow: var(--legal-shadow);
}

.legal-eyebrow {
  margin: 0 0 12px;
  color: var(--legal-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.legal-document h1 {
  margin: 0;
  color: var(--legal-ink-strong);
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.16;
  letter-spacing: -.025em;
}

.legal-lead {
  max-width: 48rem;
  margin: 22px 0 0;
  color: var(--legal-muted);
  font-size: clamp(16px, 2vw, 19px);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--legal-line);
  border-radius: 14px;
  color: var(--legal-muted);
  background: #f6faf7;
  font-size: 14px;
}

.legal-meta strong {
  color: var(--legal-ink);
}

.legal-section {
  padding-top: 38px;
}

.legal-section + .legal-section {
  margin-top: 38px;
  border-top: 1px solid var(--legal-line);
}

.legal-section h2 {
  margin: 0 0 14px;
  color: var(--legal-brand-deep);
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.35;
}

.legal-section h3 {
  margin: 24px 0 8px;
  color: var(--legal-ink-strong);
  font-size: 17px;
}

.legal-section p {
  margin: 12px 0 0;
}

.legal-section ul,
.legal-section ol {
  margin: 14px 0 0;
  padding-left: 1.35em;
}

.legal-section li + li {
  margin-top: 9px;
}

.legal-callout {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 4px solid var(--legal-accent);
  border-radius: 0 12px 12px 0;
  background: #fbf7e9;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.contact-action {
  display: flex;
  min-width: 0;
  min-height: 72px;
  flex-direction: column;
  justify-content: center;
  padding: 16px 18px;
  border: 1px solid var(--legal-line);
  border-radius: 16px;
  color: var(--legal-ink);
  background: #f8fbf8;
  text-decoration: none;
}

.contact-action span {
  color: var(--legal-muted);
  font-size: 13px;
}

.contact-action strong {
  overflow-wrap: anywhere;
  color: var(--legal-brand-deep);
  font-size: 16px;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.faq-list details {
  border: 1px solid var(--legal-line);
  border-radius: 14px;
  background: #fff;
}

.faq-list summary {
  min-height: 56px;
  padding: 15px 48px 15px 18px;
  color: var(--legal-ink-strong);
  font-weight: 750;
  cursor: pointer;
}

.faq-list details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--legal-muted);
}

.legal-footer {
  color: rgb(255 255 255 / 76%);
  background: #083b3b;
}

.legal-footer__inner {
  display: flex;
  min-height: 98px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
}

.legal-footer a {
  color: #fff;
}

@media (max-width: 680px) {
  .legal-header__inner {
    min-height: 68px;
  }

  .legal-header__nav a:not(:last-child) {
    display: none;
  }

  .legal-document {
    border-radius: 18px;
  }

  .legal-meta,
  .contact-actions {
    grid-template-columns: 1fr;
  }

  .legal-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 24px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
