/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base styles (index + bearblock) */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "Liberation Sans", sans-serif;
  margin: 0;
  color: #111;
  line-height: 1.4;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin: 0 0 16px;
}

.footer {
  margin-top: 64px;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
  font-size: 14px;
  color: #999;
}

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

.footer a:hover {
  color: #111;
}

/* Index page */
h1 {
  font-size: 28px;
  margin: 0 0 8px;
}

h1 a {
  color: inherit;
  text-decoration: none;
}

h1 a:hover {
  color: inherit;
}

.tagline {
  font-size: 18px;
  color: #555;
  margin: 0 0 48px;
}

.plugin-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

.plugin-card:hover {
  border-color: #999;
}

.plugin-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  flex-shrink: 0;
}

.plugin-info {
  min-width: 0;
}

.plugin-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 2px;
}

.plugin-desc {
  font-size: 15px;
  color: #555;
  margin: 0;
}

.plugin-meta {
  font-size: 13px;
  color: #999;
  margin: 4px 0 0;
}

/* Bearblock page */
.bearblock-page {
  background: #fafaf8;
  font-family: 'DM Sans', sans-serif;
}

.bearblock-page a {
  color: #111;
}

.bearblock-page .section-label {
  margin: 48px 0 12px;
}

.back {
  font-size: 14px;
  color: #999;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 32px;
}

.back:hover {
  color: #555;
}

.hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  flex-shrink: 0;
}

.hero h1 {
  font-size: 28px;
  margin: 0;
}

.hero .version {
  font-size: 14px;
  color: #999;
  font-weight: 400;
}

.desc {
  font-size: 18px;
  color: #555;
  margin: 16px 0 32px;
}

.install-btn {
  display: none;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: #564EC3;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
}

.install-btn:hover {
  background: #453db0;
  color: #fff;
}

.bearblock-page .install-btn {
  color: #fff;
}

.features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  font-size: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.features li:last-child {
  border-bottom: none;
}

.links {
  margin-top: 48px;
}

.links a {
  font-size: 14px;
  color: #555;
  text-decoration: none;
  margin-right: 20px;
}

.links a:hover {
  color: #111;
}

/* Privacy policy page */
body.privacy {
  font-family: 'DM Sans', sans-serif;
  background: #fafaf8;
  color: #2c2c2c;
  line-height: 1.7;
}

.privacy .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: #888;
  letter-spacing: 0.02em;
}

.privacy .brand span,
.privacy .brand a {
  font-weight: 700;
  color: #2c2c2c;
  text-decoration: none;
  border: none;
}

.privacy .brand a[href="/bearblock"] {
  font-weight: 400;
  color: #555;
}

.privacy .brand a:hover {
  color: #2c2c2c;
  border: none;
}

.privacy .brand a[href="/bearblock"]:hover {
  color: #333;
  border: none;
}

.privacy .brand .dot,
.bearblock-page .brand .dot {
  width: 4px;
  height: 4px;
  background: #ccc;
  border-radius: 50%;
}

/* Bearblock page brand header (same as privacy) */
.bearblock-page .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: #888;
  letter-spacing: 0.02em;
  font-family: 'DM Sans', sans-serif;
}

.bearblock-page .brand a {
  font-weight: 700;
  color: #2c2c2c;
  text-decoration: none;
  border: none;
}

.bearblock-page .brand a:hover {
  color: #2c2c2c;
  border: none;
}

.privacy h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.privacy .last-updated {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 3rem;
}

.privacy .tldr {
  background: #f0efe9;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 3rem;
  border-left: 3px solid #c8a96e;
}

.privacy .tldr-label {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a08040;
  margin-bottom: 0.5rem;
}

.privacy .tldr p {
  font-size: 0.95rem;
  color: #444;
}

.privacy section {
  margin-bottom: 2.5rem;
}

.privacy h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.privacy p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.75rem;
}

.privacy a {
  color: #a08040;
  text-decoration: none;
  border-bottom: 1px solid #d4c49a;
}

.privacy a:hover {
  color: #7a6030;
  border-bottom-color: #a08040;
}

.privacy .divider {
  height: 1px;
  background: #e8e7e2;
  margin: 3rem 0;
}

.privacy footer {
  font-size: 0.8rem;
  color: #aaa;
  padding-top: 1rem;
}

.privacy footer span {
  font-weight: 500;
  color: #888;
}
