:root {
  --ink: #172027;
  --muted: #5d6973;
  --line: #d8dee3;
  --paper: #f7f5f0;
  --white: #ffffff;
  --accent: #0f766e;
  --accent-dark: #0d4f4a;
  --gold: #b58746;
  --shadow: 0 18px 45px rgba(20, 30, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(247, 245, 240, 0.92);
  border-bottom: 1px solid rgba(23, 32, 39, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--accent-dark);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  padding: clamp(72px, 11vw, 132px) clamp(20px, 5vw, 72px);
  overflow: hidden;
  border-bottom: 1px solid rgba(23, 32, 39, 0.08);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 245, 240, 0.96) 0%, rgba(247, 245, 240, 0.86) 40%, rgba(247, 245, 240, 0.18) 73%),
    url("/assets/hero-legal-brand.png") center right / cover no-repeat;
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.3;
}

.lead {
  max-width: 660px;
  margin: 0 0 30px;
  color: #34414b;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 700;
}

.button.primary {
  color: var(--white);
  background: var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.58);
}

.section {
  padding: clamp(56px, 8vw, 92px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1080px;
  color: var(--muted);
  font-size: 17px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 300px;
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(23, 32, 39, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(20, 30, 36, 0.04);
}

.service-index {
  display: block;
  margin-bottom: 58px;
  color: var(--gold);
  font-weight: 800;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.content-band {
  background: #eef3f2;
  border-top: 1px solid rgba(23, 32, 39, 0.08);
  border-bottom: 1px solid rgba(23, 32, 39, 0.08);
}

.article-list {
  display: grid;
  gap: 12px;
  max-width: 1080px;
}

.article-row {
  display: grid;
  grid-template-columns: 150px 1fr 112px;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background: var(--white);
  border: 1px solid rgba(23, 32, 39, 0.08);
  border-radius: 8px;
}

.article-row span,
.article-row time {
  color: var(--muted);
  font-size: 14px;
}

.article-row strong {
  font-size: 18px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1080px;
}

.timeline article {
  padding: 24px;
  background: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(20, 30, 36, 0.04);
}

.timeline time {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
  background: var(--ink);
  color: var(--white);
}

.contact .eyebrow {
  color: #8fd6ce;
}

.contact p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-panel {
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

dl {
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

dl div:last-child {
  border-bottom: 0;
}

dt {
  color: #8fd6ce;
  font-weight: 700;
}

dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.disclaimer {
  max-width: 1180px;
}

.disclaimer h2 {
  margin-bottom: 16px;
  font-size: 28px;
}

.disclaimer p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid rgba(23, 32, 39, 0.08);
}

.article-page {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(50px, 7vw, 84px) 20px;
}

.article-page h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.article-meta {
  color: var(--muted);
}

.article-page p,
.article-page li {
  color: #33414b;
  font-size: 18px;
}

.article-page blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  background: #eef3f2;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}

.article-page a {
  color: var(--accent-dark);
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .intro-grid,
  .service-grid,
  .timeline,
  .contact {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .service-index {
    margin-bottom: 24px;
  }

  .article-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 720px;
    align-items: start;
    padding-top: 62px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(247, 245, 240, 0.98) 0%, rgba(247, 245, 240, 0.88) 52%, rgba(247, 245, 240, 0.35) 100%),
      url("/assets/hero-legal-brand.png") center bottom / cover no-repeat;
  }

  h1 {
    font-size: 46px;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    flex-direction: column;
  }
}
