:root {
  color-scheme: light;
  --bg: #fbf8f5;
  --surface: #fffdf9;
  --text: #2f2a27;
  --muted: #6d645d;
  --border: #eadfd5;
  --accent: #557d5d;
  --accent-soft: #eef5ef;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.7;
}

a {
  color: var(--accent);
}

.site-shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 118px;
  min-height: 32px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
}

.hero {
  margin-bottom: 28px;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.14;
  letter-spacing: 0;
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.card-list {
  display: grid;
  gap: 14px;
}

.link-card,
.legal-section {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.link-card {
  display: block;
  padding: 18px 20px;
  color: var(--text);
  text-decoration: none;
}

.link-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.link-card span {
  color: var(--muted);
  font-size: 14px;
}

.legal-content {
  display: grid;
  gap: 14px;
}

.legal-section {
  padding: 18px 20px;
}

.legal-section h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0;
}

.legal-section p,
.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.intro {
  padding: 20px;
  border-radius: 8px;
  background: var(--accent-soft);
}

.footer {
  margin-top: 34px;
  color: #8f857d;
  font-size: 13px;
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 28px, 760px);
    padding-top: 28px;
  }

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

  h1 {
    font-size: 32px;
  }
}
