*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-light: #f5f5f7;
  --gray-mid: #d2d2d7;
  --gray-text: #6e6e73;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--gray-mid);
}

.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--gray-text);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--black);
}

/* ── Main layout ── */
main {
  max-width: 740px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 100px 24px 80px;
  background: var(--gray-light);
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero p {
  font-size: 19px;
  color: var(--gray-text);
  max-width: 540px;
  margin: 0 auto;
}

/* ── App cards ── */
.apps-grid {
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: var(--gray-mid);
}

.app-card {
  background: var(--white);
  padding: 48px 40px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  display: block;
}

.app-card:hover {
  background: var(--gray-light);
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-card h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.app-card p {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.5;
}

.app-card .arrow {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 20px;
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
  transition: opacity 0.2s;
}

.app-card .arrow::after {
  content: " →";
}

.app-card:hover .arrow {
  opacity: 0.75;
}

/* ── Policy page ── */
.policy-header {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-mid);
  margin-bottom: 48px;
}

.policy-header .breadcrumb {
  font-size: 13px;
  color: var(--gray-text);
  margin-bottom: 20px;
}

.policy-header .breadcrumb a {
  color: var(--gray-text);
  text-decoration: none;
}

.policy-header .breadcrumb a:hover {
  color: var(--black);
}

.policy-header h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.policy-header .updated {
  font-size: 14px;
  color: var(--gray-text);
}

/* ── Language toggle ── */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 48px;
}

.lang-toggle button {
  padding: 8px 20px;
  font-size: 14px;
  font-family: var(--font);
  font-weight: 500;
  border: none;
  background: var(--white);
  color: var(--gray-text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-toggle button.active {
  background: var(--black);
  color: var(--white);
}

/* ── Policy content ── */
.policy-content {
  display: none;
}

.policy-content.active {
  display: block;
}

.policy-content h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-top: 52px;
  margin-bottom: 16px;
}

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

.policy-content p {
  font-size: 16px;
  color: #1d1d1f;
  line-height: 1.75;
  margin-bottom: 16px;
}

.policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.policy-content th {
  text-align: left;
  padding: 12px 16px;
  background: var(--gray-light);
  font-weight: 600;
  border-bottom: 1px solid var(--gray-mid);
}

.policy-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-light);
  color: #1d1d1f;
}

.policy-content a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice {
  background: var(--gray-light);
  border-left: 3px solid var(--black);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 15px;
}

/* ── Home button ── */
.home-btn {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 100;
  padding: 8px 18px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 20px;
  transition: opacity 0.2s;
}

.home-btn:hover {
  opacity: 0.75;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--gray-mid);
  padding: 40px 24px;
  text-align: center;
}

footer p {
  font-size: 13px;
  color: var(--gray-text);
}

footer a {
  color: var(--gray-text);
  text-decoration: none;
}

footer a:hover {
  color: var(--black);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .app-card {
    padding: 36px 28px;
  }

  main {
    padding: 60px 20px 100px;
  }
}
