:root {
  --bg: #0b1a16;
  --surface: #10241f;
  --teal-dark: #081713;
  --teal: #4fae95;
  --teal-light: #16332c;
  --text-body: #e5e7eb;
  --text-muted: #9ca3af;
  --border: #24413a;
  --max-width: 780px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--teal); }

/* ---- Hero (home page only) ---- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 50%, var(--teal-dark) 100%);
  padding: 72px 20px 96px;
  text-align: center;
  color: #ffffff;
}

.login-link {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.login-link:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero img {
  width: 220px;
  height: auto;
  margin-bottom: 24px;
}

.hero .tagline {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a9c9c1;
  margin: 0 0 12px;
}

.hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto;
  max-width: 620px;
  line-height: 1.35;
  text-wrap: balance;
}

/* ---- Body content card ---- */
.content-wrap {
  position: relative;
  max-width: var(--max-width);
  margin: -48px auto 0;
  padding: 0 20px 64px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 48px 40px;
}

.card p { margin: 0 0 18px; color: var(--text-body); font-size: 15px; }
.card p:last-child { margin-bottom: 0; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.pillar {
  background: var(--teal-light);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: left;
}

.pillar h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--teal);
}

.pillar p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .hero h1 { font-size: 26px; }
  .pillars { grid-template-columns: 1fr; }
  .card { padding: 32px 24px; }
  .login-link { top: 16px; right: 16px; padding: 6px 12px; font-size: 13px; }
}

/* ---- Legal pages ---- */
.legal-header {
  border-bottom: 1px solid var(--border);
  padding: 28px 20px;
}

.legal-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-decoration: none;
  width: fit-content;
}

.legal-header img { height: 28px; width: auto; }
.legal-header .brand-name { font-weight: 700; color: var(--teal); font-size: 16px; }

.legal-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.legal-wrap h1 {
  color: #ffffff;
  font-size: 28px;
  margin-bottom: 4px;
}

.legal-wrap .updated {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 40px;
}

.legal-wrap h2 {
  color: var(--teal);
  font-size: 18px;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-wrap h3 {
  font-size: 15px;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text-body);
}

.legal-wrap p, .legal-wrap li { color: var(--text-body); font-size: 14.5px; }
.legal-wrap ul, .legal-wrap ol { padding-left: 22px; }
.legal-wrap li { margin-bottom: 6px; }

.placeholder {
  background: #2a2312;
  border: 1px dashed #b8860b;
  color: #f2c14e;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  text-align: center;
}

footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

footer nav {
  display: flex;
  gap: 20px;
}

footer a {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
}

footer a:hover { color: var(--teal); text-decoration: underline; }

footer .copyright {
  color: var(--text-muted);
  font-size: 12px;
  opacity: 0.8;
}
