/* v13.1: clearer legal frames and restrained depth, keeping the v13 layout. */

.legal-teaser {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  max-width: 650px;
  margin: 0 0 24px;
  padding: 17px 19px;
  border: 2px solid #b58a55;
  border-left: 4px solid var(--orange);
  border-radius: 18px;
  color: var(--petrol);
  background: linear-gradient(120deg, #fffaf2, #f9fcf8);
  box-shadow: 0 8px 22px rgba(18, 62, 64, .08);
}
.legal-teaser::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px solid rgba(230, 135, 35, .65);
  border-radius: inherit;
  box-shadow: 0 0 0 4px rgba(230, 135, 35, .07), 0 8px 24px rgba(230, 135, 35, .12);
  opacity: 0;
  pointer-events: none;
}
.legal-teaser__symbol {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 40px;
  border: 1px solid rgba(155, 74, 5, .13);
  border-radius: 11px;
  color: #9b4a05;
  background: #fff0da;
  font: 26px/1 Georgia, "Times New Roman", serif;
}
.legal-teaser__body { display: grid; gap: 7px; min-width: 0; }
.legal-teaser__body > strong {
  color: #111;
  font-size: clamp(1.125rem, 1.32vw, 1.1875rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -.01em;
}
.legal-teaser__body > span { font-size: .9375rem; line-height: 1.45; }
.legal-teaser__body > #legal-teaser-description { color: var(--ink-soft); }
.legal-teaser__action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 1px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(18, 62, 64, .3);
  text-underline-offset: 4px;
}
.legal-teaser:focus-visible {
  outline: 3px solid var(--orange-deep);
  outline-offset: 4px;
}
.legal-teaser .icon-arrow,
#legal .icon-arrow { flex: 0 0 16px; }

#legal .legal__content { padding-top: 62px; border-top: 1px solid var(--line); }
#legal .legal__heading { max-width: 860px; margin-bottom: 34px; }
#legal .legal__heading > p {
  max-width: 800px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.legal-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.legal-option {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 29px;
  border: 2px solid #7f9b91;
  border-top: 4px solid var(--orange);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, #fafbf8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 26px rgba(18, 62, 64, .07);
}
.legal-option__label {
  display: block;
  margin-bottom: 14px;
  color: #9b4a05;
  font-size: .8125rem;
  line-height: 1.4;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.legal-option h3 {
  margin: 0 0 18px;
  color: var(--petrol);
  font-size: 1.375rem;
  line-height: 1.35;
  font-weight: 800;
}
.legal-option > p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}
.legal-limits {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 20px;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid #9ab2a6;
  border-radius: 16px;
  background: var(--mist);
}
.legal-limit { min-width: 0; }
.legal-limit:first-child { grid-column: 1; grid-row: 1; }
.legal-limit:last-child { grid-column: 2; grid-row: 1; }
.legal-limit strong { display: block; color: var(--petrol); font-size: 1.125rem; line-height: 1.4; white-space: nowrap; }
.legal-limit > span { display: block; margin-top: 4px; color: var(--ink-soft); font-size: .875rem; line-height: 1.4; }
.legal-limits__join {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 4px;
  color: #9b4a05;
  font-size: .8125rem;
  line-height: 1.4;
  font-weight: 750;
}
.legal-option > .legal-option__check { font-size: .9375rem; }
.legal-option__source { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.legal-option__source > span { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: .8125rem; line-height: 1.4; }
.legal-option__source > a,
.legal__authority {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--petrol);
  font-size: .9375rem;
  line-height: 1.5;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(18, 62, 64, .3);
  text-underline-offset: 4px;
}
.legal-option__source > a:hover,
.legal__authority:hover { text-decoration-color: var(--orange-deep); }
.legal__conditions {
  margin-top: 26px;
  padding: 20px 24px 20px 25px;
  border: 2px solid #95aba2;
  border-left: 4px solid var(--orange);
  border-radius: 18px;
  background: #ecf0eb;
  box-shadow: 0 7px 20px rgba(18, 62, 64, .04);
}
.legal__conditions h3 { margin: 0 0 8px; color: var(--petrol); font-size: 1.0625rem; line-height: 1.4; }
.legal__conditions p { max-width: 1010px; margin: 0 0 8px; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.legal__conditions strong { color: var(--petrol); }
.legal__more { margin-top: 20px; color: var(--ink-soft); }
.legal__more summary { width: fit-content; max-width: 100%; min-height: 44px; padding: 10px 0; font-size: .9375rem; line-height: 1.5; cursor: pointer; }
.legal__more summary::marker { color: var(--orange-deep); }
.legal__more .legal-links { max-width: 860px; margin: 4px 0 20px; }
.legal__more .legal-links a { align-items: center; font-size: .9375rem; }
.legal__actions { margin-top: 24px; }
#contact-person { scroll-margin-top: 12px; }

@keyframes legal-teaser-glow {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
@media screen and (min-width: 1041px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .legal-teaser { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
  .hero__copy.is-visible .legal-teaser::after { animation: legal-teaser-glow 2.2s ease-in-out .75s 2; }
  .legal-teaser:hover {
    transform: translateY(-2px);
    border-color: #93672f;
    border-left-color: var(--orange-deep);
    box-shadow: 0 12px 28px rgba(18, 62, 64, .14);
  }
  #legal .legal-options > .legal-option,
  #legal .legal__conditions {
    transition:
      opacity .65s ease,
      transform .65s ease,
      translate .3s ease,
      scale .3s ease,
      box-shadow .3s ease,
      border-color .3s ease;
  }
  #legal .legal-options > .legal-option.is-visible:hover {
    translate: 0 -4px;
    scale: 1.008;
    border-color: #52756b;
    border-top-color: var(--orange-deep);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 18px 36px rgba(18, 62, 64, .13);
  }
  #legal .legal__conditions.is-visible:hover {
    translate: 0 -3px;
    border-color: #6d8b7d;
    border-left-color: var(--orange-deep);
    box-shadow: 0 16px 32px rgba(18, 62, 64, .09);
  }
}
@media (max-width: 1040px) {
  .legal-option { padding: 23px; }
  .legal-limits { gap: 8px 14px; padding: 14px; }
  .legal-limit strong { font-size: 1rem; }
}
@media (max-width: 820px) {
  #legal .legal__content { padding-top: 40px; }
  #legal .legal__heading { margin-bottom: 28px; }
  .legal-options { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .legal-limit strong { font-size: 1.125rem; }
}
@media (max-width: 560px) {
  .legal-teaser { gap: 12px; padding: 15px; border-radius: 16px; }
  .legal-teaser__symbol { flex-basis: 30px; width: 30px; height: 36px; font-size: 24px; }
  .legal-teaser__body > strong { font-size: 1.125rem; }
  .legal-teaser__body > .legal-teaser__action { font-size: .875rem; }
  #legal .legal__heading > p { margin-top: 20px; font-size: 1rem; }
  .legal-option { padding: 23px 19px; border-radius: 22px; }
  .legal-option h3 { font-size: 1.25rem; }
  .legal-limits { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .legal-limit:first-child,
  .legal-limit:last-child,
  .legal-limits__join { grid-column: auto; grid-row: auto; }
  .legal-limits__join { margin: 0; }
  .legal-limit strong { font-size: 1.125rem; }
  .legal__conditions { padding: 18px 18px 18px 19px; }
  .legal__actions .button { width: 100%; text-align: center; }
}
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .legal-teaser,
  .legal-teaser::after,
  #legal .reveal,
  #legal .legal__actions .button { animation: none; transition: none; }
  .legal-teaser,
  #legal .reveal,
  #legal .legal__actions .button:hover { transform: none; }
  #legal .reveal { opacity: 1; }
}
@media print {
  .legal-teaser, .legal__actions { display: none; }
  #legal .legal__content { padding-top: 24px; }
  .legal-options { grid-template-columns: minmax(0, 1fr); }
  .legal-option, .legal__conditions { break-inside: avoid; border-color: #777; background: #fff; box-shadow: none; }
  .legal-limits { border-color: #777; background: #fff; }
  #legal h3, #legal p, #legal a, #legal strong, #legal span { color: #000; }
}
