:root {
  --green: #164a3a;
  --deep: #0d3027;
  --text: #244338;
  --muted: #687e72;
  --cream: #f7f8f3;
  --line: #e2e9e1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--cream); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(100% - 80px, 1240px); margin-inline: auto; }
.skip-link { position: absolute; top: -50px; left: 16px; z-index: 100; padding: 10px 16px; background: white; }
.skip-link:focus { top: 10px; }

.site-header { background: white; border-bottom: 1px solid #eaf0e9; }
.header-inner { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand span { display: flex; flex-direction: column; gap: 3px; }
.brand strong { font-size: 21px; line-height: 1; letter-spacing: .08em; }
.brand small { color: #91a198; font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.brand .brand-mark { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; overflow: visible; flex: 0 0 auto; }
.brand-mark img { width: 68px; height: 68px; max-width: none; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 0 1px rgba(8, 43, 66, .7)); filter: url(#brand-on-light); }
.brand-filters { position: absolute; pointer-events: none; }
.header-nav { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.header-nav a { transition: background .2s, color .2s; }
.home-link { margin-right: 25px; color: #5f7768; }
.home-link span { margin-left: 7px; font-size: 17px; }
.home-link:hover { color: var(--green); }
.doc-tab { padding: 10px 18px; border-radius: 100px; color: #668071; }
.doc-tab:hover { background: #eef4eb; }
.doc-tab.is-current { background: var(--green); color: white; }

.legal-hero { position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(9, 42, 33, .97) 0%, rgba(14, 58, 45, .95) 55%, rgba(15, 58, 44, .63) 100%), url('../assets/hero-wellness.png') center 55% / cover; color: white; }
.legal-hero::after { content: ''; position: absolute; top: -185px; right: 12%; width: 470px; height: 470px; border: 1px solid rgba(225, 246, 215, .12); border-radius: 50%; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding: 33px 0 72px; }
.breadcrumb { display: flex; gap: 13px; align-items: center; color: #b9d1c3; font-size: 12px; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span:nth-child(2) { opacity: .6; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 57px 0 16px; color: #cce3bf; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.eyebrow-line { width: 27px; height: 1px; background: currentColor; }
.legal-hero h1 { margin: 0; font-size: clamp(38px, 4.3vw, 58px); font-weight: 600; letter-spacing: -.045em; line-height: 1.22; }
.hero-intro { max-width: 690px; margin-top: 20px; }
.hero-intro p { margin: 0; color: #dce9dd; font-size: 15px; line-height: 1.9; }

.legal-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: clamp(34px, 5vw, 72px); align-items: start; padding-top: 56px; padding-bottom: 100px; }
.toc-inner { position: sticky; top: 30px; }
.toc-heading { margin: 0 0 19px; padding-left: 15px; color: #234b3a; font-size: 14px; font-weight: 700; }
.toc-heading span { display: block; margin-top: 5px; color: #91a89a; font-size: 10px; letter-spacing: .17em; }
.toc nav { display: flex; flex-direction: column; border-left: 1px solid #d6e3d7; }
.toc nav a { display: flex; align-items: baseline; gap: 13px; padding: 11px 15px; border-left: 2px solid transparent; margin-left: -1px; color: #73897a; font-size: 13px; line-height: 1.5; transition: color .2s, background .2s, border-color .2s; }
.toc nav a:hover, .toc nav a:focus-visible { color: var(--green); border-left-color: #95bd81; background: #edf4eb; }
.toc nav a span { color: #9db0a0; font-family: Georgia, serif; font-size: 13px; }
.article-column { min-width: 0; }
.legal-article { padding: 11px clamp(28px, 5.4vw, 82px) 12px; background: white; border: 1px solid #e8ede6; border-radius: 14px; box-shadow: 0 22px 65px rgba(19, 58, 39, .055); }
.legal-section { padding: 35px 0 38px; border-bottom: 1px solid var(--line); }
.legal-section:last-child { border-bottom: 0; }
.legal-section h2 { position: relative; margin: 0 0 19px; padding-left: 18px; color: #1b4b37; font-size: 20px; font-weight: 650; letter-spacing: -.02em; line-height: 1.5; }
.legal-section h2::before { content: ''; position: absolute; top: .38em; bottom: .38em; left: 0; width: 4px; border-radius: 4px; background: #9ac98a; }
.legal-section p, .legal-section li { color: #53685b; font-size: 15px; line-height: 2; }
.legal-section p { margin: 0; }
.legal-section ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.legal-section li { position: relative; padding-left: 20px; }
.legal-section li::before { content: ''; position: absolute; top: .88em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: #8fb781; }
.legal-section a { color: #267656; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-next { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 25px 30px; border: 1px solid #dbe7da; border-radius: 12px; background: #edf4eb; }
.legal-next div { display: flex; flex-direction: column; gap: 5px; }
.legal-next div span { color: #7b9583; font-size: 11px; }
.legal-next div strong { color: #1d5039; font-size: 18px; }
.legal-next a { color: #2d714e; font-size: 13px; font-weight: 700; white-space: nowrap; }
.legal-next a span { margin-left: 8px; font-size: 18px; }
.legal-next a:hover { text-decoration: underline; }
.site-footer { background: var(--deep); color: #a8c2b0; }
.footer-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; }
.footer-inner a:hover { color: white; }

@media (max-width: 850px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 34px; }
  .toc { min-width: 0; }
  .toc-inner { position: static; }
  .toc-heading { padding-left: 0; margin-bottom: 12px; }
  .toc-heading span { display: inline; margin-left: 8px; }
  .toc nav { width: 100%; flex-direction: row; gap: 9px; overflow-x: auto; border: 0; padding-bottom: 5px; scrollbar-width: thin; }
  .toc nav a { flex: 0 0 auto; margin: 0; padding: 9px 13px; border: 1px solid #dce8dc; border-radius: 100px; background: white; white-space: nowrap; }
  .toc nav a:hover, .toc nav a:focus-visible { border-color: #95bd81; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 36px, 550px); }
  .header-inner { height: 68px; }
  .brand { gap: 8px; }
  .brand .brand-mark { width: 36px; height: 36px; }
  .brand-mark img { width: 50px; height: 50px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 7px; }
  .header-nav { gap: 0; }
  .home-link { display: none; }
  .doc-tab { padding: 9px 11px; font-size: 11px; }
  .hero-inner { padding: 24px 0 54px; }
  .eyebrow { margin-top: 43px; }
  .legal-hero h1 { font-size: clamp(32px, 10vw, 39px); }
  .hero-intro p { font-size: 13px; line-height: 1.8; }
  .legal-layout { padding-top: 30px; padding-bottom: 60px; }
  .legal-article { padding: 0 23px; }
  .legal-section { padding: 29px 0 31px; }
  .legal-section h2 { font-size: 18px; margin-bottom: 14px; }
  .legal-section p, .legal-section li { font-size: 14px; line-height: 1.9; }
  .legal-next { padding: 20px; }
}

@media (max-width: 360px) {
  .header-inner { gap: 8px; }
  .brand { gap: 5px; }
  .brand .brand-mark { width: 30px; height: 30px; }
  .brand-mark img { width: 42px; height: 42px; }
  .brand strong { font-size: 15px; }
  .brand small { display: none; }
  .doc-tab { padding: 8px 10px; white-space: nowrap; }
}

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