/* Shared styles for about.html and privacy.html */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #fff;
  color: #111827;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  text-size-adjust: 100%;
}

.page {
  margin: 0 auto;
  max-width: 720px;
  min-width: 322px;
  padding: 48px 24px 64px;
}

/* Header */

header {
  margin-bottom: 48px;
  text-align: center;
}

.header-icon {
  font-size: 56px;
  line-height: 1;
}

.header-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 8px;
}

.header-tagline {
  color: #4b5563;
  font-size: 18px;
  font-weight: 400;
}

.header-subtitle {
  color: #4b5563;
  font-size: 18px;
  margin-top: 4px;
}

.header-note {
  color: #6b7280;
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
}

/* Typography */

h2 {
  clear: both;
  color: #111827;
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 16px;
}

p {
  color: #374151;
  margin-bottom: 16px;
}

a {
  color: #0f766e;
}

/* Nav */

nav {
  display: flex;
  font-size: 15px;
  gap: 16px;
  justify-content: center;
  margin-top: 16px;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

.toc {
  border-left: 3px solid #ccfbf1;
  display: block;
  margin: 24px 0;
  padding-left: 16px;
}

.toc ul {
  list-style: none;
}

.toc li {
  font-size: 14px;
  margin-bottom: 4px;
}

/* Screenshot */

.screenshot {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
  display: block;
  margin: 20px auto 24px;
  max-width: 240px;
}

/* Features grid */

.features {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  list-style: none;
  margin-bottom: 16px;
}

.features li {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #374151;
  padding: 10px 16px;
}

.features li strong {
  color: #111827;
}

/* Highlight box */

.highlight {
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 8px;
  margin: 24px 0;
  padding: 20px 24px;
}

.highlight p {
  margin-bottom: 0;
}

/* Backup schema accordion */

.backup-schema {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin: 16px 0;
  padding: 0;
}

.backup-schema summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
}

.backup-schema pre {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  color: #374151;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  overflow-x: auto;
  padding: 16px;
}

.backup-schema-note {
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 13px;
  margin: 0;
  padding: 12px 16px;
}

/* Legal text */

.legal-text {
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

/* Ordered steps */

.install-steps {
  color: #374151;
  list-style: decimal inside;
  margin-bottom: 16px;
}

.install-steps li {
  margin-bottom: 8px;
}

/* Summary banner (privacy) */

.summary {
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 8px;
  margin-bottom: 32px;
  padding: 20px 24px;
  text-align: center;
}

.summary p {
  color: #0f766e;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.summary-line {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* stylelint-disable-next-line no-descending-specificity */
.summary-line a {
  color: inherit;
}

/* Privacy-specific: tighter h2/p spacing */

.page-privacy h2 {
  font-size: 20px;
  margin: 36px 0 12px;
}

.page-privacy p {
  margin-bottom: 14px;
}

.page-privacy nav {
  margin-top: 12px;
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}

.btn {
  border-radius: 8px;
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 28px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.85;
}

.btn-primary {
  background: #0f766e;
  color: #fff;
}

.btn-secondary {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #374151;
}

/* Footer */

footer {
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 14px;
  margin-top: 56px;
  padding-top: 24px;
  text-align: center;
}

/* stylelint-disable-next-line no-descending-specificity */
footer a {
  text-decoration: none;
}

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

/* Responsive */

@media (width >= 600px) {
  .screenshot {
    float: right;
    margin: 0 0 16px 24px;
  }
}

@media (width <= 480px) {
  .page {
    padding: 32px 16px 48px;
  }

  .header-title {
    font-size: 26px;
  }

  h2 {
    font-size: 20px;
  }

  .page-privacy h2 {
    font-size: 18px;
  }
}
