/* Static legal pages (EULA / Privacy / Terms) — self-contained, no JS dependency */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1a1a1a;
  background: #fafafa;
  -webkit-font-smoothing: antialiased;
}

a { color: #dc2626; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  background: #0a0a0a;
  color: #fff;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar .brand { font-weight: 700; font-size: 18px; letter-spacing: 0.5px; }
.topbar .brand a { color: #fff; }
.topbar .nav a { color: #fff; opacity: 0.85; margin-left: 18px; font-size: 14px; }
.topbar .nav a:hover { opacity: 1; }

.lang-switch {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
}
.lang-switch a { color: #fff; padding: 4px 8px; border-radius: 4px; opacity: 0.7; }
.lang-switch a.active { background: #dc2626; opacity: 1; }
.lang-switch a:hover { opacity: 1; text-decoration: none; }

.hero {
  background: linear-gradient(180deg, #f5e6e0 0%, #fafafa 100%);
  padding: 60px 20px 40px;
  text-align: center;
}
.hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #1a1a1a;
}
.hero .accent { color: #dc2626; }
.hero .sub { font-size: 17px; color: #555; max-width: 720px; margin: 0 auto 18px; }
.hero .meta {
  font-size: 14px;
  color: #777;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.notice {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 28px;
}
.notice .title { font-weight: 700; margin-bottom: 6px; color: #92400e; }
.notice p { font-size: 14px; color: #57534e; }

section.block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px 26px;
  margin-bottom: 18px;
}
section.block.danger { border-color: #fca5a5; }
section.block.success { border-color: #86efac; }
section.block.warn { border-color: #fcd34d; }

h2 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 10px;
}
h2 .num {
  display: inline-flex;
  width: 32px; height: 32px;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 8px;
  font-size: 14px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 18px 0 10px;
  color: #1a1a1a;
}

p { margin-bottom: 10px; color: #4b5563; }
strong { color: #1a1a1a; }

ul, ol { margin: 8px 0 12px 24px; }
ul li, ol li { margin-bottom: 4px; color: #4b5563; }

.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: #fef2f2;
  color: #dc2626;
  margin-right: 6px;
}
.pill.green { background: #dcfce7; color: #15803d; }
.pill.amber { background: #fef3c7; color: #b45309; }

.contact-card {
  background: #fef2f2;
  border-radius: 10px;
  padding: 20px;
  margin-top: 12px;
}
.contact-card p { margin-bottom: 8px; font-size: 15px; }
.contact-card strong { font-size: 16px; }

.acknowledge {
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 28px;
}
.acknowledge .title { color: #15803d; font-weight: 700; margin-bottom: 6px; }

.copyright {
  text-align: center;
  font-size: 13px;
  color: #777;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

footer.site {
  background: #0a0a0a;
  color: #fff;
  padding: 32px 20px;
  margin-top: 40px;
}
footer.site .inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
footer.site a { color: #fff; opacity: 0.8; font-size: 14px; }
footer.site a:hover { opacity: 1; }
footer.site .footer-block h4 { margin-bottom: 10px; font-size: 14px; opacity: 0.7; }
footer.site .footer-block p { color: #fff; opacity: 0.7; font-size: 14px; margin-bottom: 4px; }
footer.site .copy { width: 100%; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; opacity: 0.5; font-size: 13px; }

.toc {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px 26px;
  margin-bottom: 24px;
}
.toc h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.8px; color: #777; margin: 0 0 12px; }
.toc ol { columns: 2; column-gap: 28px; margin: 0; padding-left: 20px; }
.toc ol li { font-size: 14px; margin-bottom: 6px; break-inside: avoid; }
.toc a { color: #4b5563; }
.toc a:hover { color: #dc2626; }

@media (max-width: 640px) {
  .hero h1 { font-size: 28px; }
  .hero .sub { font-size: 15px; }
  main { padding: 24px 16px 60px; }
  section.block { padding: 20px 18px; }
  h2 { font-size: 19px; }
  .toc ol { columns: 1; }
}

table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
table th, table td { padding: 10px 12px; border: 1px solid #e5e7eb; text-align: left; }
table th { background: #f9fafb; font-weight: 600; }
