:root {
  --primary-color: #1A73E8;
  --primary-hover: #1557b0;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --tag-bg: #e0f2fe;
  --tag-text: #0369a1;
  --max-width: 800px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0b0f19;
    --card-bg: #131b2e;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --tag-bg: #172554;
    --tag-text: #60a5fa;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* Header & Brand */
header {
  text-align: center;
  margin-bottom: 40px;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #1A73E8, #00C2FF);
  border-radius: 16px;
  color: #ffffff;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px -5px rgba(26, 115, 232, 0.4);
}

h1.app-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

p.app-subtitle {
  font-size: 15px;
  color: var(--text-muted);
}

/* Navigation Tabs */
.nav-pills {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 36px;
}

.nav-link {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.nav-link:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.nav-link.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

/* Main Content Card */
.legal-card {
  background-color: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 40px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
  .legal-card {
    padding: 24px;
    border-radius: 16px;
  }
}

.doc-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.doc-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.doc-date {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Typography in Legal text */
section {
  margin-bottom: 32px;
}

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

h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

ul {
  list-style-type: none;
  margin-bottom: 16px;
}

li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-muted);
}

li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--primary-color);
  font-weight: bold;
}

.highlight-box {
  background-color: var(--tag-bg);
  border-left: 4px solid var(--primary-color);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
}

.highlight-box p {
  color: var(--tag-text);
  margin: 0;
  font-weight: 500;
  font-size: 14.5px;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 50px;
  font-size: 13px;
  color: var(--text-muted);
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
