:root {
  --green: #4caf50;
  --dark: #333;
  --text-muted: #4a4a4a;
  --background: #f4f4f9;
  --card: #ffffff;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.site-header {
  background-color: var(--green);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.site-logo {
  height: 40px;
  width: auto;
}

.site-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #fff;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  background-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  text-decoration: none;
}

.main-nav a.active {
  background-color: rgba(0, 0, 0, 0.18);
}

main {
  flex: 1;
  width: 100%;
  padding: 40px 20px 60px;
}

.content-card {
  background-color: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 40px;
  margin: 0 auto 40px;
  max-width: 1000px;
}

.hero {
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3rem);
  color: var(--green);
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--text-muted);
}

.cta-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cta-button.primary {
  background-color: var(--green);
  color: #fff;
  box-shadow: 0 10px 25px rgba(76, 175, 80, 0.35);
}

.cta-button.secondary {
  border: 2px solid var(--green);
  color: var(--green);
  background-color: transparent;
}

.cta-button:hover,
.cta-button:focus {
  text-decoration: none;
  transform: translateY(-2px);
}

.cta-button.primary:hover,
.cta-button.primary:focus {
  box-shadow: 0 14px 30px rgba(76, 175, 80, 0.4);
}

.cta-button.secondary:hover,
.cta-button.secondary:focus {
  background-color: rgba(76, 175, 80, 0.12);
}

.features h2,
.how-to h2,
.callout h2,
.content-card h2 {
  color: var(--green);
  margin-top: 0;
}

.feature-grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.feature-card {
  background: rgba(76, 175, 80, 0.08);
  border-radius: 14px;
  padding: 24px;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(76, 175, 80, 0.15);
}

.feature-card h3 {
  margin-top: 0;
  color: var(--green);
}

.feature-card p {
  margin-bottom: 0;
  line-height: 1.6;
}

.how-to ol {
  padding-left: 20px;
  line-height: 1.7;
}

.how-to ol li + li {
  margin-top: 10px;
}

.callout {
  text-align: center;
}

.callout p {
  line-height: 1.7;
  margin-bottom: 12px;
}

.terms-intro {
  text-align: center;
  line-height: 1.7;
}

.last-updated-date {
  font-weight: 600;
  color: var(--green);
}

.terms-section {
  line-height: 1.7;
}

.terms-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.terms-section h3 {
  margin-top: 24px;
  color: var(--green);
}

.section-number {
  background: var(--green);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.terms-list {
  padding-left: 20px;
  margin: 16px 0;
}

.terms-list li + li {
  margin-top: 10px;
}

.highlight-card {
  margin-top: 24px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 196, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 0, 0.35);
}

.highlight-card h3 {
  margin-top: 0;
  color: #d48806;
}

.contact-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.12), rgba(0, 206, 201, 0.18));
}

.contact-card h2 {
  color: var(--green);
}

.contact-card a {
  font-weight: 600;
}

.page-title {
  text-align: center;
  margin: 60px auto 30px;
  max-width: 720px;
}

.page-title h1 {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  color: var(--green);
  margin-bottom: 8px;
}

.page-subtitle {
  color: var(--text-muted);
  margin: 0;
  font-size: 1rem;
}

.content-card ul {
  line-height: 1.7;
  padding-left: 20px;
}

.content-card ul li + li {
  margin-top: 8px;
}

footer {
  text-align: center;
  padding: 18px 12px;
  background-color: var(--green);
  color: #fff;
  margin-top: auto;
}

footer p {
  margin: 0;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #fff;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus {
  background-color: rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.footer-nav a.active {
  background-color: rgba(0, 0, 0, 0.28);
}

.home-page main {
  max-width: 1100px;
  margin: 0 auto;
}

.privacy-page main {
  max-width: 980px;
  margin: 0 auto;
}

.terms-page main {
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .content-card {
    padding: 28px 24px;
  }

  .site-header {
    padding: 16px;
  }

  .site-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 520px) {
  .main-nav {
    width: 100%;
    justify-content: center;
  }

  .brand-link {
    width: 100%;
    justify-content: center;
  }

  .cta-group {
    flex-direction: column;
  }
}
