:root {
  /* Brand */
  --primary: #16a34a;
  --primary-dark: #0f8a3f;
  --accent: #fbbf24;

  /* Neutrals */
  --bg: #f5f7f1;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e5e7eb;
  --shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

/* Layout */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  padding: 32px 0 34px;
}

.header-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 12px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.lang-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: #e2e8f0;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.lang-option:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.lang-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-option.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 200px;
  max-width: 240px;
  height: auto;
  border-radius: 14px;
  background: #ffffff;
  padding: 10px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  object-fit: contain;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

h1 {
  margin: 10px 0 8px;
  font-size: 30px;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  max-width: 720px;
  font-size: 16px;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 14px;
}

main {
  padding: 28px 0 60px;
}

.legal-nav {
  margin-top: -26px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--text);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.legal-nav a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}

.terms-section h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 24px;
}

h3 {
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 18px;
}

p {
  margin: 10px 0 14px;
}

ul,
ol {
  padding-left: 18px;
  margin: 10px 0 12px;
}

li + li {
  margin-top: 8px;
}

.meta-text {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

.notice {
  background: #fefce8;
  border: 1px solid #fef08a;
  color: #92400e;
  padding: 12px 14px;
  border-radius: 12px;
  margin: 12px 0 18px;
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  border: 1px solid #fef08a;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-links a {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
}

footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 18px 0 26px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(16, 163, 74, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .header-top {
    justify-content: center;
    margin-bottom: 16px;
  }

  .header-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  h1 {
    font-size: 26px;
  }

  .brand-mark {
    width: 170px;
    max-width: 70%;
  }

  .legal-nav {
    margin-top: 14px;
  }

  .card {
    padding: 20px;
    margin: 16px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (min-width: 960px) {
  .container {
    max-width: 920px;
  }

  main {
    padding-top: 48px;
  }
}
