:root {
  --bg-color: #ffffff;
  --text-color: #111;
  --muted-color: #999;
  --border-color: #ddd;
  --gradient-start: #526396;
  --gradient-end: #566a9a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1a1a1a;
    --text-color: #e5e5e5;
    --muted-color: #888;
    --border-color: #444;
    --gradient-start: #a0b3e3;
    --gradient-end: #798cc7;
  }
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background: var(--bg-color);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

container {
  max-width: 600px;
  display: block;
  margin: auto;
  flex: 1;
  width: 100%;
}

section {
  font-family: system, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica Neue, Helvetica, Lucida Grande;
  line-height: 1.3;
  padding: 30px 15px;
  border-radius: 3px;
  font-size: 16px;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 60px);
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 50px;
  padding-bottom: 50px;
}

a {
  background: linear-gradient(to bottom, var(--gradient-start) 0%, var(--gradient-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1 {
  font-weight: 700;
  font-size: 34px;
  margin: 0 0 30px;
  text-align: center;
}

h1 a.header-link {
  background: linear-gradient(to bottom, var(--gradient-start) 0%, var(--gradient-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  display: inline-block;
}

h1 span {
  font-weight: 200;
  font-size: 28px;
}

h2 {
  font-size: 30px;
  margin-bottom: 15px;
  margin-top: 40px;
}

h2:first-child {
  margin-top: 0;
}

h3 {
  font-size: 18px;
  margin-top: 35px;
  margin-bottom: 12px;
  font-weight: 600;
}

h4 {
  font-size: 16px;
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: 600;
}

p {
  margin-bottom: 16px;
  line-height: 1.6;
}

ul {
  margin: 12px 0 20px 0;
  padding-left: 25px;
}

li {
  margin-bottom: 8px;
  line-height: 1.5;
}

strong {
  font-weight: 600;
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 30px;
  justify-content: center;
  /* margin-bottom: 40px; */
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}

/* Hero Section */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.hero-text {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.app-store-badge {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(to bottom, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: var(--bg-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: var(--bg-color);
}

.app-store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (prefers-color-scheme: dark) {
  .app-store-badge {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .app-store-badge:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
}

/* Sections */
.section {
  padding-top: 55px;
  margin-top: 55px;
  border-top: 1px solid var(--border-color);
}

.section:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

/* Legacy styles */
.texts {
  margin: 0 0 30px;
}

.faq {
  border-top: 1px solid var(--border-color);
  padding-top: 55px;
  margin-top: 55px;
}

.question-wrap {
  margin: 0 0 20px;
}

.question {
  margin: 0 0 7px;
  font-weight: bold;
  font-style: italic;
}

/* Page-specific styles */
.content-section {
  margin-top: 55px;
}

.privacy-content {
  line-height: 1.6;
}

.privacy-content p {
  margin-bottom: 20px;
}

footer {
  margin-top: auto;
  padding-top: 30px;
  padding-bottom: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--muted-color);
  font-size: 14px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.footer-links .separator {
  color: var(--muted-color);
}

