/* ---------- FIXED: Center .card safely ---------- */

/* Remove any invalid properties you added earlier:
   - delete `margin: 0 auto;` from :root
   - delete the justify/align properties on body (or revert body to what it was)
*/

/* Ensure the wrapper (.wrap) is centered and constrains width */
.wrap {
  width: 1200px;
  ;
  max-width: var(--max-width);
  /* keep your existing max width variable */
  margin: 0 auto;
  /* horizontal center */
  box-sizing: border-box;
  padding-left: 16px;
  /* optional: keep some side padding on small screens */
  padding-right: 16px;
}

/* Make the card itself respect the wrapper and be centered */
.card {
  width: 100%;
  max-width: calc(var(--max-width) - 0px);
  /* ensures card never exceeds wrapper */
  margin: 0 auto;
  /* horizontal center within the wrap */
  background: var(--card);
  padding: 28px;
  box-sizing: border-box;
}


header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

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

.brand h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.2px;
}

.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 13px
}

.card {
  margin: 0 auto !important;
  background: var(--card);
  padding: 28px;
}

.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.last-updated {
  color: var(--muted);
  font-size: 13px;
}

/* Left content */
.content {
  padding-right: 10px;
}

.section {
  margin-bottom: 18px;
}

.section h2 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 500;
  color: #061827;
}

.section p,
.section li {
  color: #000000;
  font-size: 16px;
  margin: 6px 0 10px 0;
}

.section ul {
  margin: 8px 0 0 20px;
  padding: 0;
  color: #213449
}

.note {
  border-left: 4px solid var(--accent);
  padding: 12px 14px;
  border-radius: 8px;
  color: #0b6f6c;
  font-size: 14px;
  margin-top: 10px;
}

/* Right column (sidebar) */
.sidebar {
  background: linear-gradient(180deg, #fbfeff, #ffffff);
  border-radius: 10px;
  padding: 18px;
  border: 1px solid var(--border);
  height: fit-content;
}

.sidebar h3 {
  margin: 0 0 8px 0;
  font-size: 16px
}

.contact,
.quick-links {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact li,
.quick-links li {
  margin-bottom: 8px
}

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 6px 18px rgba(14, 165, 163, 0.12);
}

footer.pagefoot {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 1200px;
  margin: auto;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.12);
  border: 1px solid var(--border);
}

.cookie-msg {
  flex: 1;
  color: #253244;
  font-size: 14px
}

.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center
}

.cookie-actions .link {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px
}

.cookie-actions .accept {
  color: #000000;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600
}

/* Responsive */
@media (max-width:980px) {
  main.article {
    grid-template-columns: 1fr
  }

  .sidebar {
    order: 2
  }
}

@media (max-width:520px) {
  body {
    padding: 20px 12px
  }

  .logo {
    width: 52px;
    height: 52px;
    font-size: 16px
  }

  .card {
    padding: 18px
  }

  .meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px
  }

  .cookie-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px
  }
}