/* ===============================
   Base
================================ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: #0f172a;
  line-height: 1.65;
}

/* ===============================
   Header
================================ */
.header {
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* ===============================
   Layout
================================ */
.wrapper {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}

/* ===============================
   Sidebar
================================ */
.sidebar {
  padding: 32px 24px;
  border-right: 1px solid #e5e7eb;
  background: #fafafa;
}

.sidebar a {
  display: block;
  padding: 10px 0;
  font-size: 14.5px;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
}

.sidebar a:hover {
  color: #2563eb;
}

/* Active sidebar link */
.sidebar a.active {
  color: #0f172a;
  font-weight: 600;
  position: relative;
}

.sidebar a.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: #2563eb;
  border-radius: 2px;
}

/* ===============================
   Content
================================ */
.content {
  padding: 48px 64px;
  max-width: 900px;
}

.content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ===============================
   Policy Sections
================================ */
.policy-section {
  display: none;
}

.policy-section.active {
  display: block;
}

.policy-section p,
.policy-section li {
  font-size: 15px;
  color: #334155;
  margin-bottom: 16px;
}

.policy-section h2 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #0f172a;
}

.policy-section h3 {
  font-size: 16px;
  margin-top: 24px;
  margin-bottom: 8px;
  color: #0f172a;
}

.policy-section ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.policy-section code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* ===============================
   Footer
================================ */
.footer {
  border-top: 1px solid #e5e7eb;
  background: #000000;
  padding: 24px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  color: #fbfdff;
}

.footer-links a {
  margin-right: 16px;
  text-decoration: none;
  color: #f1f1f1;
}

.footer-links a:hover {
  color: #f6f6f6;
}

.footer a {
  color: #f4f4f4;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ===============================
   Responsive
================================ */
@media (max-width: 900px) {
  .wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .sidebar a {
    white-space: nowrap;
  }

  .content {
    padding: 32px 24px;
  }

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