.legal-layout { gap: clamp(.75rem, 2vh, 1.35rem); }

.legal-phone-shell { aspect-ratio: .51; }

.legal-screen {
  position: relative;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 96px 20px 24px;
  background:
    radial-gradient(circle at 50% 18%, rgba(185, 75, 23, .16), transparent 46%),
    #030303;
}

.legal-page-title {
  position: absolute;
  z-index: 7;
  top: 22px;
  right: 18px;
  left: 18px;
  margin: 0;
  color: #d8ad68;
  font-size: .91rem;
  font-weight: 800;
  letter-spacing: .24em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}

.legal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 3px 8px 84px;
  color: #916d45;
  font-size: .57rem;
  line-height: 1.52;
  scrollbar-color: #a16f34 #17100b;
  scrollbar-width: thin;
  text-align: left;
  -webkit-overflow-scrolling: touch;
}

.legal-scroll::-webkit-scrollbar { width: 5px; }
.legal-scroll::-webkit-scrollbar-track { background: #17100b; }
.legal-scroll::-webkit-scrollbar-thumb { border-radius: 999px; background: #a16f34; }

.legal-brand {
  margin: 0 0 9px;
  color: #916d45;
  font-size: .54rem;
  font-weight: 800;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.legal-scroll section:first-of-type { margin-top: 6px; }
.legal-scroll section { margin-top: 18px; }

.legal-scroll h2 {
  margin: 0 0 8px;
  color: #916d45;
  font-size: .57rem;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.legal-scroll p { margin: 0 0 9px; }

.legal-note {
  padding: 10px 12px;
  border-left: 2px solid #b67b35;
  color: #916d45;
  background: rgba(96, 46, 18, .13);
}

.placeholder { color: #916d45; }

.legal-page-label {
  margin: -.2rem 0 0;
  color: #c5a16a;
  font-size: clamp(.64rem, 1.4vw, .78rem);
  font-weight: 700;
  letter-spacing: .38em;
  text-transform: uppercase;
}

.legal-back {
  position: absolute;
  z-index: 8;
  top: 55px;
  left: 17px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: .73rem 1.09rem .67rem 1.04rem;
  border: 1px solid rgba(225, 180, 108, .38);
  border-radius: 999px;
  color: #d5ae70;
  background: rgba(20, 12, 7, .7);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .35);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1;
  text-decoration: none;
}

.legal-back::before {
  width: 9px;
  height: 9px;
  display: block;
  border-bottom: 2px solid #e9bd70;
  border-left: 2px solid #e9bd70;
  border-radius: 1px;
  content: "";
  filter: drop-shadow(0 0 3px rgba(239, 181, 91, .42));
  transform: rotate(45deg);
}

.legal-back:hover,
.legal-back:focus-visible,
.legal-secondary-link:hover,
.legal-secondary-link:focus-visible {
  border-color: rgba(243, 205, 141, .75);
  color: #f2cf91;
  background: rgba(105, 54, 20, .32);
}

.legal-secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .73rem 1.09rem .67rem;
  border: 1px solid rgba(225, 180, 108, .38);
  border-radius: 999px;
  color: #d5ae70;
  background: rgba(20, 12, 7, .7);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1;
  text-decoration: none;
}

.legal-impressum-link {
  z-index: 9;
  display: block;
  opacity: 1;
}

@media (max-width: 380px) {
  .legal-screen { padding-right: 14px; padding-left: 14px; }
  .legal-scroll { font-size: .57rem; }
}
