:root {
  --bg: #f7f1ea;
  --text: #1e1a17;
  --muted: #72675e;
  --line: rgba(43, 33, 24, 0.1);
  --surface: rgba(255, 250, 244, 0.68);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "SF Pro Display", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(223, 193, 163, 0.42), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.7), transparent 24%),
    var(--bg);
}

html[lang="en"] body {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

html[lang="en"] .brand,
html[lang="en"] .locale-button {
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

html[lang="en"] h1 {
  letter-spacing: -0.04em;
  line-height: 1.04;
}

html[lang="en"] .intro {
  max-width: 460px;
  font-size: 18px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(980px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  align-items: center;
}

.hero {
  width: 100%;
  max-width: 760px;
  padding: 28px 4px 28px 0;
}

.hero-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-topbar {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  width: 56px;
  height: 56px;
  margin: 0;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(67, 47, 30, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.brand {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.locale-switcher {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.locale-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.locale-button.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(67, 47, 30, 0.08);
}

h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 700;
}

h1 span {
  white-space: nowrap;
}

.intro {
  max-width: 420px;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
  white-space: nowrap;
}

.meta-links {
  margin: 18px 0 0;
}

.text-link {
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero::after {
  content: "";
  display: block;
  width: min(220px, 40vw);
  height: 1px;
  margin-top: 32px;
  background: linear-gradient(90deg, var(--line), transparent);
}

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

.policy-topbar {
  margin-bottom: 20px;
}

.policy-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 244, 0.82);
  box-shadow: 0 10px 30px rgba(67, 47, 30, 0.06);
}

.policy-title {
  margin: 0;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.policy-title-en {
  margin-top: 28px;
}

.policy-date {
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.policy-card h2 {
  margin: 28px 0 12px;
  font-size: 20px;
}

.policy-card p,
.policy-card li {
  color: var(--text);
  line-height: 1.75;
}

.policy-card ul {
  margin: 0;
  padding-left: 22px;
}

.policy-card hr {
  margin: 32px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  .container {
    min-height: auto;
    width: min(calc(100% - 28px), 980px);
    padding-top: 32px;
    align-items: flex-start;
  }

  .hero-head {
    margin-bottom: 22px;
  }

  .hero-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .logo {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  h1 {
    font-size: clamp(28px, 8.8vw, 44px);
  }

  .intro {
    font-size: 13px;
  }

  .text-link {
    font-size: 13px;
  }

  html[lang="en"] .intro {
    font-size: 14px;
  }

  .policy-card {
    padding: 22px 18px;
    border-radius: 20px;
  }
}
