:root {
  --primary: #111418;
  --brand-blue: #3db5e6;
  --brand-green: #0bab31;
  --neutral: #f5fbfd;
  --surface: #ffffff;
  --surface-soft: #eef6f8;
  --text: #222222;
  --muted: #4f5b60;
  --border: #d9e5e8;
  --warning: #ffdd77;
  --shadow: 0 18px 60px rgba(17, 20, 24, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--neutral);
  color: var(--text);
  font-family: "Yu Gothic UI", "Meiryo", "Segoe UI", sans-serif;
  font-size: clamp(18px, 0.95vw, 21px);
  line-height: 1.72;
  letter-spacing: 0;
}

a {
  color: inherit;
}

code {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.92em;
  background: #f4f6f7;
  border: 1px solid #ccd6da;
  border-radius: var(--radius-sm);
  padding: 0.08rem 0.2rem;
}

.notranslate {
  color: #075fc7;
  font-weight: 800;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 100;
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 12px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 12px clamp(16px, 4vw, 44px);
  background: rgba(247, 250, 249, 0.94);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}

.brand p,
.brand h1 {
  margin: 0;
}

.eyebrow {
  color: var(--brand-green);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand h1 {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.2;
}

.language-switcher {
  position: relative;
}

.language-switcher summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 8px 12px;
  font-weight: 700;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 4px;
  min-width: min(340px, 90vw);
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.language-menu a {
  text-decoration: none;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
}

.language-menu a:hover,
.language-menu .is-current {
  background: var(--surface-soft);
  color: #075fc7;
  font-weight: 800;
}

.legal-shell {
  max-width: 1840px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) clamp(18px, 4vw, 64px) 64px;
}

.legal-hero {
  padding: clamp(28px, 6vw, 54px) 0 clamp(20px, 4vw, 34px);
  border-bottom: 1px solid var(--border);
}

.legal-hero h2 {
  max-width: 1180px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
}

.legal-hero p {
  max-width: 1120px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.35vw, 1.28rem);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
}

.legal-document {
  padding-top: 22px;
}

.legal-section {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.25;
}

.legal-section p {
  margin: 0 0 12px;
}

.legal-section ul {
  margin: 12px 0 0;
  padding-left: 1.3rem;
}

.legal-section li {
  margin: 0 0 8px;
}

.legal-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.legal-links a {
  overflow-wrap: anywhere;
}

.site-footer {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 0;
  margin: 0 0 12px;
  list-style: none;
}

.footer-links a {
  font-weight: 700;
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-menu {
    left: 0;
    right: auto;
    grid-template-columns: 1fr;
  }

  .legal-hero h2 {
    font-size: clamp(1.85rem, 11vw, 3rem);
  }
}
