:root {
  --ink: #183047;
  --muted: #5f7184;
  --line: #d8e4ee;
  --surface: #ffffff;
  --soft: #f5f9fb;
  --accent: #13b99a;
  --accent-ink: #0d695c;
  --sun: #f5b92e;
  --blue: #189de6;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #eef9ff 0%, #ffffff 42%, #f7fbf9 100%);
  color: var(--ink);
}

a {
  color: inherit;
}

.home {
  min-height: 100vh;
}

.hero {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
}

.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #28a8ec 0%, #52c7ef 58%, #1d72b9 100%);
}

.hero-media img {
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: contain;
  object-position: center;
  display: block;
}

.hero-content {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 7vw, 96px);
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(17, 82, 124, 0.18);
}

.eyebrow {
  margin: 28px 0 10px;
  color: var(--accent-ink);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.3rem, 5vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 560px;
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.language-grid {
  display: grid;
  max-width: 620px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.language-grid a {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(24, 48, 71, 0.07);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.language-grid a:hover,
.language-grid a:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 16px 32px rgba(19, 185, 154, 0.16);
  transform: translateY(-2px);
  outline: none;
}

.language-grid span {
  color: var(--muted);
  font-size: 0.88rem;
}

.language-grid strong {
  font-size: 1rem;
  line-height: 1.35;
}

.policy-page {
  background: var(--soft);
}

.policy-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 28px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-link img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.lang-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.lang-links a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.lang-links a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}

.policy-card {
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(24, 48, 71, 0.08);
}

.policy-card h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.updated {
  margin: 12px 0 32px;
  color: var(--muted);
}

.policy-card h2 {
  margin: 34px 0 10px;
  font-size: 1.22rem;
  line-height: 1.35;
}

.policy-card p,
.policy-card li {
  color: #34485b;
  font-size: 1rem;
  line-height: 1.8;
}

.policy-card ul {
  padding-left: 1.25rem;
}

.policy-card a {
  color: var(--accent-ink);
  font-weight: 700;
}

footer {
  padding: 28px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 38vh;
  }

  .hero-media img {
    max-height: 38vh;
  }

  .hero-content {
    min-height: 62vh;
    justify-content: flex-start;
  }

  .language-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-content {
    padding: 28px 20px 44px;
  }

  .app-icon {
    width: 78px;
    height: 78px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .lang-links {
    justify-content: flex-start;
  }
}
