:root {
  --ink: #1f2928;
  --muted: #687270;
  --brand: #354541;
  --brand-soft: #eef2ef;
  --paper: #ffffff;
  --page: #f4f5f3;
  --line: #dde2de;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Noto Sans JP", sans-serif;
  text-rendering: optimizeLegibility;
}

button, a { font: inherit; }

.privacy-shell { min-height: 100vh; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - 1080px) / 2));
  border-bottom: 1px solid rgba(221, 226, 222, .92);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: var(--brand);
  font-family: Georgia, serif;
  font-size: 22px;
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 12px; }

.language-switcher {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--brand-soft);
}

.language-switcher button,
.language-switcher a {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.language-switcher button.is-active,
.language-switcher a.is-active {
  color: var(--ink);
  background: white;
  box-shadow: 0 2px 10px rgba(31, 41, 40, .08);
}

.privacy-document {
  width: min(960px, calc(100% - 32px));
  margin: 42px auto 80px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 20px 60px rgba(31, 41, 40, .07);
}

.document-hero {
  padding: clamp(36px, 7vw, 74px) clamp(24px, 8vw, 88px) clamp(34px, 6vw, 62px);
  background: linear-gradient(145deg, #f7f8f6 0%, #edf2ee 100%);
}

.eyebrow {
  margin: 0 0 18px;
  color: #71807b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Noto Serif JP", serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.025em;
}

.effective-date {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.lead {
  max-width: 760px;
  margin: 30px 0 0;
  color: #46514e;
  font-size: 17px;
  line-height: 1.85;
}

.document-body { padding: 30px clamp(24px, 8vw, 88px) 48px; }

.document-body section {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.document-body section:last-child { border-bottom: 0; }

h2 {
  margin: 0 0 18px;
  color: var(--brand);
  font-family: Georgia, "Noto Serif SC", "Noto Serif JP", serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.4;
}

.document-body p, .document-body li {
  color: #3f4a47;
  font-size: 16px;
  line-height: 1.85;
}

.document-body p { margin: 0 0 14px; }
.document-body p:last-child { margin-bottom: 0; }

.document-body ul { margin: 0; padding-left: 1.3em; }
.document-body li { padding-left: .35em; margin-bottom: 13px; }
.document-body li:last-child { margin-bottom: 0; }

.document-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(24px, 8vw, 88px);
  color: #54605d;
  background: var(--brand-soft);
}

.document-footer p { margin: 0; font-size: 13px; line-height: 1.6; }
.document-footer a { color: var(--brand); font-weight: 700; }

@media (max-width: 700px) {
  .site-header { align-items: flex-start; flex-direction: column; padding: 14px 18px; }
  .language-switcher { width: 100%; }
  .language-switcher button, .language-switcher a { flex: 1; padding: 0 8px; }
  .privacy-document { width: calc(100% - 20px); margin-top: 18px; border-radius: 20px; }
  .document-footer { align-items: flex-start; flex-direction: column; }
}

@media print {
  .site-header { display: none; }
  body { background: white; }
  .privacy-document { width: 100%; margin: 0; border: 0; box-shadow: none; }
}
