/* ============================================================
   LM Data Systems - Staging Redesign v3
   Direction: Tiefsee & Sand.
   Loaded after main.css on staging pages. Uses stronger selectors
   where WordPress injects later global header/cookie CSS.
   ============================================================ */

:root {
  --bg-deep: #0B1A2A;
  --bg-soft: #12283C;
  --bg-panel: rgba(234, 240, 245, 0.055);
  --bg-panel-strong: rgba(234, 240, 245, 0.095);
  --line: rgba(234, 240, 245, 0.12);
  --line-strong: rgba(234, 240, 245, 0.24);
  --text-primary: #EAF0F5;
  --text-secondary: rgba(234, 240, 245, 0.74);
  --text-muted: rgba(234, 240, 245, 0.50);
  --accent-gold: #E7C98D;
  --accent-deep: #D9B676;
  --signal-teal: #E7C98D;
  --signal-blue: #86A8C7;
  --sand-shadow: rgba(217, 182, 118, 0.20);
  --sea-shadow: rgba(3, 13, 24, 0.48);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-deep: #F4F1EA;
    --bg-soft: #EFE9DB;
    --bg-panel: rgba(11, 26, 42, 0.040);
    --bg-panel-strong: rgba(11, 26, 42, 0.075);
    --line: rgba(11, 26, 42, 0.13);
    --line-strong: rgba(11, 26, 42, 0.23);
    --text-primary: #0B1A2A;
    --text-secondary: rgba(11, 26, 42, 0.72);
    --text-muted: rgba(11, 26, 42, 0.50);
    --accent-gold: #B8863B;
    --accent-deep: #B8863B;
    --signal-teal: #B8863B;
    --signal-blue: #315B78;
    --sand-shadow: rgba(184, 134, 59, 0.18);
    --sea-shadow: rgba(11, 26, 42, 0.12);
    color-scheme: light;
  }
}

:root[data-theme="dark"] {
  --bg-deep: #0B1A2A;
  --bg-soft: #12283C;
  --bg-panel: rgba(234, 240, 245, 0.055);
  --bg-panel-strong: rgba(234, 240, 245, 0.095);
  --line: rgba(234, 240, 245, 0.12);
  --line-strong: rgba(234, 240, 245, 0.24);
  --text-primary: #EAF0F5;
  --text-secondary: rgba(234, 240, 245, 0.74);
  --text-muted: rgba(234, 240, 245, 0.50);
  --accent-gold: #E7C98D;
  --accent-deep: #D9B676;
  --signal-teal: #E7C98D;
  --signal-blue: #86A8C7;
  --sand-shadow: rgba(217, 182, 118, 0.20);
  --sea-shadow: rgba(3, 13, 24, 0.48);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg-deep: #F4F1EA;
  --bg-soft: #EFE9DB;
  --bg-panel: rgba(11, 26, 42, 0.040);
  --bg-panel-strong: rgba(11, 26, 42, 0.075);
  --line: rgba(11, 26, 42, 0.13);
  --line-strong: rgba(11, 26, 42, 0.23);
  --text-primary: #0B1A2A;
  --text-secondary: rgba(11, 26, 42, 0.72);
  --text-muted: rgba(11, 26, 42, 0.50);
  --accent-gold: #B8863B;
  --accent-deep: #B8863B;
  --signal-teal: #B8863B;
  --signal-blue: #315B78;
  --sand-shadow: rgba(184, 134, 59, 0.18);
  --sea-shadow: rgba(11, 26, 42, 0.12);
  color-scheme: light;
}

::selection {
  background: var(--accent-deep);
  color: #0B1A2A;
}

html .lmds-theme-toggle {
  display: none !important;
}

html body {
  background: var(--bg-deep);
}

html .site-header {
  border-color: rgba(234, 240, 245, 0.12) !important;
  background: rgba(5, 14, 24, 0.74) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(234, 240, 245, 0.07) !important;
}

html .site-nav-link,
html .site-subnav a,
html .site-brand,
html .site-header__cta {
  color: var(--text-primary) !important;
}

html .site-nav-link {
  color: rgba(234, 240, 245, 0.74) !important;
}

html .site-nav-link:hover,
html .site-nav-item:focus-within .site-nav-link,
html .site-nav-link.is-active {
  background: rgba(217, 182, 118, 0.11) !important;
  color: var(--text-primary) !important;
}

html .site-subnav {
  border-color: rgba(234, 240, 245, 0.12) !important;
  background: rgba(6, 17, 30, 0.94) !important;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35), 0 0 54px rgba(217, 182, 118, 0.08) !important;
}

html .site-subnav span {
  color: rgba(234, 240, 245, 0.62) !important;
}

html .site-header__cta,
html .landing-button {
  border-color: rgba(217, 182, 118, 0.52) !important;
  background: rgba(217, 182, 118, 0.12) !important;
  box-shadow: 0 18px 70px rgba(217, 182, 118, 0.10) !important;
}

html .site-header__cta:hover,
html .landing-button:hover {
  border-color: #E7C98D !important;
  background: rgba(217, 182, 118, 0.18) !important;
}

html .landing-button--ghost {
  border-color: rgba(234, 240, 245, 0.18) !important;
  background: rgba(234, 240, 245, 0.055) !important;
  box-shadow: none !important;
}

html .landing-page {
  background:
    radial-gradient(circle at 16% 7%, rgba(217, 182, 118, 0.12), transparent 25rem),
    radial-gradient(circle at 86% 42%, rgba(134, 168, 199, 0.13), transparent 34rem),
    linear-gradient(180deg, #0B1A2A 0%, #07131F 58%, #102337 100%) !important;
}

html .product-section--ai,
html .landing-contact {
  background:
    radial-gradient(circle at 18% 16%, rgba(217, 182, 118, 0.12), transparent 26rem),
    radial-gradient(circle at 76% 54%, rgba(134, 168, 199, 0.14), transparent 32rem),
    var(--bg-deep) !important;
}

html .project-info-card,
html .promise-card,
html .product-panel,
html .landing-contact__window,
html .info-card {
  border-color: var(--line) !important;
  background: rgba(234, 240, 245, 0.055) !important;
  box-shadow: 0 24px 80px var(--sea-shadow) !important;
}

html .ai-phone-visual {
  background:
    linear-gradient(180deg, rgba(234, 240, 245, 0.070), rgba(234, 240, 245, 0.030)),
    rgba(6, 17, 30, 0.72) !important;
}

html .ai-phone-icon {
  border-color: rgba(217, 182, 118, 0.30) !important;
  background: rgba(217, 182, 118, 0.11) !important;
  color: var(--accent-gold) !important;
  box-shadow: 0 0 42px rgba(217, 182, 118, 0.14) !important;
}

html .ai-demo-status::before,
html .ai-wave span {
  background: linear-gradient(180deg, var(--accent-gold), var(--signal-blue)) !important;
}

html .eyebrow {
  color: var(--accent-gold) !important;
}

html .product-section--smart::before {
  background:
    linear-gradient(180deg, var(--bg-deep) 0%, rgba(0, 0, 0, 0) 17%, rgba(0, 0, 0, 0) 83%, var(--bg-deep) 100%),
    linear-gradient(90deg, rgba(5, 13, 22, 0.74) 0%, rgba(5, 13, 22, 0.42) 44%, rgba(5, 13, 22, 0.10) 74%, rgba(5, 13, 22, 0.44) 100%),
    radial-gradient(78% 62% at 76% 40%, rgba(217, 182, 118, 0.18), transparent 70%),
    url("../smart-home-night.webp") center / cover no-repeat !important;
}

html .product-section--smart .eyebrow {
  color: #E7C98D !important;
}

html .product-section--smart .product-copy h2,
html .product-section--smart .project-info-card strong {
  color: #F5F0E6 !important;
}

html .product-section--smart .product-copy p,
html .product-section--smart .project-info-card span {
  color: rgba(245, 240, 230, 0.78) !important;
}

html .product-section--smart .product-points span,
html .product-section--smart .project-info-card {
  background: rgba(5, 13, 22, 0.58) !important;
  border-color: rgba(245, 240, 230, 0.16) !important;
}

html .lmds-cookie {
  width: min(33rem, calc(100vw - 2rem)) !important;
}

html .lmds-cookie__panel {
  grid-template-columns: 1fr !important;
  gap: 0.95rem !important;
  padding: 1rem !important;
  border-color: rgba(234, 240, 245, 0.14) !important;
  background: linear-gradient(135deg, rgba(234, 240, 245, 0.08), rgba(234, 240, 245, 0.025)), rgba(6, 17, 30, 0.92) !important;
}

html .lmds-cookie__copy span {
  color: #E7C98D !important;
}

html .lmds-cookie__copy p {
  color: rgba(234, 240, 245, 0.72) !important;
}

html .lmds-cookie__details {
  grid-template-columns: 1fr 1fr !important;
}

html .lmds-cookie__details[hidden] {
  display: none !important;
}

html .lmds-cookie__actions {
  justify-content: flex-start !important;
}

html .lmds-cookie__accept {
  border-color: rgba(217, 182, 118, 0.68) !important;
  background: rgba(217, 182, 118, 0.18) !important;
}

:root[data-theme="light"] .lmds-cookie {
  color: #0B1A2A !important;
}

:root[data-theme="light"] .lmds-cookie__panel {
  border-color: rgba(11, 26, 42, 0.12) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.62)), rgba(244, 241, 234, 0.98) !important;
  box-shadow: 0 28px 80px rgba(11, 26, 42, 0.16) !important;
}

:root[data-theme="light"] .lmds-cookie__copy strong,
:root[data-theme="light"] .lmds-cookie__details strong {
  color: #0B1A2A !important;
}

:root[data-theme="light"] .lmds-cookie__copy p,
:root[data-theme="light"] .lmds-cookie__details p {
  color: rgba(11, 26, 42, 0.68) !important;
}

:root[data-theme="light"] .lmds-cookie__details div {
  border-color: rgba(11, 26, 42, 0.10) !important;
  background: rgba(255, 255, 255, 0.62) !important;
}

:root[data-theme="light"] .lmds-cookie button {
  color: #0B1A2A !important;
}

:root[data-theme="light"] .lmds-cookie__ghost {
  border-color: rgba(11, 26, 42, 0.14) !important;
  background: rgba(255, 255, 255, 0.64) !important;
}

:root[data-theme="light"] .lmds-cookie__accept {
  border-color: rgba(184, 134, 59, 0.78) !important;
  background: #B8863B !important;
  color: #FFFFFF !important;
}

:root[data-theme="light"] body,
:root[data-theme="light"] .landing-page,
:root[data-theme="light"] .product-section--ai,
:root[data-theme="light"] .landing-contact {
  background:
    radial-gradient(circle at 18% 12%, rgba(184, 134, 59, 0.12), transparent 24rem),
    radial-gradient(circle at 82% 44%, rgba(49, 91, 120, 0.10), transparent 32rem),
    linear-gradient(180deg, #F7F3EA 0%, #F4F1EA 48%, #EFE9DB 100%) !important;
}

:root[data-theme="light"] .site-header {
  border-color: rgba(11, 26, 42, 0.13) !important;
  background: rgba(252, 250, 244, 0.82) !important;
  box-shadow: 0 20px 70px rgba(11, 26, 42, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.70) !important;
}

:root[data-theme="light"] .site-nav-link,
:root[data-theme="light"] .site-subnav a,
:root[data-theme="light"] .site-brand,
:root[data-theme="light"] .site-header__cta {
  color: #0B1A2A !important;
}

:root[data-theme="light"] .site-subnav {
  border-color: rgba(11, 26, 42, 0.12) !important;
  background: rgba(252, 250, 244, 0.96) !important;
  box-shadow: 0 22px 70px rgba(11, 26, 42, 0.13) !important;
}

:root[data-theme="light"] .site-subnav span {
  color: rgba(11, 26, 42, 0.58) !important;
}

:root[data-theme="light"] .hero-signal-panel {
  border-color: rgba(11, 26, 42, 0.12) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(252, 250, 244, 0.72)),
    rgba(252, 250, 244, 0.82) !important;
  box-shadow: 0 26px 85px rgba(11, 26, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

:root[data-theme="light"] .hero-signal-panel::before {
  border-color: rgba(184, 134, 59, 0.18) !important;
}

:root[data-theme="light"] .hero-signal-panel__top,
:root[data-theme="light"] .hero-signal-card span {
  color: rgba(11, 26, 42, 0.62) !important;
}

:root[data-theme="light"] .hero-signal-card {
  border-color: rgba(11, 26, 42, 0.10) !important;
  background: rgba(255, 255, 255, 0.58) !important;
}

:root[data-theme="light"] .hero-signal-card strong {
  color: #0B1A2A !important;
}

:root[data-theme="light"] .hero-signal-card__meta {
  border-color: rgba(184, 134, 59, 0.26) !important;
  color: #8D642A !important;
}

:root[data-theme="light"] .landing-hero__lead,
:root[data-theme="light"] .product-copy p,
:root[data-theme="light"] .promise-card p,
:root[data-theme="light"] .project-info-card span,
:root[data-theme="light"] .ai-demo-body p,
:root[data-theme="light"] .landing-contact p,
:root[data-theme="light"] .product-points span,
:root[data-theme="light"] .info-card p,
:root[data-theme="light"] .lead,
:root[data-theme="light"] .subhead {
  color: rgba(11, 26, 42, 0.74) !important;
}

:root[data-theme="light"] .promise-card h3,
:root[data-theme="light"] .project-info-card strong,
:root[data-theme="light"] .info-card__label {
  color: #0B1A2A !important;
}

:root[data-theme="light"] .project-info-card,
:root[data-theme="light"] .promise-card,
:root[data-theme="light"] .product-panel,
:root[data-theme="light"] .landing-contact__window,
:root[data-theme="light"] .info-card {
  background: rgba(252, 250, 244, 0.72) !important;
  border-color: rgba(11, 26, 42, 0.12) !important;
  box-shadow: 0 20px 55px rgba(11, 26, 42, 0.08) !important;
}

:root[data-theme="light"] .ai-phone-visual {
  background: linear-gradient(180deg, rgba(11, 26, 42, 0.055), rgba(11, 26, 42, 0.020)) !important;
}

:root[data-theme="light"] .product-points span {
  background: rgba(11, 26, 42, 0.05) !important;
  border-color: rgba(11, 26, 42, 0.14) !important;
}

:root[data-theme="light"] .product-section--smart::before {
  background:
    linear-gradient(180deg, var(--bg-deep) 0%, rgba(0,0,0,0) 12%, rgba(0,0,0,0) 88%, var(--bg-deep) 100%),
    linear-gradient(90deg, rgba(5,13,22,0.58) 0%, rgba(5,13,22,0.32) 30%, rgba(5,13,22,0) 55%),
    url("../smart-home-light.webp") center / cover no-repeat !important;
}

:root[data-theme="light"] .product-section--smart .eyebrow {
  color: #E7C98D !important;
}

:root[data-theme="light"] .product-section--smart .product-copy h2,
:root[data-theme="light"] .product-section--smart .project-info-card strong {
  color: #F8F1E2 !important;
}

:root[data-theme="light"] .product-section--smart .product-copy p,
:root[data-theme="light"] .product-section--smart .project-info-card span,
:root[data-theme="light"] .product-section--smart .product-points span {
  color: rgba(248, 241, 226, 0.84) !important;
}

:root[data-theme="light"] .contact-window {
  border-color: rgba(11, 26, 42, 0.12) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.46)),
    rgba(239, 233, 219, 0.72) !important;
  box-shadow: 0 28px 90px rgba(11, 26, 42, 0.12) !important;
}

:root[data-theme="light"] .contact-form {
  border-color: rgba(11, 26, 42, 0.12) !important;
  background: rgba(255, 255, 255, 0.62) !important;
}

:root[data-theme="light"] .contact-form label {
  color: rgba(11, 26, 42, 0.68) !important;
}

:root[data-theme="light"] .contact-form input,
:root[data-theme="light"] .contact-form textarea,
:root[data-theme="light"] .topic-select__button {
  border-color: rgba(11, 26, 42, 0.14) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  color: #0B1A2A !important;
}

:root[data-theme="light"] .contact-form input::placeholder,
:root[data-theme="light"] .contact-form textarea::placeholder {
  color: rgba(11, 26, 42, 0.42) !important;
}

:root[data-theme="light"] .topic-select__button::after {
  border-color: rgba(11, 26, 42, 0.62) !important;
}

:root[data-theme="light"] .topic-select__menu {
  border-color: rgba(184, 134, 59, 0.32) !important;
  background: rgba(252, 250, 244, 0.99) !important;
  box-shadow: 0 22px 60px rgba(11, 26, 42, 0.16) !important;
}

:root[data-theme="light"] .topic-select__option {
  color: rgba(11, 26, 42, 0.76) !important;
}

:root[data-theme="light"] .topic-select__option:hover,
:root[data-theme="light"] .topic-select__option:focus,
:root[data-theme="light"] .topic-select__option.is-selected {
  background: rgba(184, 134, 59, 0.13) !important;
  color: #0B1A2A !important;
}

:root[data-theme="light"] .form-submit {
  border-color: rgba(184, 134, 59, 0.74) !important;
  background: #B8863B !important;
  color: #FFFFFF !important;
}

:root[data-theme="light"] .contact-pill {
  border-color: rgba(11, 26, 42, 0.13) !important;
  background: rgba(255, 255, 255, 0.62) !important;
  color: #0B1A2A !important;
}

:root[data-theme="light"] .contact-pill:first-child {
  border-color: rgba(184, 134, 59, 0.42) !important;
  background: rgba(184, 134, 59, 0.12) !important;
}

html .sequence-hero {
  color: #F8F1E2 !important;
  overflow-x: clip !important;
}

html .sequence-hero__copy {
  max-width: min(100%, 76rem) !important;
}

html .sequence-hero__title {
  max-width: min(100%, 76rem) !important;
  color: #F8F1E2 !important;
  text-shadow: 0 18px 54px rgba(0, 0, 0, 0.52) !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
}

html .sequence-hero__lead,
html .sequence-chip,
html .sequence-status-card span {
  color: rgba(248, 241, 226, 0.82) !important;
}

html .sequence-status-card strong {
  color: #F8F1E2 !important;
}

html .sequence-hero__button {
  color: #F8F1E2 !important;
}

html .sequence-hero__button:hover {
  color: #FFFFFF !important;
}

:root[data-theme="light"] .sequence-hero,
:root[data-theme="light"] .sequence-hero__title,
:root[data-theme="light"] .sequence-hero__lead,
:root[data-theme="light"] .sequence-hero__button,
:root[data-theme="light"] .sequence-status-card strong {
  color: #F8F1E2 !important;
}

:root[data-theme="light"] .sequence-hero .eyebrow {
  color: #E7C98D !important;
}

:root[data-theme="light"] .sequence-chip {
  border-color: rgba(248, 241, 226, 0.18) !important;
  background: rgba(6, 17, 30, 0.50) !important;
  color: rgba(248, 241, 226, 0.84) !important;
}

:root[data-theme="light"] .sequence-status-card {
  border-color: rgba(248, 241, 226, 0.15) !important;
  background: rgba(6, 17, 30, 0.52) !important;
}

:root[data-theme="light"] .sequence-status-card span {
  color: rgba(248, 241, 226, 0.72) !important;
}

html .sequence-after {
  overflow-x: clip !important;
}

html .sequence-after__inner,
html .ideas-dashboard {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html .ideas-dashboard {
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr) !important;
}

html .idea-detail {
  max-width: 100% !important;
}

html .landing-container,
html .product-section,
html .landing-section,
html .about-container,
html .sequence-after,
html .planning-section {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

html .landing-container,
html .about-container {
  background:
    radial-gradient(circle at 18% 18%, rgba(217, 182, 118, 0.045), transparent 34rem),
    radial-gradient(circle at 86% 54%, rgba(134, 168, 199, 0.038), transparent 38rem),
    linear-gradient(180deg, rgba(11, 26, 42, 0.98), var(--bg-deep) 54%, rgba(11, 26, 42, 0.98)) !important;
}

html .product-section,
html .product-section--ai,
html .landing-section,
html .sequence-after,
html .planning-section {
  background:
    radial-gradient(circle at 16% 16%, rgba(217, 182, 118, 0.08), transparent 34rem),
    radial-gradient(circle at 84% 48%, rgba(134, 168, 199, 0.055), transparent 38rem),
    linear-gradient(180deg, var(--bg-deep) 0%, rgba(12, 31, 49, 0.72) 48%, var(--bg-deep) 100%) !important;
}

html .product-section,
html .landing-section {
  padding-top: clamp(3.2rem, 5vw, 5rem) !important;
  padding-bottom: clamp(3.2rem, 5vw, 5rem) !important;
}

html .product-section::after,
html .sequence-after::before,
html .sequence-after::after,
html .planning-section::after,
html .about-hero__fade {
  background: linear-gradient(180deg, rgba(11, 26, 42, 0), var(--bg-deep) 72%, var(--bg-deep)) !important;
}

html .sequence-after,
html .planning-section {
  min-height: auto !important;
}

html .sequence-after {
  padding-top: clamp(4rem, 6.5vw, 6.5rem) !important;
  padding-bottom: clamp(4rem, 6.5vw, 6.5rem) !important;
}

html .planning-section {
  padding-top: clamp(4rem, 6.5vw, 6.5rem) !important;
  padding-bottom: clamp(4.5rem, 7vw, 7rem) !important;
}

html .about-section {
  padding-top: clamp(3.6rem, 6vw, 5.5rem) !important;
  padding-bottom: clamp(3.8rem, 6.5vw, 6rem) !important;
}

html .about-hero {
  color: #F8F1E2 !important;
  min-height: auto !important;
  align-items: start !important;
  padding-top: clamp(6.2rem, 6.8vw, 7.2rem) !important;
  padding-bottom: clamp(3.6rem, 5vw, 5rem) !important;
}

html .about-hero h1,
html .about-hero__lead,
html .about-hero__aside,
html .about-hero__aside-intro,
html .about-hero__fact strong {
  color: #F8F1E2 !important;
}

html .about-hero__fact span {
  color: rgba(248, 241, 226, 0.72) !important;
}

:root[data-theme="light"] .about-hero,
:root[data-theme="light"] .about-hero h1,
:root[data-theme="light"] .about-hero__lead,
:root[data-theme="light"] .about-hero__aside,
:root[data-theme="light"] .about-hero__aside-intro,
:root[data-theme="light"] .about-hero__fact strong {
  color: #F8F1E2 !important;
}

html .nav {
  border-color: rgba(234, 240, 245, 0.12) !important;
  background: rgba(6, 17, 30, 0.86) !important;
  color: #EAF0F5 !important;
}

html .nav a,
html .nav-brand,
html .nav-back {
  color: inherit !important;
}

html .page-header,
html .content,
html main,
html .error-container {
  color: var(--text-primary) !important;
}

html .page-eyebrow,
html .error-eyebrow,
html .toc-title,
html .section-num {
  color: var(--accent-gold) !important;
}

html .page-title,
html .section-title,
html .error-title,
html .quick-links-label {
  background: none !important;
  color: var(--text-primary) !important;
  -webkit-text-fill-color: currentColor !important;
}

html .error-title em {
  background: none !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

html .page-subtitle,
html .error-description,
html .section p,
html .toc-list a,
html .info-value,
html .quick-link {
  color: var(--text-secondary) !important;
}

html .toc,
html .section,
html .info-block,
html .callout,
html .quick-links,
html .quick-link {
  border-color: var(--line) !important;
  background: rgba(234, 240, 245, 0.055) !important;
  box-shadow: 0 18px 58px var(--sea-shadow) !important;
}

html .info-row {
  border-color: var(--line) !important;
}

html .info-label {
  color: var(--accent-gold) !important;
}

html .btn,
html .btn-primary,
html .btn-secondary {
  border-color: rgba(217, 182, 118, 0.46) !important;
  background: rgba(217, 182, 118, 0.12) !important;
  color: var(--text-primary) !important;
}

html .error-code {
  color: rgba(231, 201, 141, 0.16) !important;
  line-height: 0.82 !important;
}

:root[data-theme="light"] .nav {
  border-color: rgba(11, 26, 42, 0.12) !important;
  background: rgba(252, 250, 244, 0.92) !important;
  color: #0B1A2A !important;
  box-shadow: 0 18px 58px rgba(11, 26, 42, 0.10) !important;
}

:root[data-theme="light"] .page-header,
:root[data-theme="light"] .content,
:root[data-theme="light"] main,
:root[data-theme="light"] .error-container {
  color: #0B1A2A !important;
}

:root[data-theme="light"] .page-eyebrow,
:root[data-theme="light"] .error-eyebrow,
:root[data-theme="light"] .toc-title,
:root[data-theme="light"] .section-num {
  border-color: rgba(184, 134, 59, 0.20) !important;
  background: rgba(184, 134, 59, 0.10) !important;
  color: #8D642A !important;
}

:root[data-theme="light"] .page-title,
:root[data-theme="light"] .section-title,
:root[data-theme="light"] .error-title,
:root[data-theme="light"] .quick-links-label {
  color: #0B1A2A !important;
}

:root[data-theme="light"] .page-subtitle,
:root[data-theme="light"] .error-description,
:root[data-theme="light"] .section p,
:root[data-theme="light"] .toc-list a,
:root[data-theme="light"] .info-value,
:root[data-theme="light"] .quick-link {
  color: rgba(11, 26, 42, 0.68) !important;
}

:root[data-theme="light"] .toc,
:root[data-theme="light"] .section,
:root[data-theme="light"] .info-block,
:root[data-theme="light"] .callout,
:root[data-theme="light"] .quick-links,
:root[data-theme="light"] .quick-link {
  border-color: rgba(11, 26, 42, 0.11) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 18px 58px rgba(11, 26, 42, 0.08) !important;
}

:root[data-theme="light"] .info-row {
  border-color: rgba(11, 26, 42, 0.10) !important;
}

:root[data-theme="light"] .info-label {
  color: #8D642A !important;
}

:root[data-theme="light"] .btn,
:root[data-theme="light"] .btn-primary,
:root[data-theme="light"] .btn-secondary {
  border-color: rgba(184, 134, 59, 0.42) !important;
  background: rgba(184, 134, 59, 0.12) !important;
  color: #0B1A2A !important;
}

:root[data-theme="light"] .error-code {
  color: rgba(184, 134, 59, 0.18) !important;
}

html .error-container {
  min-height: auto !important;
  box-sizing: border-box !important;
  width: min(42rem, calc(100vw - 2rem)) !important;
  max-width: calc(100vw - 2rem) !important;
  margin-inline: auto !important;
  padding-top: clamp(7rem, 16vh, 10rem) !important;
  padding-bottom: clamp(4rem, 9vh, 7rem) !important;
}

html .error-description {
  max-width: 42rem !important;
}

html .error-description + div {
  display: none !important;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) body,
  :root:not([data-theme="dark"]) .landing-page,
  :root:not([data-theme="dark"]) .product-section--ai,
  :root:not([data-theme="dark"]) .landing-contact {
    background:
      radial-gradient(circle at 18% 12%, rgba(184, 134, 59, 0.12), transparent 24rem),
      radial-gradient(circle at 82% 44%, rgba(49, 91, 120, 0.10), transparent 32rem),
      linear-gradient(180deg, #F7F3EA 0%, #F4F1EA 48%, #EFE9DB 100%) !important;
  }

  :root:not([data-theme="dark"]) .landing-hero__lead,
  :root:not([data-theme="dark"]) .product-copy p,
  :root:not([data-theme="dark"]) .promise-card p,
  :root:not([data-theme="dark"]) .project-info-card span,
  :root:not([data-theme="dark"]) .ai-demo-body p,
  :root:not([data-theme="dark"]) .landing-contact p,
  :root:not([data-theme="dark"]) .product-points span,
  :root:not([data-theme="dark"]) .info-card p,
  :root:not([data-theme="dark"]) .lead,
  :root:not([data-theme="dark"]) .subhead {
    color: rgba(11, 26, 42, 0.74) !important;
  }

  :root:not([data-theme="dark"]) .project-info-card,
  :root:not([data-theme="dark"]) .promise-card,
  :root:not([data-theme="dark"]) .product-panel,
  :root:not([data-theme="dark"]) .landing-contact__window,
  :root:not([data-theme="dark"]) .info-card {
    background: rgba(252, 250, 244, 0.72) !important;
    border-color: rgba(11, 26, 42, 0.12) !important;
    box-shadow: 0 20px 55px rgba(11, 26, 42, 0.08) !important;
  }

  :root:not([data-theme="dark"]) .hero-signal-panel {
    border-color: rgba(11, 26, 42, 0.12) !important;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(252, 250, 244, 0.72)),
      rgba(252, 250, 244, 0.82) !important;
    box-shadow: 0 26px 85px rgba(11, 26, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  }

  :root:not([data-theme="dark"]) .hero-signal-panel::before {
    border-color: rgba(184, 134, 59, 0.18) !important;
  }

  :root:not([data-theme="dark"]) .hero-signal-panel__top,
  :root:not([data-theme="dark"]) .hero-signal-card span {
    color: rgba(11, 26, 42, 0.62) !important;
  }

  :root:not([data-theme="dark"]) .hero-signal-card {
    border-color: rgba(11, 26, 42, 0.10) !important;
    background: rgba(255, 255, 255, 0.58) !important;
  }

  :root:not([data-theme="dark"]) .hero-signal-card strong {
    color: #0B1A2A !important;
  }

  :root:not([data-theme="dark"]) .hero-signal-card__meta {
    border-color: rgba(184, 134, 59, 0.26) !important;
    color: #8D642A !important;
  }
}

@media (min-width: 981px) and (max-width: 1100px) {
  html .site-header {
    width: calc(100vw - 1.5rem) !important;
    gap: 0.5rem !important;
  }

  html .site-nav-link {
    padding: 0 0.62rem !important;
    font-size: 0.78rem !important;
  }

  html .product-inner {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  html .product-panel,
  html .ai-phone-visual {
    min-height: 28rem !important;
  }
}

@media (max-width: 980px) {
  html .site-header {
    top: max(0.65rem, env(safe-area-inset-top)) !important;
    width: calc(100vw - 1rem) !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    justify-content: normal !important;
    gap: 0.4rem !important;
    padding: 0.35rem !important;
    border-radius: 999px !important;
  }

  html .site-brand {
    min-width: 0 !important;
    min-height: 2.45rem !important;
    padding: 0 0.2rem 0 0.05rem !important;
  }

  html .site-brand__mark {
    width: 2.15rem !important;
    height: 2.15rem !important;
    flex-basis: 2.15rem !important;
  }

  html .site-brand__text,
  html .site-brand__text strong {
    max-width: 8.8rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 0.83rem !important;
  }

  html .site-header__cta {
    display: inline-flex !important;
    min-height: 2.35rem !important;
    max-width: 7.35rem !important;
    padding: 0 0.66rem !important;
    font-size: 0.71rem !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  html .site-menu-toggle {
    display: inline-flex !important;
    flex-direction: column !important;
    flex: 0 0 2.45rem !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.22rem !important;
    width: 2.45rem !important;
    height: 2.45rem !important;
    padding: 0 !important;
    border: 1px solid rgba(234, 240, 245, 0.14) !important;
    border-radius: 999px !important;
    background: rgba(234, 240, 245, 0.055) !important;
    color: var(--text-primary) !important;
  }

  html .site-primary-nav {
    position: absolute !important;
    top: calc(100% + 0.55rem) !important;
    left: 0.15rem !important;
    right: 0.15rem !important;
    z-index: 120 !important;
    display: none !important;
    grid-template-columns: 1fr !important;
    gap: 0.35rem !important;
    min-width: 0 !important;
    max-height: min(78vh, 42rem) !important;
    overflow: auto !important;
    padding: 0.75rem !important;
    border: 1px solid rgba(234, 240, 245, 0.14) !important;
    border-radius: 1.05rem !important;
    background: #06111E !important;
    box-shadow: 0 24px 75px rgba(0, 0, 0, 0.42) !important;
    backdrop-filter: blur(22px) !important;
    -webkit-backdrop-filter: blur(22px) !important;
  }

  html .site-header.is-menu-open .site-primary-nav {
    display: grid !important;
  }

  html .site-nav-item {
    display: grid !important;
    gap: 0.25rem !important;
  }

  html .site-nav-item::after {
    display: none !important;
  }

  html .site-nav-link {
    width: 100% !important;
    min-height: 2.75rem !important;
    justify-content: flex-start !important;
    padding: 0 0.9rem !important;
    font-size: 0.95rem !important;
  }

  html .site-subnav {
    position: static !important;
    display: grid !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 0.25rem !important;
    padding: 0.2rem 0 0.45rem 0.65rem !important;
    border: 0 !important;
    border-left: 1px solid rgba(234, 240, 245, 0.12) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  html .site-subnav a {
    padding: 0.45rem 0.6rem !important;
  }

  :root[data-theme="light"] .site-primary-nav {
    border-color: rgba(11, 26, 42, 0.14) !important;
    background: #FCFAF4 !important;
    box-shadow: 0 24px 75px rgba(11, 26, 42, 0.14) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  :root[data-theme="light"] .site-menu-toggle {
    border-color: rgba(11, 26, 42, 0.14) !important;
    background: rgba(11, 26, 42, 0.045) !important;
    color: #0B1A2A !important;
  }

  :root[data-theme="light"] .site-subnav {
    border-left-color: rgba(11, 26, 42, 0.12) !important;
  }
}

@media (max-width: 760px) {
  html .site-primary-nav {
    border-color: rgba(234, 240, 245, 0.14) !important;
    background: #06111E !important;
  }

  :root[data-theme="light"] .site-primary-nav {
    border-color: rgba(11, 26, 42, 0.14) !important;
    background: #FCFAF4 !important;
  }

  html .lmds-cookie {
    inset: auto 0.75rem 0.75rem 0.75rem !important;
    width: auto !important;
  }

  html .lmds-cookie__panel,
  html .lmds-cookie__details {
    grid-template-columns: 1fr !important;
  }

  html .landing-hero {
    min-height: auto !important;
    padding-top: 7.5rem !important;
  }
}

/* LMDS RESPONSIVE NAV AND TABLET HERO 2026-07-14
   Keep compact systems easy to scan while preserving the richer desktop UI. */
html .site-nav-link--mobile {
  display: none !important;
}

@media (max-width: 980px) {
  html .site-header.is-menu-open .site-primary-nav .site-subnav {
    display: none !important;
  }
}

@media (max-width: 520px) {
  html .site-header.is-menu-open .site-nav-link--mobile {
    display: flex !important;
  }
}

@media (min-width: 761px) and (max-width: 860px) {
  html .landing-hero {
    min-height: auto !important;
    align-items: start !important;
    padding-top: clamp(8.5rem, 18vw, 10rem) !important;
    padding-bottom: clamp(4.5rem, 9vw, 6rem) !important;
  }
}

@media (max-width: 520px) {
  html .site-header {
    grid-template-columns: minmax(0, 1fr) auto !important;
    width: calc(100vw - 0.85rem) !important;
  }

  html .site-header__cta {
    display: none !important;
  }

  html .site-brand__text,
  html .site-brand__text strong {
    max-width: min(13rem, calc(100vw - 7rem)) !important;
  }

  html .sequence-hero__title {
    font-size: clamp(3.35rem, 16vw, 4.65rem) !important;
    line-height: 0.92 !important;
  }

  html .sequence-hero__lead {
    margin-top: clamp(6rem, 18vh, 9rem) !important;
  }

  html .error-container {
    width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    padding: 5.5rem 1rem 3.5rem !important;
    gap: 0.82rem !important;
  }

  html .error-code {
    font-size: clamp(4.5rem, 22vw, 6rem) !important;
    margin: 0 !important;
  }

  html .error-title {
    font-size: clamp(1.95rem, 8.4vw, 2.55rem) !important;
    line-height: 1.02 !important;
    margin: 0 !important;
  }

  html .error-description {
    margin: 0 auto !important;
  }

  html .error-actions,
  html .quick-links-grid {
    width: 100% !important;
    max-width: 100% !important;
    gap: 0.7rem !important;
  }

  html .error-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  html .quick-links,
  html .quick-link {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  html .quick-links-grid {
    grid-template-columns: 1fr !important;
  }

  html .about-hero h1 {
    font-size: clamp(2.75rem, 11.8vw, 3.45rem) !important;
    line-height: 0.98 !important;
  }
}

/* Seamless page flow: keep one continuous background instead of restarting
   section gradients, which caused visible horizontal color breaks. */
html,
body {
  background: linear-gradient(180deg, #071522 0%, var(--bg-deep) 36%, #0B1A2A 100%) fixed !important;
}

body {
  overflow-x: clip !important;
}

html main,
html .landing-container,
html .landing-section,
html .product-section,
html .product-section--ai,
html .about-container,
html .about-section,
html .sequence-after,
html .planning-section {
  background: transparent !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
}

html .product-section::after,
html .sequence-after::before,
html .sequence-after::after,
html .planning-section::after {
  display: none !important;
}

html .product-section--smart::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: -1px !important;
  display: block !important;
  height: min(44vh, 30rem) !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background: linear-gradient(180deg, rgba(11, 26, 42, 0), rgba(11, 26, 42, 0.74) 48%, var(--bg-deep) 100%) !important;
}

html .product-section--smart {
  overflow: hidden !important;
}

html .product-section--smart::before {
  inset: 0 !important;
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 56%, rgba(0, 0, 0, 0.72) 74%, transparent 100%) !important;
  mask-image: linear-gradient(180deg, black 0%, black 56%, rgba(0, 0, 0, 0.72) 74%, transparent 100%) !important;
}

html #ki-anrufbeantworter,
html #ki-automationen,
html #kontakt,
html .sequence-after,
html .planning-section,
html .about-section {
  isolation: isolate !important;
}

html #ki-anrufbeantworter::before,
html #ki-automationen::before,
html #kontakt::before,
html .sequence-after::before,
html .planning-section::before,
html .about-section::before {
  opacity: 0.42 !important;
}

html #ki-anrufbeantworter,
html #ki-automationen,
html .landing-contact {
  position: relative !important;
  overflow: visible !important;
}

html #ki-anrufbeantworter {
  margin-top: 0 !important;
  padding-top: clamp(3.2rem, 5vw, 5rem) !important;
}

html #ki-automationen,
html .landing-contact {
  margin-top: clamp(-4rem, -6vh, -2.5rem) !important;
}

html #ki-anrufbeantworter::before,
html #ki-automationen::before,
html .landing-contact::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: min(-18vh, -10rem) !important;
  display: block !important;
  height: clamp(14rem, 30vh, 24rem) !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: 1 !important;
  background: linear-gradient(180deg, rgba(11, 26, 42, 0), rgba(11, 26, 42, 0.72) 58%, rgba(11, 26, 42, 0)) !important;
}

html #ki-anrufbeantworter::before,
html #ki-anrufbeantworter::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

html #ki-anrufbeantworter::after,
html #ki-automationen::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: min(-16vh, -9rem) !important;
  display: block !important;
  height: clamp(12rem, 26vh, 20rem) !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background: linear-gradient(180deg, rgba(11, 26, 42, 0), rgba(11, 26, 42, 0.58) 42%, rgba(11, 26, 42, 0)) !important;
}

html #ki-anrufbeantworter > *,
html #ki-automationen > *,
html .landing-contact > * {
  position: relative !important;
  z-index: 1 !important;
}

/* Final homepage transition pass: remove the visible empty bands between the
   large product blocks by letting the sections size to their content. */
html #smart-home.product-section,
html #ki-anrufbeantworter.product-section,
html #ki-automationen.product-section {
  min-height: auto !important;
}

html #smart-home.product-section {
  padding-top: clamp(4rem, 6vw, 6rem) !important;
  padding-bottom: clamp(1.2rem, 2.5vw, 2.4rem) !important;
  overflow: visible !important;
}

html #ki-anrufbeantworter.product-section {
  margin-top: 0 !important;
  padding-top: clamp(1.2rem, 2.4vw, 2.4rem) !important;
  padding-bottom: clamp(3rem, 5vw, 5rem) !important;
}

html #ki-automationen.product-section {
  margin-top: 0 !important;
  padding-top: clamp(2.8rem, 4.8vw, 4.8rem) !important;
}

html #smart-home.product-section::after {
  bottom: -6.5rem !important;
  height: clamp(15rem, 27vh, 23rem) !important;
  background: linear-gradient(180deg, rgba(11, 26, 42, 0), rgba(11, 26, 42, 0.62) 45%, rgba(11, 26, 42, 0) 100%) !important;
}

html #smart-home.product-section::before {
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 68%, rgba(0, 0, 0, 0.7) 84%, transparent 100%) !important;
  mask-image: linear-gradient(180deg, black 0%, black 68%, rgba(0, 0, 0, 0.7) 84%, transparent 100%) !important;
}

/* Smart Home camera handoff: keep the services section below the camera ride
   instead of letting it overlap the final camera frame. */
html .sequence-scroll {
  margin-bottom: 0 !important;
}

html .sequence-after {
  background:
    radial-gradient(circle at 16% 16%, rgba(217, 182, 118, 0.08), transparent 34rem),
    radial-gradient(circle at 84% 48%, rgba(134, 168, 199, 0.055), transparent 38rem),
    linear-gradient(180deg, var(--bg-deep) 0%, rgba(12, 31, 49, 0.72) 48%, var(--bg-deep) 100%) !important;
  z-index: 1 !important;
}

html .sequence-after::before,
html .sequence-after::after {
  content: none !important;
  display: none !important;
}

/* LMDS AUDIT FIXES 2026-07-13
   Prevent decorative glows from widening the page, improve text contrast on
   the Smart-Home image, and keep mobile controls comfortably tappable. */
html {
  overflow-x: clip !important;
}

html #smart-home.product-section {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

html .product-section--smart::before {
  background:
    linear-gradient(180deg, var(--bg-deep) 0%, rgba(0, 0, 0, 0) 17%, rgba(0, 0, 0, 0) 83%, var(--bg-deep) 100%),
    linear-gradient(90deg, rgba(5, 13, 22, 0.88) 0%, rgba(5, 13, 22, 0.70) 42%, rgba(5, 13, 22, 0.30) 70%, rgba(5, 13, 22, 0.50) 100%),
    radial-gradient(78% 62% at 76% 40%, rgba(217, 182, 118, 0.16), transparent 70%),
    url("../smart-home-night.webp") center / cover no-repeat !important;
}

@media (max-width: 760px) {
  html .site-menu-toggle {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  html .site-brand,
  html .site-header__cta,
  html .site-nav-link,
  html .site-header.is-menu-open .site-subnav a {
    min-height: 44px !important;
  }
}

@media (min-width: 1800px) {
  html .landing-hero__inner {
    width: min(1440px, 100%) !important;
  }

  html .landing-hero h1 {
    max-width: 16ch !important;
  }
}

/* LMDS LEGAL RESTYLE 2026-07-13
   Bring Impressum and Datenschutz into the current LMDS visual system. */
html body.lmds-legal {
  --bg-void: #071522;
  --bg-deep: #0B1A2A;
  --bg-card: #10263A;
  --bg-elevated: #142C42;
  --text-primary: #F8F1E2;
  --text-secondary: rgba(234, 240, 245, 0.76);
  --text-tertiary: rgba(234, 240, 245, 0.56);
  --text-dim: rgba(234, 240, 245, 0.44);
  --accent-cyan: #D9B676;
  --accent-cyan-soft: rgba(217, 182, 118, 0.1);
  --border-subtle: rgba(234, 240, 245, 0.1);
  --border-glow: rgba(217, 182, 118, 0.28);
  min-height: 100vh !important;
  overflow-x: clip !important;
  background: linear-gradient(180deg, #071522 0%, #0B1A2A 42%, #10263A 100%) fixed !important;
  color: var(--text-primary) !important;
  font-family: "Inter Tight", system-ui, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
}

html body.lmds-legal .grid-bg {
  display: none !important;
}

html body.lmds-legal .page-header {
  width: min(1180px, 100%) !important;
  margin: 0 auto !important;
  padding: clamp(9rem, 15vw, 12rem) clamp(1rem, 4vw, 3rem) clamp(3.5rem, 7vw, 5.5rem) !important;
  text-align: left !important;
}

html body.lmds-legal .page-eyebrow {
  display: inline-flex !important;
  margin: 0 0 1.35rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #D9B676 !important;
  font-family: "Inter Tight", system-ui, sans-serif !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

html body.lmds-legal .page-eyebrow::before {
  display: none !important;
}

html body.lmds-legal .page-title {
  max-width: 13ch !important;
  margin: 0 !important;
  color: #F8F1E2 !important;
  font-family: "Fraunces", Georgia, serif !important;
  font-size: clamp(3.7rem, 9vw, 8.6rem) !important;
  font-weight: 400 !important;
  line-height: 0.93 !important;
  letter-spacing: -0.055em !important;
  text-wrap: balance !important;
}

html body.lmds-legal .page-title em {
  background: none !important;
  color: #D9B676 !important;
  font-weight: 400 !important;
  -webkit-text-fill-color: currentColor !important;
}

html body.lmds-legal .page-subtitle {
  max-width: 720px !important;
  margin: 1.6rem 0 0 !important;
  color: rgba(234, 240, 245, 0.76) !important;
  font-size: clamp(1rem, 1.7vw, 1.2rem) !important;
  line-height: 1.58 !important;
}

html body.lmds-legal .toc-container,
html body.lmds-legal .content {
  width: min(1180px, 100%) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding-left: clamp(1rem, 4vw, 3rem) !important;
  padding-right: clamp(1rem, 4vw, 3rem) !important;
}

html body.lmds-legal .toc-container {
  padding-top: 0 !important;
  padding-bottom: clamp(2rem, 5vw, 4rem) !important;
}

html body.lmds-legal .content {
  padding-top: 0 !important;
  padding-bottom: clamp(5rem, 10vw, 9rem) !important;
}

html body.lmds-legal .toc,
html body.lmds-legal .section {
  border: 1px solid rgba(234, 240, 245, 0.11) !important;
  border-radius: 8px !important;
  background: rgba(234, 240, 245, 0.045) !important;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

html body.lmds-legal .toc {
  padding: clamp(1.25rem, 3vw, 2rem) !important;
}

html body.lmds-legal .toc-title,
html body.lmds-legal .section-num {
  color: #D9B676 !important;
  font-family: "Inter Tight", system-ui, sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
}

html body.lmds-legal .toc-list {
  gap: 0.3rem 2rem !important;
}

html body.lmds-legal .toc-list a {
  min-height: 2.75rem !important;
  color: rgba(234, 240, 245, 0.74) !important;
  border-bottom: 1px solid rgba(234, 240, 245, 0.07) !important;
}

html body.lmds-legal .toc-list a:hover {
  color: #F8F1E2 !important;
}

html body.lmds-legal .section {
  margin-bottom: 1rem !important;
  padding: clamp(1.35rem, 3.5vw, 3rem) !important;
  scroll-margin-top: 7rem !important;
}

html body.lmds-legal .section:hover {
  border-color: rgba(217, 182, 118, 0.32) !important;
}

html body.lmds-legal .section-title {
  max-width: 28ch !important;
  margin: 0 0 1.45rem !important;
  color: #F8F1E2 !important;
  font-family: "Fraunces", Georgia, serif !important;
  font-size: clamp(1.85rem, 4vw, 3rem) !important;
  font-weight: 400 !important;
  line-height: 1.04 !important;
  letter-spacing: -0.035em !important;
  text-wrap: balance !important;
}

html body.lmds-legal .section h3 {
  color: #F8F1E2 !important;
  font-size: 1.04rem !important;
}

html body.lmds-legal .section p,
html body.lmds-legal .section li,
html body.lmds-legal .info-value {
  color: rgba(234, 240, 245, 0.76) !important;
}

html body.lmds-legal .section a,
html body.lmds-legal .info-value a {
  color: #E7C98D !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.18em !important;
}

html body.lmds-legal .info-block,
html body.lmds-legal .callout {
  border: 1px solid rgba(234, 240, 245, 0.1) !important;
  border-radius: 8px !important;
  background: rgba(5, 13, 22, 0.42) !important;
  box-shadow: none !important;
}

html body.lmds-legal .info-label,
html body.lmds-legal .callout-title {
  color: #D9B676 !important;
}

html body.lmds-legal .info-row {
  border-color: rgba(234, 240, 245, 0.09) !important;
}

@media (max-width: 760px) {
  html body.lmds-legal .page-header {
    padding-top: 7.6rem !important;
    padding-bottom: 2.8rem !important;
  }

  html body.lmds-legal .page-title {
    font-size: clamp(3.2rem, 17vw, 5rem) !important;
    line-height: 0.94 !important;
  }

  html body.lmds-legal .toc-list {
    grid-template-columns: 1fr !important;
  }

  html body.lmds-legal .section {
    padding: 1.2rem !important;
  }

  html body.lmds-legal .info-block,
  html body.lmds-legal .callout {
    padding: 1rem !important;
  }

  html body.lmds-legal .info-row {
    grid-template-columns: 1fr !important;
    gap: 0.2rem !important;
  }
}
