:root {
  --ink: #183431;
  --ink-soft: #52635f;
  --paper: #f6f5ef;
  --paper-deep: #e8ebe3;
  --card: #fffef9;
  --line: rgba(24, 52, 49, 0.15);
  --coral: #ee765e;
  --coral-dark: #c85242;
  --mint: #cfe3d8;
  --yellow: #f3d27b;
  --shadow: 0 18px 60px rgba(24, 52, 49, 0.09);
  --radius-lg: 28px;
  --radius-md: 17px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(243, 210, 123, 0.27), transparent 28rem),
    radial-gradient(circle at 96% 18%, rgba(207, 227, 216, 0.55), transparent 30rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--coral-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.site-header {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: -0.08em;
  box-shadow: 4px 4px 0 var(--ink);
}

.brand-name {
  font-size: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 0.91rem;
}

.site-nav a {
  text-decoration: none;
}

.nav-cta {
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 254, 249, 0.5);
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(48px, 8vw, 105px);
  padding: 72px 0 96px;
}

.eyebrow,
.kicker {
  margin: 0 0 18px;
  color: var(--coral-dark);
  font-size: 0.73rem;
  font-weight: 820;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -0.055em;
}

h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(3.3rem, 7vw, 6.5rem);
  font-weight: 500;
  line-height: 1.03;
}

.hero-copy {
  max-width: 610px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.7vw, 1.25rem);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 19px;
  border-radius: 999px;
  font-weight: 760;
  text-decoration: none;
}

.button-primary {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--coral);
}

.button-primary:hover {
  color: var(--paper);
  background: var(--coral-dark);
}

.text-link {
  color: var(--ink);
  font-weight: 700;
}

.hero-note {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 0.83rem;
}

.hero-note strong {
  color: var(--ink);
}

.hero-art {
  position: relative;
  min-height: 490px;
  display: grid;
  place-items: center;
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.hero-art::before {
  width: 270px;
  height: 270px;
  top: 30px;
  right: 10px;
  background: var(--mint);
}

.hero-art::after {
  width: 120px;
  height: 120px;
  bottom: 30px;
  left: 20px;
  background: var(--yellow);
}

.inbox-card {
  width: min(100%, 455px);
  overflow: hidden;
  border: 1px solid rgba(24, 52, 49, 0.11);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow), 10px 10px 0 rgba(24, 52, 49, 0.11);
  transform: rotate(2.5deg);
}

.inbox-top {
  padding: 22px 24px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}

.inbox-top p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.inbox-top h2 {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.live-dot {
  width: 11px;
  height: 11px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 6px rgba(238, 118, 94, 0.14);
}

.mail-list {
  padding: 8px 16px 18px;
}

.mail-row {
  padding: 15px 8px;
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.mail-row:last-child {
  border-bottom: 0;
}

.mail-avatar {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
  background: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
}

.mail-row:nth-child(2) .mail-avatar {
  background: #f4dfad;
}

.mail-row:nth-child(3) .mail-avatar {
  background: #f2c5bc;
}

.mail-row strong,
.mail-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-row strong {
  font-size: 0.89rem;
}

.mail-row small,
.mail-time {
  color: var(--ink-soft);
  font-size: 0.73rem;
}

.mail-time {
  align-self: start;
  padding-top: 2px;
}

.summary-pill {
  margin: 0 24px 25px;
  padding: 16px 17px;
  border-radius: 16px;
  color: var(--ink);
  background: #eaf3ed;
  font-size: 0.82rem;
  line-height: 1.55;
}

.summary-pill span {
  display: block;
  margin-bottom: 5px;
  color: var(--coral-dark);
  font-size: 0.67rem;
  font-weight: 820;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.trust-row {
  padding: 20px 0 21px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.trust-item b {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 0.77rem;
}

.section {
  padding: 112px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin-bottom: 15px;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4.8vw, 4.2rem);
  font-weight: 500;
  line-height: 1.08;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 260px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 254, 249, 0.58);
}

.feature-number {
  width: 37px;
  height: 37px;
  margin-bottom: 31px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--coral);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 800;
}

.feature-card:nth-child(2) .feature-number {
  background: var(--mint);
  color: var(--ink);
}

.feature-card:nth-child(3) .feature-number {
  background: var(--yellow);
  color: var(--ink);
}

.feature-card h3 {
  margin-bottom: 9px;
  font-size: 1.12rem;
  letter-spacing: -0.025em;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.permission-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 20px;
  align-items: stretch;
}

.permission-copy,
.permission-aside,
.audience-card,
.contact-card {
  border-radius: var(--radius-lg);
}

.permission-copy {
  padding: clamp(28px, 5vw, 56px);
  background: var(--ink);
  color: var(--paper);
}

.permission-copy h2 {
  max-width: 640px;
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4.6vw, 4.15rem);
  font-weight: 500;
  line-height: 1.08;
}

.permission-copy p {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(246, 245, 239, 0.74);
}

.permission-aside {
  padding: 30px;
  background: var(--mint);
}

.permission-aside h3 {
  margin-bottom: 21px;
  font-size: 1.05rem;
}

.check-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  padding: 13px 0 13px 30px;
  position: relative;
  border-top: 1px solid rgba(24, 52, 49, 0.15);
  font-size: 0.94rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--coral-dark);
  font-weight: 900;
}

.audience-section {
  padding-top: 0;
}

.audience-card {
  padding: 43px clamp(28px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) minmax(0, 1fr);
  gap: 48px;
  background: var(--yellow);
}

.audience-card h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.1;
}

.audience-card p {
  margin-bottom: 0;
  color: rgba(24, 52, 49, 0.78);
}

.legal-links {
  padding: 0 0 112px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.legal-link-card {
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 254, 249, 0.55);
  text-decoration: none;
}

.legal-link-card span:first-child {
  font-weight: 760;
}

.legal-link-card span:last-child {
  color: var(--coral-dark);
  font-size: 1.2rem;
}

.contact-card {
  padding: 46px clamp(28px, 6vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--paper);
  background: var(--coral-dark);
}

.contact-card h2 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.08;
}

.contact-card p {
  margin-bottom: 0;
  color: rgba(246, 245, 239, 0.82);
}

.contact-email {
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 760;
  text-decoration: none;
}

.contact-email:hover {
  color: var(--ink);
  background: var(--yellow);
}

.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 38px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--ink);
}

/* Legal pages */
.legal-hero {
  padding: 84px 0 54px;
}

.legal-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 7vw, 6rem);
}

.legal-hero p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.legal-meta {
  margin-top: 22px !important;
  font-size: 0.86rem !important;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 72px;
  padding: 30px 0 105px;
}

.legal-content {
  max-width: 760px;
}

.legal-content section {
  padding: 31px 0;
  border-top: 1px solid var(--line);
}

.legal-content section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-content h2 {
  margin-bottom: 13px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.1vw, 2.65rem);
  font-weight: 500;
  line-height: 1.16;
}

.legal-content h3 {
  margin: 24px 0 8px;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.legal-content p {
  margin-bottom: 13px;
  color: var(--ink-soft);
}

.legal-content ul {
  margin: 9px 0 0;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.legal-content li + li {
  margin-top: 6px;
}

.callout {
  padding: 20px 22px;
  border-left: 4px solid var(--coral);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(255, 254, 249, 0.78);
}

.callout p:last-child {
  margin-bottom: 0;
}

.data-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th,
.data-table td {
  padding: 15px 16px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table th {
  color: var(--ink);
  background: var(--paper-deep);
  font-weight: 760;
}

.data-table td {
  color: var(--ink-soft);
}

.legal-toc {
  position: sticky;
  top: 26px;
  align-self: start;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 254, 249, 0.52);
}

.legal-toc p {
  margin-bottom: 9px;
  color: var(--coral-dark);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.legal-toc a {
  display: block;
  padding: 5px 0;
  color: var(--ink-soft);
  font-size: 0.83rem;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--coral-dark);
}

.legal-bottom {
  margin-top: 10px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 52px;
  }

  .hero-art {
    min-height: 420px;
  }

  .card-grid,
  .permission-layout {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-toc {
    position: static;
    order: -1;
  }
}

@media (max-width: 600px) {
  .site-header,
  .site-footer,
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    padding: 18px 0;
  }

  .site-nav {
    gap: 13px;
    font-size: 0.78rem;
  }

  .nav-cta {
    padding: 6px 10px;
  }

  .brand-name {
    display: none;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  .hero {
    min-height: auto;
    padding: 55px 0 72px;
  }

  .hero-art {
    min-height: 350px;
  }

  .inbox-card {
    transform: rotate(1.5deg) scale(0.94);
  }

  .trust-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section {
    padding: 78px 0;
  }

  .legal-links {
    grid-template-columns: 1fr;
    padding-bottom: 78px;
  }

  .audience-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-card,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-hero {
    padding: 58px 0 38px;
  }

  .legal-layout {
    padding-bottom: 72px;
  }
}

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