:root {
  --bg: #0f172a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accentHover: #7dd3fc;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  text-align: center;
}

main {
  display: grid;
  gap: 16px;
  padding: 24px;
  max-width: 720px;
  margin-top: 70px;       /* space for fixed nav */
  margin-left: auto;      /* center main horizontally */
  margin-right: auto;
  padding-bottom: 80px;   /* space so footer doesn't overlap content */
}

h1 {
  font-size: clamp(2rem, 2.5vw + 1rem, 2.75rem);
  color: var(--accent);
  margin: 0 0 6px 0;
}

p {
  font-size: 1.075rem;
  color: var(--muted);
  margin: 0 0 12px 0;
}

a.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

a.button:hover {
  background: var(--accentHover);
}

footer {
  position: fixed;
  bottom: 14px;
  width: 100%;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

/* ===== Policy Pages ===== */

.policy {
  text-align: left;
  display: block;
  max-width: 850px;
  margin: 80px auto 120px auto;
  padding: 0 1.5rem;
  line-height: 1.7;
}

.policy h1,
.policy h2,
.policy h3 {
  color: var(--accent);
}

.policy h1 {
  text-align: center;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
  margin-bottom: 1rem;
}

.policy p,
.policy li {
  color: var(--text);
  margin-bottom: 1rem;
}

.policy ul {
  margin-left: 1.5rem;
}

.policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: #1e293b;
  color: var(--text);
  border: 1px solid #334155;
}

.policy th,
.policy td {
  border: 1px solid #334155;
  padding: 0.75rem;
  text-align: left;
}

.policy th {
  background: var(--accent);
  color: var(--bg);
}

.policy a {
  color: var(--accent);
}

.policy a:hover {
  color: var(--accentHover);
  text-decoration: underline;
}

.policy footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 3rem;
  border-top: 1px solid #334155;
  padding-top: 1rem;
}

/* ===== Services Section ===== */

.services {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #1e293b;
  text-align: left;
}

.services h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.services-intro {
  color: var(--muted);
  margin-bottom: 20px;
}

.service-box {
  margin-bottom: 24px;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #1e293b;
  border-radius: 10px;
}

.service-box h3 {
  margin: 0 0 8px 0;
  color: var(--text);
  font-size: 1.1rem;
}

.service-box p {
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 0.98rem;
}

.service-box ul {
  margin-left: 1.25rem;
}

.service-box ul li {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 6px;
}

/* ===== About Section ===== */

.about {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #1e293b;
  text-align: left;
}

.about h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.about p {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 12px;
}

.about-highlight-box {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #1e293b;
  background: rgba(15, 23, 42, 0.7);
}

.about-list {
  list-style: disc;
  margin-left: 1.5rem;
  margin-top: 8px;
}

.about-list li {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 6px;
}

/* ===== Contact Section ===== */

.contact {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #1e293b;
  text-align: left;
}

.contact h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.contact-intro,
.contact-note {
  color: var(--muted);
  margin-bottom: 12px;
}

/* Normal links in contact */
.contact a:not(.button) {
  color: var(--accent);
}

/* Ensure button in contact keeps proper contrast */
.contact .button {
  color: var(--bg);
}

/* ===== Top Navigation Bar ===== */

.topnav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.85); /* var(--bg) with slight opacity */
  backdrop-filter: blur(6px);
  padding: 12px 0;
  border-bottom: 1px solid #1e293b;
  display: flex;
  justify-content: center;
  gap: 24px;
  z-index: 999;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.topnav a:hover {
  color: var(--accent);
}

.nav-cta {
  color: var(--accent);
  font-weight: 600;
}