:root {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  color-scheme: light;
  font-synthesis: none;
  --text: #192825;
  --muted: #4f6058;
  --accent: #2b603c;
  --line: #dbe5de;
  --surface: #f5f8f4;
  --accent-wash: #e4efe4;
  --gutter: clamp(1rem, 3.5vw, 3rem);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, p {
  margin: 0;
}

body {
  line-height: 1.65;
}

#app {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 2;
  inset: 0.75rem auto auto 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: #fff;
  transform: translateY(-160%);
}

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

.site-width {
  width: min(calc(100% - var(--gutter) - var(--gutter)), 77.5rem);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 5.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-type {
  display: grid;
  gap: 0.2rem;
  line-height: 1.15;
}

.brand-type strong {
  font-size: 1.0625rem;
  letter-spacing: 0.045em;
}

.brand-type span, .footer-inner span {
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem clamp(1.125rem, 3vw, 2rem);
  font-size: 0.875rem;
}

.site-nav a {
  padding-block: 0.5rem;
  color: var(--muted);
  white-space: nowrap;
}

.site-nav .nav-contact {
  padding-inline: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.625rem;
  background: var(--surface);
  color: var(--text);
}

.site-nav a:hover, .site-nav a[aria-current='page'], .footer-inner a:hover, .back-link:hover {
  color: var(--accent);
}

.site-nav .nav-contact:hover {
  border-color: var(--accent);
  background: var(--accent-wash);
}

.hero {
  --accent: #d5f58e;
  --hero-surface: #152323;
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(30rem, 44vw, 36rem);
  align-items: center;
  overflow: hidden;
  margin-block-start: 1rem;
  border: 1px solid #334344;
  border-radius: 1.5rem;
  background: var(--hero-surface);
  color: #f1f5ed;
}

.hero-visual {
  position: absolute;
  inset: 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 53%;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: '';
  background:
    linear-gradient(90deg, var(--hero-surface), rgb(21 35 35 / 94%) 23%, rgb(21 35 35 / 59%) 47%, transparent 74%),
    linear-gradient(to top, rgb(9 17 17 / 32%), transparent 35%);
}

.hero-copy {
  position: relative;
  max-width: 39rem;
  padding: clamp(2.25rem, 6vw, 5rem);
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-block-end: 1.125rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-label::before {
  width: 1.375rem;
  height: 2px;
  background: currentColor;
  content: '';
}

.hero h1 {
  font-size: clamp(2.75rem, 5.55vw, 5rem);
  font-weight: 800;
  line-height: 1.17;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: var(--accent);
}

.hero-description {
  margin-block: 1.25rem 1.75rem;
  color: #d6e0d7;
  font-size: clamp(1rem, 1.7vw, 1.125rem);
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 0.625rem;
  background: var(--accent);
  color: #14211a;
  font-weight: 700;
}

.button:hover {
  background: #e5ffb3;
}

.about, .contact {
  scroll-margin-top: 1.5rem;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1.75fr;
  align-items: start;
  gap: 1rem 3rem;
  padding: clamp(2.75rem, 7vw, 5rem) clamp(0rem, 3vw, 2.5rem);
}

.about h2, .contact h2 {
  font-size: clamp(1.65rem, 3vw, 2.375rem);
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.about-copy {
  max-width: 41rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.65vw, 1.125rem);
  line-height: 1.85;
}

.legal-name {
  margin-block-start: 0.875rem;
  color: var(--text);
}

.contact {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 1.5rem 3rem;
  margin-block-end: clamp(2.75rem, 6vw, 4.5rem);
  padding: clamp(1.5rem, 3.6vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
}

.contact-copy p {
  margin-block-start: 0.65rem;
  color: var(--muted);
}

.contact-detail {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-self: end;
  gap: 0.9rem;
  overflow-wrap: anywhere;
}

.mail-icon {
  position: relative;
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 0.625rem;
  background: #fff;
  color: var(--accent);
}

.mail-icon::before, .mail-icon::after {
  position: absolute;
  left: 50%;
  content: '';
}

.mail-icon::before {
  top: 50%;
  width: 1.125rem;
  height: 0.8125rem;
  border: 1.5px solid currentColor;
  border-radius: 0.1875rem;
  transform: translate(-50%, -50%);
}

.mail-icon::after {
  top: 0.9375rem;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.contact-label {
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer {
  margin-block-start: auto;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  min-height: 4.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.875rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.policy {
  max-width: 48rem;
  padding-block: clamp(2.75rem, 7vw, 5rem) 5rem;
}

.back-link {
  display: inline-block;
  margin-block-end: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.policy h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.policy-languages {
  margin-block-start: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
}

.policy-languages summary {
  display: flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: inherit;
  cursor: pointer;
  list-style: none;
}

.policy-languages summary::-webkit-details-marker {
  display: none;
}

.policy-languages summary::after {
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  margin-inline-start: auto;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  content: '';
  transform: translateY(-0.125rem) rotate(45deg);
}

.policy-languages[open] summary::after {
  transform: translateY(0.125rem) rotate(225deg);
}

.policy-languages summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.policy-language-label {
  color: var(--muted);
}

.policy-language-current {
  color: var(--accent);
  font-weight: 700;
}

.policy-language-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  gap: 0.375rem;
  margin: 0;
  padding: 0.625rem;
  border-top: 1px solid var(--line);
  list-style: none;
}

.policy-language-list a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.policy-language-list a:hover, .policy-language-list a[aria-current='page'] {
  background: var(--accent-wash);
  color: var(--accent);
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-block-start: 1.25rem;
  color: var(--muted);
}

.policy-section {
  margin-block-start: 2rem;
  padding-block-start: 1.5rem;
  border-top: 1px solid var(--line);
}

.policy-section h2, .policy-topic h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.policy-section p {
  margin-block-start: 0.75rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.policy-section strong {
  color: var(--text);
  font-weight: 700;
}

.policy-contents {
  margin-block-start: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
}

.policy-contents h3 {
  font-size: 1rem;
}

.policy-contents ol {
  margin: 0.75rem 0 0;
  padding-inline-start: 1.5rem;
  color: var(--muted);
}

.policy-contents li + li {
  margin-block-start: 0.375rem;
}

.policy-contents a {
  color: var(--accent);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.policy-topic {
  margin-block-start: 2rem;
  scroll-margin-top: 1.5rem;
}

.policy-topic + .policy-topic {
  padding-block-start: 1.5rem;
  border-top: 1px solid var(--line);
}

.policy-subsection {
  margin-block-start: 1.25rem;
}

.policy-subsection h4 {
  font-size: 1rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 43rem) {
  .hero {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    border-radius: 1.125rem;
  }

  .hero-copy {
    padding: 1.875rem 1.375rem 0.5rem;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 9vw, 3.5rem);
  }

  .hero-description {
    margin-block: 0.9rem 1.25rem;
  }

  .hero-visual {
    position: relative;
    inset: auto;
    order: 1;
    aspect-ratio: 16 / 9;
  }

  .hero-visual img {
    object-position: right center;
  }

  .hero-visual::after {
    background: linear-gradient(var(--hero-surface), transparent 38%);
  }

  .about, .contact {
    grid-template-columns: 1fr;
  }

  .contact-detail {
    justify-self: start;
  }
}

@media (max-width: 36rem) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-block: 0.875rem 0.125rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  [data-page='privacy'] .site-nav a {
    white-space: normal;
  }

  .policy h1 {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }
}

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