:root {
  --background-color: #0a0a0a;
  --card-background: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.1);
  --text-color: #e0e0e0;
  --secondary-color: #cccccc;
  --primary-color: #fbbf24;
  --primary-color-strong: #f59e0b;
  --notice-color: #60a5fa;
  --warning-color: #ef4444;
  --warning-color-soft: #f87171;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body.terms-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(251, 191, 36, 0.08), transparent 34%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#site-header {
  width: 100%;
  min-height: 56px;
}

.terms-shell {
  padding: 96px 20px 48px;
}

.terms-container {
  width: min(960px, 100%);
  margin: 0 auto;
}

.terms-hero {
  text-align: center;
  margin-bottom: 52px;
}

.page-title {
  margin: 0 0 20px;
  color: var(--primary-color);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
}

.page-subtitle {
  margin: 0 auto 24px;
  max-width: 700px;
  color: #999999;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.02em;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
}

.content-section {
  margin-bottom: 50px;
  padding: 30px 32px;
  border: 1px solid var(--border-color);
  border-radius: 22px;
  background: var(--card-background);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.content-section h2 {
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(251, 191, 36, 0.3);
  color: #ffffff;
  font-size: 28px;
  font-weight: 600;
}

.content-section h3 {
  margin: 30px 0 15px;
  color: var(--primary-color);
  font-size: 22px;
  font-weight: 600;
}

.content-section h3:first-of-type {
  margin-top: 20px;
}

.content-section p,
.content-section li,
.date-info-box p,
.important-notice p,
.warning-box p,
.last-updated {
  color: var(--secondary-color);
  font-size: 16px;
  line-height: 1.8;
}

.content-section p,
.content-section li {
  margin: 0 0 16px;
}

.content-section strong,
.date-info-box strong,
.info-box strong,
.last-updated strong,
.legal-term {
  color: var(--primary-color);
  font-weight: 600;
}

.content-section ul {
  margin: 20px 0 20px 26px;
  padding: 0;
}

.content-section li {
  margin-bottom: 12px;
}

.content-section a,
.info-box a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.content-section a:hover,
.info-box a:hover {
  color: var(--primary-color-strong);
  border-bottom-color: var(--primary-color-strong);
}

.date-info-box,
.info-box {
  background: rgba(251, 191, 36, 0.1);
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
  margin-bottom: 40px;
  padding: 20px 24px;
}

.date-info-box p,
.info-box p {
  margin: 0;
}

.important-notice {
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid #3b82f6;
  border-radius: 4px;
  margin: 30px 0;
  padding: 20px 24px;
}

.important-notice p {
  margin: 0;
  color: var(--text-color);
}

.important-notice strong {
  color: var(--notice-color);
  font-weight: 600;
}

.warning-box {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid var(--warning-color);
  border-radius: 4px;
  margin: 30px 0;
  padding: 20px 24px;
}

.warning-box p {
  margin: 0;
  color: var(--text-color);
}

.warning-box strong {
  color: var(--warning-color-soft);
  font-weight: 600;
}

.last-updated {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #666666;
  font-size: 14px;
  font-style: italic;
  text-align: center;
}

@media (max-width: 1023px) {
  .terms-container {
    width: min(760px, 100%);
  }
}

@media (max-width: 768px) {
  .terms-shell {
    padding: 80px 16px 40px;
  }

  .page-title {
    font-size: 32px;
  }

  .page-subtitle {
    font-size: 16px;
  }

  .content-section {
    margin-bottom: 40px;
    padding: 24px 20px;
  }

  .content-section h2 {
    font-size: 24px;
  }

  .content-section h3 {
    font-size: 20px;
    margin: 25px 0 12px;
  }

  .content-section ul {
    margin-left: 20px;
  }

  .date-info-box,
  .info-box,
  .important-notice,
  .warning-box {
    padding: 16px 18px;
  }

  .last-updated {
    margin-top: 40px;
    padding-top: 20px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  body.terms-page {
    font-size: 15px;
  }

  .page-title {
    font-size: 28px;
  }

  .page-subtitle {
    font-size: 15px;
  }

  .content-section h2 {
    font-size: 22px;
  }

  .content-section h3 {
    font-size: 19px;
  }

  .content-section p,
  .content-section li,
  .date-info-box p,
  .important-notice p,
  .warning-box p {
    font-size: 15px;
  }
}
