/* Glassy Dev — shared legal page styles (matches glassydev.de/datenschutz) */
:root {
  color-scheme: dark;
  --background: #000000;
  --foreground: #e8e8ed;
  --muted: #a1a1aa;
  --silver: #c7c7cc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.gd-legal {
  margin: 0;
  min-height: 100dvh;
  background: var(--background);
  color: var(--foreground);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.gd-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 16px 16px 0;
}

@media (min-width: 640px) {
  .gd-header {
    padding: 16px 24px 0;
  }
}

.gd-header-inner {
  position: relative;
  isolation: isolate;
  display: flex;
  max-width: 72rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 1rem;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.07) 45%,
    rgba(255, 255, 255, 0.12) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 14px 48px rgba(0, 0, 0, 0.5);
}

.gd-header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.05) 30%,
    transparent 55%,
    rgba(255, 255, 255, 0.08) 100%
  );
  opacity: 0.85;
  z-index: -1;
}

.gd-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.gd-logo-icon {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 20px rgba(255, 255, 255, 0.08);
  color: var(--silver);
}

.gd-logo-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(
    110deg,
    #a1a1aa 0%,
    #ffffff 35%,
    #c7c7cc 50%,
    #ffffff 65%,
    #a1a1aa 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gd-shimmer 5s ease-in-out infinite;
}

@keyframes gd-shimmer {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.gd-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 768px) {
  .gd-nav {
    display: flex;
  }
}

.gd-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #d4d4d8;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.gd-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.gd-nav-cta {
  margin-left: 8px;
  padding: 8px 14px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.05) 42%,
    rgba(255, 255, 255, 0.09) 100%
  );
  color: #fff !important;
  font-weight: 500;
}

.gd-legal-main {
  position: relative;
  padding: 144px 16px 80px;
}

@media (min-width: 640px) {
  .gd-legal-main {
    padding: 160px 24px 80px;
  }
}

.gd-ambient {
  position: absolute;
  top: -40px;
  left: 33%;
  width: 224px;
  height: 224px;
  border-radius: 9999px;
  pointer-events: none;
  opacity: 0.2;
  filter: blur(90px);
  background: radial-gradient(
    circle,
    rgba(220, 220, 230, 0.55) 0%,
    rgba(180, 185, 200, 0.22) 42%,
    transparent 72%
  );
  animation: gd-glow-pulse 9s ease-in-out infinite;
}

@keyframes gd-glow-pulse {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(1.06);
  }
}

.gd-legal-card {
  position: relative;
  isolation: isolate;
  max-width: 48rem;
  margin: 0 auto;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.05) 42%,
    rgba(255, 255, 255, 0.09) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 10px 40px rgba(0, 0, 0, 0.45);
}

.gd-legal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.04) 28%,
    transparent 52%,
    rgba(255, 255, 255, 0.06) 100%
  );
  opacity: 0.7;
  z-index: -1;
}

@media (min-width: 640px) {
  .gd-legal-card {
    padding: 40px;
  }
}

.gd-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.gd-back:hover {
  color: #fff;
}

.gd-legal-body {
  font-size: 14px;
  line-height: 1.625;
  color: var(--muted);
}

.gd-legal-body > * + * {
  margin-top: 1.25rem;
}

.gd-legal-body h1 {
  margin: 0 0 2rem;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #fff;
}

.gd-legal-body h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #e4e4e7;
}

.gd-legal-body h3 {
  margin: 1rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #e4e4e7;
}

.gd-legal-body p {
  margin: 0;
}

.gd-legal-body a {
  color: #e4e4e7;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.gd-legal-body a:hover {
  color: #fff;
  text-decoration: underline;
}

.gd-legal-body ul,
.gd-legal-body ol {
  margin: 0;
  padding-left: 1.35rem;
}

.gd-legal-body li + li {
  margin-top: 0.35rem;
}

.gd-legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
  font-size: 13px;
}

.gd-legal-body th,
.gd-legal-body td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.gd-legal-body th {
  background: rgba(255, 255, 255, 0.06);
  color: #e4e4e7;
  font-weight: 500;
}

.gd-legal-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
}

.gd-legal-body blockquote {
  margin: 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  color: #a1a1aa;
}

.gd-legal-body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 1.5rem 0;
}

.gd-legal-body .meta {
  font-size: 13px;
  color: #71717a;
}

.gd-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px 16px;
}

@media (min-width: 640px) {
  .gd-footer {
    padding: 48px 24px;
  }
}

.gd-footer-inner {
  display: flex;
  max-width: 72rem;
  margin: 0 auto;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 640px) {
  .gd-footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.gd-footer p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.gd-footer a {
  color: #d4d4d8;
  text-decoration: none;
  transition: color 0.2s;
}

.gd-footer a:hover {
  color: #fff;
}

.gd-footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}
