/* TTC — legal interface */

body.template-page--impressum,
body.template-page--datenschutz,
body.template-page--agb,
body.template-page--vertrag-widerrufen {
  background: #f1f1f1;
}

body.template-page--impressum .shopify-section-header-sticky,
body.template-page--datenschutz .shopify-section-header-sticky,
body.template-page--agb .shopify-section-header-sticky,
body.template-page--vertrag-widerrufen .shopify-section-header-sticky,
body.template-page--impressum .header-wrapper--border-bottom,
body.template-page--datenschutz .header-wrapper--border-bottom,
body.template-page--agb .header-wrapper--border-bottom,
body.template-page--vertrag-widerrufen .header-wrapper--border-bottom {
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ttc-legal,
.ttc-legal * {
  box-sizing: border-box;
}

.ttc-legal {
  --legal-ink: #111311;
  --legal-muted: rgba(17, 19, 17, 0.52);
  --legal-faint: rgba(17, 19, 17, 0.28);
  --legal-line: rgba(17, 19, 17, 0.16);
  --legal-blue: #1e5cff;
  --legal-red: #8d1d25;
  min-height: calc(100svh - var(--header-height, 56px));
  color: var(--legal-ink);
  background: #f1f1f1;
  font-family: var(--ttc-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.08em;
}

.ttc-legal a {
  color: inherit;
  text-underline-offset: 3px;
}

.ttc-legal h1,
.ttc-legal h2,
.ttc-legal h3,
.ttc-legal p,
.ttc-legal ul,
.ttc-legal ol,
.ttc-legal dl,
.ttc-legal dd {
  margin-top: 0;
}

.ttc-legal h1,
.ttc-legal h2,
.ttc-legal h3,
.ttc-legal strong {
  font-family: inherit;
  font-weight: 400;
}

.ttc-legal h1,
.ttc-legal h2,
.ttc-legal h3,
.ttc-legal__eyebrow,
.ttc-legal__mast-meta,
.ttc-legal__index,
.ttc-legal__label,
.ttc-legal__button,
.ttc-legal__status {
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.ttc-legal__mast {
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  padding: 30px 24px;
  border-bottom: 1px solid var(--legal-line);
}

.ttc-legal__eyebrow {
  margin-bottom: 10px;
  color: var(--legal-muted);
}

.ttc-legal__mast h1 {
  max-width: 860px;
  margin-bottom: 0;
  color: var(--legal-ink);
}

.ttc-legal__mast-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: var(--legal-muted);
  text-align: right;
}

.ttc-legal__mast-meta a {
  color: var(--legal-ink);
}

.ttc-legal__document {
  width: 100%;
}

.ttc-legal__row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0;
  padding: 34px 24px 42px;
  border-bottom: 1px solid var(--legal-line);
}

.ttc-legal__index {
  color: var(--legal-faint);
}

.ttc-legal__content {
  width: min(920px, 100%);
}

.ttc-legal__content h2 {
  margin-bottom: 22px;
  color: var(--legal-ink);
}

.ttc-legal__content h3 {
  margin: 28px 0 8px;
  color: var(--legal-muted);
}

.ttc-legal__content p,
.ttc-legal__content li,
.ttc-legal__content dd {
  max-width: 82ch;
}

.ttc-legal__content p:last-child,
.ttc-legal__content ul:last-child,
.ttc-legal__content ol:last-child {
  margin-bottom: 0;
}

.ttc-legal__content ul,
.ttc-legal__content ol {
  padding-left: 19px;
}

.ttc-legal__content li + li {
  margin-top: 5px;
}

.ttc-legal__facts {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 7px 24px;
  margin-bottom: 0;
}

.ttc-legal__facts dt {
  color: var(--legal-muted);
  text-transform: uppercase;
}

.ttc-legal__facts dd {
  margin-bottom: 0;
}

.ttc-legal__note,
.ttc-legal__status {
  padding: 14px 16px;
  border: 1px solid var(--legal-line);
}

.ttc-legal__note {
  margin: 22px 0;
  color: var(--legal-muted);
}

.ttc-legal__status {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.ttc-legal__status.is-ready {
  color: var(--legal-ink);
}

.ttc-legal__status.is-test {
  color: var(--legal-red);
}

.ttc-legal__form {
  width: min(760px, 100%);
  margin-top: 28px;
}

.ttc-legal__form-step[hidden],
.ttc-legal__success[hidden],
.ttc-legal__error[hidden] {
  display: none !important;
}

.ttc-legal__field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}

.ttc-legal__field {
  display: grid;
  gap: 8px;
}

.ttc-legal__field--full {
  grid-column: 1 / -1;
}

.ttc-legal__field label,
.ttc-legal__label {
  color: var(--legal-muted);
}

.ttc-legal__field input,
.ttc-legal__field textarea,
.ttc-legal__field select {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--legal-line);
  border-radius: 0;
  outline: none;
  color: var(--legal-ink);
  background: transparent;
  font: inherit;
  letter-spacing: 0.05em;
  box-shadow: none;
}

.ttc-legal__field textarea {
  min-height: 112px;
  resize: vertical;
}

.ttc-legal__field input:focus,
.ttc-legal__field textarea:focus,
.ttc-legal__field select:focus {
  border-bottom-color: var(--legal-ink);
}

.ttc-legal__field input::placeholder,
.ttc-legal__field textarea::placeholder {
  color: var(--legal-faint);
  opacity: 1;
}

.ttc-legal__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.ttc-legal__button {
  appearance: none;
  min-height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--legal-blue);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.ttc-legal__button:hover {
  opacity: 0.65;
}

.ttc-legal__button--secondary {
  color: var(--legal-muted);
}

.ttc-legal__button[disabled] {
  cursor: wait;
  opacity: 0.45;
}

.ttc-legal__review {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 10px 24px;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--legal-line);
  border-bottom: 1px solid var(--legal-line);
}

.ttc-legal__review dt {
  color: var(--legal-muted);
  text-transform: uppercase;
}

.ttc-legal__review dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ttc-legal__success,
.ttc-legal__error {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--legal-line);
}

.ttc-legal__success {
  color: var(--legal-ink);
}

.ttc-legal__error {
  color: var(--legal-red);
}

.ttc-legal__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.ttc-legal__fineprint {
  margin-top: 18px;
  color: var(--legal-muted);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

@media (max-width: 749px) {
  .ttc-legal {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .ttc-legal__mast {
    min-height: 156px;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
    padding: 24px 16px;
  }

  .ttc-legal__mast-meta {
    justify-items: start;
    text-align: left;
  }

  .ttc-legal__row {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 28px 16px 34px;
  }

  .ttc-legal__facts,
  .ttc-legal__review,
  .ttc-legal__field-grid {
    grid-template-columns: 1fr;
  }

  .ttc-legal__facts dt:not(:first-child),
  .ttc-legal__review dt:not(:first-child) {
    margin-top: 9px;
  }

  .ttc-legal__field--full {
    grid-column: auto;
  }

  .ttc-legal__status {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ttc-legal *,
  .ttc-legal *::before,
  .ttc-legal *::after {
    scroll-behavior: auto !important;
  }
}

html,body{margin:0;min-height:100%;background:#f1f1f1;}
