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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1a1a2e;
  background: #f7f8fa;
  padding: 40px 20px 64px;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 48px 52px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e4e7ec;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: #0f1923;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-icon svg { display: block; }

.brand-name {
  font-size: 18px;
  font-weight: 600;
  color: #0f1923;
  letter-spacing: -0.3px;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  color: #0f1923;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.meta {
  font-size: 14px;
  color: #6b7280;
}

h2 {
  font-size: 18px;
  font-weight: 600;
  color: #0f1923;
  margin: 0 0 16px;
  padding-top: 28px;
  letter-spacing: -0.2px;
  line-height: 1.35;
}

main section:first-of-type h2 {
  padding-top: 0;
}

main section {
  margin-bottom: 8px;
}

main section + section {
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid #eef0f4;
}

p {
  margin: 0 0 16px;
  color: #374151;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0 0 16px 20px;
  color: #374151;
}

li { margin-bottom: 8px; }
li:last-child { margin-bottom: 0; }

.permission-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.permission-list li {
  padding: 16px 18px;
  background: #f7f8fa;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  margin-bottom: 12px;
}

.permission-list li:last-child { margin-bottom: 0; }

.permission-name {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #0f1923;
  margin-bottom: 8px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.permission-desc {
  display: block;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

a {
  color: #007a55;
  text-decoration: none;
}

a:hover { text-decoration: underline; }

footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #e4e7ec;
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 640px) {
  body { padding: 24px 16px 48px; }
  .page { padding: 32px 24px; }
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
}

header .meta {
  margin-bottom: 0;
}

.translation-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.footer-links {
  margin-top: 10px;
  font-size: 13px;
  color: #9ca3af;
}

/* Let the long email address wrap on phones (CJK closing brackets can't start a line). */
a[href^="mailto:"] {
  overflow-wrap: anywhere;
}
