/* CommuGuard — site stylesheet */
:root {
  --bg: #0b1220;
  --bg-elev: #111a2e;
  --panel: #15203a;
  --border: #1f2d4d;
  --text: #e6edf7;
  --muted: #9aa7c2;
  --brand: #1fb47a;
  --brand-2: #38d39f;
  --danger: #e0556a;
  --warn: #f0b86e;
  --link: #7cc4ff;
  --max: 880px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site-header {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  font-size: 1.1rem;
}

.brand .logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #06231a;
  font-weight: 900;
  font-size: 0.95rem;
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.hero {
  text-align: center;
  padding: 48px 0 24px;
}

.hero h1 {
  font-size: 2.2rem;
  margin: 0 0 12px;
  line-height: 1.2;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card a {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.92rem;
}

article.legal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
}

article.legal h1 {
  margin-top: 0;
  font-size: 1.8rem;
}

article.legal h2 {
  margin-top: 32px;
  font-size: 1.25rem;
  color: var(--brand-2);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

article.legal h3 {
  margin-top: 22px;
  font-size: 1.05rem;
}

article.legal ul, article.legal ol {
  padding-left: 22px;
}

article.legal li {
  margin: 6px 0;
}

.muted, .updated {
  color: var(--muted);
  font-size: 0.9rem;
}

.notice {
  border-left: 3px solid var(--brand);
  background: rgba(31, 180, 122, 0.08);
  padding: 12px 16px;
  border-radius: 6px;
  margin: 16px 0;
}

.notice.warn {
  border-left-color: var(--warn);
  background: rgba(240, 184, 110, 0.08);
}

.notice.danger {
  border-left-color: var(--danger);
  background: rgba(224, 85, 106, 0.08);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
}

table.data th, table.data td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.data th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 600;
}

form.contact {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

form.contact label {
  display: block;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 4px;
}

form.contact input,
form.contact textarea,
form.contact select {
  width: 100%;
  padding: 11px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
}

form.contact textarea {
  min-height: 140px;
  resize: vertical;
}

button, .btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #06231a;
  font-weight: 700;
  padding: 11px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

button:hover, .btn:hover { filter: brightness(1.05); text-decoration: none; }

.btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

footer.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 24px 20px;
  margin-top: 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

footer .foot-wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.6rem; }
  article.legal { padding: 20px; }
}
