:root {
  --rose: #f57a99;
  --rose-deep: #e85f82;
  --cream: #fff8f2;
  --cream-2: #ffefe6;
  --ink: #523d47;
  --ink-soft: #8a7580;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(82, 61, 71, 0.08);
  --shadow-md: 0 22px 54px rgba(82, 61, 71, 0.12);
  --font-round: "Baloo 2", "Noto Sans TC", system-ui, sans-serif;
  --font-body: "Noto Sans TC", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

body::before {
  width: 46vmax;
  height: 46vmax;
  top: -24vmax;
  right: -18vmax;
  background: rgba(245, 122, 153, 0.12);
}

body::after {
  width: 34vmax;
  height: 34vmax;
  bottom: -20vmax;
  left: -16vmax;
  background: rgba(112, 199, 156, 0.13);
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-160%);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  outline: 3px solid rgba(245, 122, 153, 0.45);
  outline-offset: 3px;
}

.wrap {
  width: min(880px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(82, 61, 71, 0.07);
  background: rgba(255, 248, 242, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.back-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-round);
  font-weight: 800;
}

.brand { gap: 10px; font-size: 1.35rem; }

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(245, 122, 153, 0.28);
}

.back-link {
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.back-link:hover { color: var(--rose-deep); transform: translateX(-2px); }

.legal-main { padding: 64px 0 80px; }

.legal-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--rose-deep);
  background: var(--cream-2);
  font-family: var(--font-round);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.1px;
}

h1,
h2 { font-family: var(--font-round); }

h1 {
  margin: 14px 0 4px;
  font-size: clamp(2.25rem, 7vw, 3.55rem);
  line-height: 1.15;
  letter-spacing: 0.2px;
}

.updated-at {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-icon {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 34px;
  color: var(--white);
  background: linear-gradient(145deg, var(--rose), #fb9b7f);
  box-shadow: 0 18px 40px rgba(245, 122, 153, 0.3);
  font-size: 2.9rem;
  transform: rotate(3deg);
}

.status {
  margin-bottom: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 18px;
  font-size: 0.9rem;
  font-weight: 600;
}

.status[hidden] { display: none; }
.status.loading { color: var(--ink-soft); background: var(--white); box-shadow: var(--shadow-sm); }
.status.warning { color: #8a5a16; background: #fff2d4; }
.status.error { color: #9f334d; background: #ffe4ea; }

.spinner {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border: 2px solid rgba(245, 122, 153, 0.25);
  border-top-color: var(--rose-deep);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.retry-button {
  margin-left: auto;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--rose-deep);
  font: 700 0.84rem var(--font-round);
  cursor: pointer;
}

.sections {
  display: grid;
  gap: 16px;
}

.legal-section {
  padding: 24px 26px;
  border: 1px solid rgba(82, 61, 71, 0.06);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.legal-section h2 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  line-height: 1.4;
}

.legal-section p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 30px 0 38px;
  border-top: 1px solid rgba(82, 61, 71, 0.07);
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--rose-deep); }

@media (max-width: 620px) {
  .wrap { width: min(100% - 28px, 880px); }
  .legal-main { padding: 44px 0 58px; }
  .legal-hero { grid-template-columns: 1fr; gap: 20px; }
  .hero-icon { width: 82px; height: 82px; border-radius: 25px; font-size: 2.1rem; order: -1; }
  .legal-section { padding: 20px; border-radius: 22px; }
  .back-link span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
