:root {
  color-scheme: light;
  --bg: #fff8f4;
  --surface: #ffffff;
  --ink: #231b1f;
  --muted: #6f6268;
  --line: #ecd9d2;
  --rose: #d64d68;
  --mint: #339a83;
  --sky: #4d86c5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 205, 166, 0.36), transparent 28rem),
    linear-gradient(180deg, #fffaf6 0%, var(--bg) 52%, #f7fbff 100%);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--rose);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-header {
  background: rgba(255, 250, 246, 0.78);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 0;
}

.nav {
  width: min(520px, calc(100% - 32px));
  min-height: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(236, 217, 210, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 44px rgba(107, 75, 65, 0.10);
}

.nav a {
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 18px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.nav a:hover {
  color: var(--rose);
  background: rgba(214, 77, 104, 0.08);
}

.nav a.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), #b9498a);
  box-shadow: 0 10px 24px rgba(214, 77, 104, 0.22);
}

.page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 64px;
}

.content {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(236, 217, 210, 0.86);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(107, 75, 65, 0.10);
  padding: clamp(24px, 5vw, 52px);
}

.content > :first-child {
  margin-top: 0;
}

.content > :last-child {
  margin-bottom: 0;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 8px;
}

h2 {
  font-size: 1.34rem;
  margin: 2.1rem 0 0.65rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.45rem 0 0.35rem;
}

p,
ul,
ol,
table {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul,
ol {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 0.28rem;
}

strong {
  font-weight: 750;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow-wrap: anywhere;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.72rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #fff3ee;
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
}

.policy-meta {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 1.6rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.link-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
}

.link-card strong {
  display: block;
  color: var(--rose);
  margin-bottom: 6px;
}

.link-card span {
  color: var(--muted);
}

.site-footer {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 36px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 640px) {
  .nav {
    width: min(420px, calc(100% - 24px));
    gap: 4px;
  }

  .nav a {
    flex: 1;
    padding: 9px 8px;
    text-align: center;
  }

  .page {
    padding-top: 26px;
  }
}
