:root {
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: #171a1f;
  background: #ffffff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --green: #07983b;
  --green-dark: #057b30;
  --green-soft: #edf9f1;
  --text: #171a1f;
  --muted: #66707c;
  --border: #dfe3e8;
  --surface: #f7f8fa;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: #ffffff;
}

button,
a {
  font: inherit;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 9px 12px;
  border-radius: 5px;
  color: #ffffff;
  background: var(--green-dark);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.header-inner,
.hero-inner,
.policy-layout,
.site-footer > div {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand {
  min-width: 0;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-section {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
}

.language-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 5px;
}

.language-switch button {
  min-width: 72px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid var(--border);
  color: #4f5863;
  background: #ffffff;
  cursor: pointer;
  font-size: 12px;
}

.language-switch button:last-child {
  border-right: 0;
}

.language-switch button:hover {
  background: var(--surface);
}

.language-switch button[aria-pressed="true"] {
  color: var(--green-dark);
  background: var(--green-soft);
  font-weight: 700;
}

.policy-hero {
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  padding: 76px 0 58px 268px;
}

.section-label,
.contents > p {
  margin: 0;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

h1 {
  max-width: 720px;
  margin: 17px 0 10px;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: 0;
}

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

.hero-summary {
  max-width: 760px;
  margin: 24px 0 0;
  color: #3f4750;
  font-size: 18px;
  line-height: 1.65;
}

.privacy-principles {
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 34px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.privacy-principles > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 14px;
  color: #30363d;
  font-size: 13px;
}

.privacy-principles span {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.policy-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 88px;
}

.contents {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  min-width: 0;
}

.contents > p {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.contents nav {
  display: flex;
  flex-direction: column;
  padding-top: 10px;
}

.contents a {
  position: relative;
  padding: 7px 0 7px 14px;
  color: #5b6570;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.contents a::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 2px;
  background: transparent;
}

.contents a:hover,
.contents a.is-active {
  color: var(--green-dark);
}

.contents a.is-active::before {
  background: var(--green);
}

.policy-article {
  min-width: 0;
  border-top: 1px solid var(--border);
}

.policy-article section {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 20px;
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--border);
}

.section-number {
  padding-top: 3px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

h2 {
  margin: 0 0 15px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0;
}

.policy-article p,
.policy-article li {
  color: #414952;
  font-size: 15px;
  line-height: 1.75;
}

.policy-article p {
  margin: 0 0 14px;
}

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

.policy-article ul {
  margin: 7px 0 18px;
  padding-left: 21px;
}

.policy-article li + li {
  margin-top: 7px;
}

code {
  padding: 2px 5px;
  border: 1px solid #d8dde2;
  border-radius: 4px;
  color: #215d37;
  background: #f4f8f5;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.permission-list {
  margin: 20px 0;
  border-top: 1px solid var(--border);
}

.permission-list > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.permission-list code {
  align-self: start;
  justify-self: start;
}

.permission-list span {
  color: #4e5761;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer > div {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand strong {
  font-size: 13px;
}

.site-footer a {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero-inner {
    padding-left: 0;
  }

  .policy-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 32px;
  }

  .privacy-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 14px;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 64px;
  }

  .header-inner,
  .hero-inner,
  .policy-layout,
  .site-footer > div {
    width: min(100% - 32px, 1180px);
  }

  .brand-copy span,
  .header-section {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .language-switch button {
    min-width: 58px;
    padding: 0 7px;
  }

  .hero-inner {
    padding-top: 52px;
    padding-bottom: 42px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .policy-layout {
    display: block;
    padding-top: 0;
    padding-bottom: 60px;
  }

  .contents {
    position: static;
    margin-bottom: 12px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
  }

  .contents nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
  }

  .policy-article {
    border-top: 0;
  }

  .policy-article section {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 28px 0 32px;
  }

  .permission-list > div {
    grid-template-columns: 1fr;
    gap: 9px;
  }
}

@media (max-width: 430px) {
  .brand-copy strong {
    max-width: 142px;
    font-size: 13px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .privacy-principles {
    grid-template-columns: 1fr;
  }

  .site-footer > div {
    min-height: 120px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
