* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
  color: #222;
}

.terms-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.4em;
}

h1[id] {
  scroll-margin-top: 80px; /* height of your header */
}

h2 {
  font-size: 1.3rem;
  margin-top: 2em;
}

p,
li {
  margin-bottom: 0.8em;
}

ul {
  padding-left: 1.2em;
}

.meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 2em;
}

footer {
  margin-top: 4em;
  font-size: 0.9rem;
  color: #666;
  text-align: left;
  padding-bottom: 40px;
}

.policy-divider {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    #ccc,
    transparent
  );
  margin: 4rem 0;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: #ffffff;
  border-bottom: 1px solid #e6e8eb;
  z-index: 100;
}

/* Left */
.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 28px;
  height: 28px;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  color: #111;
}

/* Center nav */
.header-center {
  display: flex;
  gap: 28px;
}

.header-center a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  position: relative;
  padding: 4px 0;
}

.header-center a.active {
  color: #111;
}

.header-center a:hover {
  color: #444;
}

.header-center a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #111;
  transition: width 0.2s ease;
}

.header-center a:hover::after {
  width: 100%;
}

/* Right */
.header-right {
  display: flex;
  align-items: center;
}

.app-button {
  background: #111;
  color: #fff;
  border: none;
	text-decoration: none;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.app-button:hover {
  background: #000;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
  .header-center {
    display: none;
  }
}

/* Legal sidebar */
.legal-sidebar {
  position: fixed;
  right: 28px;
  top: 120px;
  width: 200px;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  z-index: 50;
}

.legal-sidebar .sidebar-title {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin-bottom: 12px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


.legal-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-sidebar li {
  margin-bottom: 14px;
}

.legal-sidebar a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  position: relative;
  padding: 4px 0;
  display: inline-block;
  transition: color 0.2s ease;
}

.legal-sidebar a:hover {
  color: #111;
}

.legal-sidebar a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #111;
  transition: width 0.2s ease;
}

.legal-sidebar a:hover::after {
  width: 100%;
}

.legal-sidebar a.active {
  color: #111;
  font-weight: 600;
}

.legal-sidebar a.active::after {
  width: 100%;
}

/* Responsive: hide sidebar on small screens */
@media (max-width: 1024px) {
  .legal-sidebar {
    display: none;
  }
}