* {
  box-sizing: border-box;
}

:root {
  --bg-1: #0b1220;
  --bg-2: #121d33;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-hover: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.24);
  --text: #f5f7fb;
  --muted: #c4d0e3;
  --subtle: #93a4bf;
  --accent: #ffffff;
  --button-text: #13203a;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(61, 96, 177, 0.18), transparent 30%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

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

.container {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.hero {
  padding: 18px 0 10px;
  margin-bottom: 24px;
}

.tag {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 22px);
  line-height: 1.8;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.back-link:hover {
  color: var(--text);
}

.section {
  margin-top: 36px;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--subtle);
  font-size: 15px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 220px;
  padding: 24px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  background: var(--panel-hover);
  border-color: var(--border-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.card-label {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.25;
  color: var(--text);
}

.description {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  flex-grow: 1;
}

.action {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--button-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.14);
}

.action::after {
  content: "→";
  font-size: 16px;
}

.site-footer {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--subtle);
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--text);
}

.policy-panel {
  padding: 28px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.policy-updated {
  margin: 0 0 24px;
  color: var(--subtle);
  font-size: 14px;
}

.policy-section {
  margin-top: 28px;
}

.policy-section:first-of-type {
  margin-top: 0;
}

.policy-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.35;
}

.policy-section p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.policy-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--button-text);
  font-size: 15px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1040px);
    padding-top: 24px;
    padding-bottom: 48px;
  }

  h1 {
    margin-top: 16px;
  }

  .section {
    margin-top: 28px;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .card {
    min-height: auto;
    padding: 20px;
  }

  .card h3 {
    font-size: 24px;
  }

  .description {
    font-size: 16px;
  }

  .policy-panel {
    padding: 20px;
  }

  .policy-section h2 {
    font-size: 21px;
  }
}
