.theme-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #ff9d1f;
  background: rgba(252, 128, 25, .1);
  border: 1px solid rgba(252, 128, 25, .26);
  border-radius: 50%;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}

.theme-toggle:hover {
  background: rgba(252, 128, 25, .18);
  border-color: rgba(252, 128, 25, .5);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(252, 128, 25, .32);
  outline-offset: 3px;
}

.theme-toggle span {
  width: 18px;
  height: 18px;
  position: relative;
  display: block;
}

.theme-toggle span::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  content: "☀";
  font-size: 19px;
  line-height: 1;
}

html[data-theme="light"] .theme-toggle span::before {
  content: "☾";
  font-size: 21px;
}

.legal-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

html[data-theme="light"] {
  --forest: #e86500;
  --forest-deep: #2b1708;
  --forest-soft: #f47a1f;
  --honey: #ffb000;
  --honey-light: #fff0d5;
  --cream: #fff7ed;
  --ivory: #fffaf6;
  --ink: #1f2024;
  --muted: #65656d;
  --line: #e7e2dc;
  --shadow: 0 28px 70px rgba(58, 35, 17, .12);
}

html[data-theme="light"] body {
  color: var(--ink);
  background: var(--ivory);
}

html[data-theme="light"] .site-header {
  background: rgba(255, 250, 246, .9);
  border-bottom-color: rgba(39, 39, 42, .06);
}

html[data-theme="light"] .site-header.scrolled {
  border-color: rgba(232, 101, 0, .14);
  box-shadow: 0 10px 32px rgba(58, 35, 17, .09);
}

html[data-theme="light"] .nav-links a,
html[data-theme="light"] .login-link {
  color: #46464d;
}

html[data-theme="light"] .menu-button {
  background: #fff0e3;
}

html[data-theme="light"] .hero {
  background:
    radial-gradient(circle at 78% 28%, rgba(252, 128, 25, .13), transparent 30%),
    radial-gradient(circle at 12% 40%, rgba(255, 176, 0, .08), transparent 32%),
    linear-gradient(135deg, #fffaf6 0%, #fff5ea 58%, #fff0e3 100%);
}

html[data-theme="light"] .hero::before {
  opacity: .32;
  background-image:
    linear-gradient(rgba(96, 61, 35, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 61, 35, .08) 1px, transparent 1px);
}

html[data-theme="light"] .hero-hive span {
  border-color: rgba(232, 101, 0, .25);
  background: linear-gradient(145deg, rgba(252, 128, 25, .13), rgba(255, 255, 255, .25));
}

html[data-theme="light"] .hero-hive span:nth-child(3n) {
  border-color: rgba(232, 101, 0, .46);
  background: linear-gradient(145deg, rgba(255, 176, 0, .24), rgba(255, 255, 255, .35));
}

html[data-theme="light"] .floating-card {
  color: #27272a;
  background: rgba(255, 255, 255, .92);
  border-color: rgba(62, 43, 29, .12);
  box-shadow: 0 22px 60px rgba(58, 35, 17, .18);
}

html[data-theme="light"] .floating-card small {
  color: #71717a;
}

html[data-theme="light"] .trust-strip {
  background: #ffffff;
  border-color: #ebe4dd;
}

html[data-theme="light"] .trust-grid div {
  color: #4f4f56;
  border-color: #ebe4dd;
}

html[data-theme="light"] .benefits,
html[data-theme="light"] .faq,
html[data-theme="light"] .testimonial,
html[data-theme="light"] .cta-section {
  background: #fffaf6;
}

html[data-theme="light"] .feature-card,
html[data-theme="light"] .dark-card {
  background: #ffffff;
  border-color: #e7e2dc;
  box-shadow: 0 22px 55px rgba(58, 35, 17, .08);
}

html[data-theme="light"] .mini-calendar,
html[data-theme="light"] .client-list,
html[data-theme="light"] .chart {
  background: #fffaf6;
  border-color: #e7e2dc;
  box-shadow: 0 16px 35px rgba(58, 35, 17, .08);
}

html[data-theme="light"] .subscription-spotlight {
  background: #fff3e7;
}

html[data-theme="light"] .subscription-copy h2 {
  color: #202024;
}

html[data-theme="light"] .subscription-copy > p,
html[data-theme="light"] .subscription-benefits {
  color: #5f5f67;
}

html[data-theme="light"] .how-it-works {
  color: #202024;
  background:
    radial-gradient(circle at 78% 22%, rgba(252, 128, 25, .1), transparent 30%),
    linear-gradient(135deg, #fffaf6 0%, #fff3e7 55%, #ffead7 100%);
  border-color: #eadfd5;
}

html[data-theme="light"] .how-copy > p,
html[data-theme="light"] .steps p {
  color: #65656d;
}

html[data-theme="light"] .steps strong {
  color: #27272a;
}

html[data-theme="light"] .dashboard {
  color: #27272a;
  background: #f8f8f7;
  border-color: #e2b48e;
  box-shadow: 0 40px 85px rgba(58, 35, 17, .2);
}

html[data-theme="light"] .dashboard aside,
html[data-theme="light"] .metrics > div,
html[data-theme="light"] .main-chart,
html[data-theme="light"] .next-clients,
html[data-theme="light"] .dashboard-title > span {
  background: #ffffff;
}

html[data-theme="light"] .pricing {
  background:
    radial-gradient(circle at 8% 18%, rgba(252, 128, 25, .08), transparent 25%),
    radial-gradient(circle at 92% 80%, rgba(255, 176, 0, .07), transparent 27%),
    #fff7ed;
}

html[data-theme="light"] .price-card {
  background: #ffffff;
  border-color: #e5ded7;
}

html[data-theme="light"] .price-card.recommended {
  color: #27272a;
  background:
    radial-gradient(circle at 100% 0%, rgba(252, 128, 25, .12), transparent 36%),
    linear-gradient(155deg, #fff8f1 0%, #fff3e7 100%);
}

html[data-theme="light"] .recommended .price-head p,
html[data-theme="light"] .recommended .price span,
html[data-theme="light"] .recommended li {
  color: #65656d;
}

html[data-theme="light"] .accordion-item button {
  color: #27272a;
}

html[data-theme="light"] .quote-card,
html[data-theme="light"] .cta-card {
  color: #ffffff;
}

html[data-theme="dark"] .legal-page {
  color: #f4f4f5;
  background:
    radial-gradient(circle at 90% 8%, rgba(252, 128, 25, .09), transparent 24rem),
    #151517;
}

html[data-theme="dark"] .legal-header {
  background: rgba(21, 21, 23, .92);
  border-color: #29292f;
}

html[data-theme="dark"] .legal-back {
  color: #c4c4ca;
}

html[data-theme="dark"] .legal-article h1,
html[data-theme="dark"] .legal-section h2,
html[data-theme="dark"] .legal-section h3,
html[data-theme="dark"] .legal-nav strong {
  color: #f7f7f8;
}

html[data-theme="dark"] .legal-lead,
html[data-theme="dark"] .legal-section p,
html[data-theme="dark"] .legal-section li,
html[data-theme="dark"] .legal-nav a {
  color: #b5b5bd;
}

html[data-theme="dark"] .legal-updated {
  color: #85858e;
}

html[data-theme="dark"] .legal-section {
  border-color: #303036;
}

html[data-theme="dark"] .legal-callout {
  background: #24201d;
  border-color: #51341f;
}

html[data-theme="dark"] .legal-nav {
  background: #1c1c20;
  border-color: #303036;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] .contact-copy h1,
html[data-theme="dark"] .contact-card h2,
html[data-theme="dark"] .contact-topics strong {
  color: #f7f7f8;
}

html[data-theme="dark"] .contact-copy > p,
html[data-theme="dark"] .contact-card p,
html[data-theme="dark"] .contact-topics p {
  color: #b5b5bd;
}

html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .contact-topics article {
  background: #1c1c20;
  border-color: #303036;
  box-shadow: 0 24px 65px rgba(0, 0, 0, .2);
}

@media (max-width: 1080px) {
  .nav-links {
    gap: 24px;
  }

  .nav-actions {
    gap: 16px;
  }
}

@media (max-width: 820px) {
  .nav-actions {
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .legal-actions {
    gap: 10px;
  }

  .legal-back {
    font-size: 12px;
  }
}
