/* Base styles */
:root {
  --bg: #0b1220;
  --surface: #0f172a;
  --text: #0f172a;
  --text-invert: #ffffff;
  --muted: #64748b;
  --primary: #0ea5e9;
  --primary-600: #0284c7;
  --ring: rgba(14, 165, 233, 0.4);
}

* { 
  box-sizing: border-box; 
}

html, body { 
  height: 100%; 
  margin: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

.container { 
  max-width: 1120px; 
  margin: 0 auto; 
  padding: 0 24px; 
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { 
  color: inherit; 
  text-decoration: none; 
}

img { 
  max-width: 100%; 
  height: auto; 
  display: block; 
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 32px;
}

.back-link {
  color: var(--primary);
  font-weight: 600;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--primary-600);
  text-decoration: underline;
}

.partner-mark {
  opacity: 0.8;
}

/* Main content */
.main-content {
  flex: 1;
  padding-bottom: 48px;
}

.terms-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
}

.terms-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 24px 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

.intro {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 32px 0;
  line-height: 1.7;
}

.sections {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--text);
}

section ul {
  list-style: disc;
  margin: 0;
  padding-left: 24px;
}

section li {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.7;
}

section li:last-child {
  margin-bottom: 0;
}

/* Responsive design */
@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
  
  .header {
    padding: 32px 0;
    margin-bottom: 48px;
  }
  
  .main-content {
    padding-bottom: 64px;
  }
  
  .terms-content {
    font-size: 18px;
  }
  
  .terms-content h1 {
    font-size: 3rem;
    margin-bottom: 32px;
  }
  
  .intro {
    font-size: 1.25rem;
    margin-bottom: 40px;
  }
  
  .sections {
    gap: 40px;
  }
  
  section h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
  }
}

@media (min-width: 1024px) {
  .terms-content {
    font-size: 20px;
  }
  
  .terms-content h1 {
    font-size: 3.5rem;
  }
  
  .intro {
    font-size: 1.375rem;
  }
  
  section h2 {
    font-size: 2rem;
  }
}
