/* Swanatronics legal page theme extension. Loaded after /styles.css. */

.legal-body {
  background:
    radial-gradient(circle at top, rgba(94, 199, 255, 0.12), transparent 30rem),
    linear-gradient(180deg, #070a0e 0%, #0b1118 48%, #070a0e 100%);
}

.legal-shell {
  overflow: visible;
}

.legal-main {
  padding-top: clamp(54px, 7vh, 90px);
  padding-bottom: clamp(64px, 8vh, 104px);
}

.legal-panel,
.legal-section,
.legal-notice,
.legal-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: rgba(16, 24, 33, 0.78);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.legal-panel::before,
.legal-section::before,
.legal-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  opacity: 0.9;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(94, 199, 255, 0.12), transparent 18rem);
}

.legal-sentinel .legal-panel::before,
.legal-sentinel .legal-section::before,
.legal-sentinel .legal-card::before {
  background: radial-gradient(circle at top right, rgba(230, 57, 70, 0.16), transparent 18rem);
}

.legal-cygnature .legal-panel::before,
.legal-cygnature .legal-section::before,
.legal-cygnature .legal-card::before {
  background: radial-gradient(circle at top right, rgba(155, 93, 229, 0.16), transparent 18rem);
}


.legal-panel > *,
.legal-section > *,
.legal-card > *,
.legal-notice > * {
  position: relative;
  z-index: 1;
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  align-items: stretch;
  gap: 22px;
  min-height: auto;
  padding: clamp(26px, 4vw, 44px);
}

.legal-hero-copy h1 {
  max-width: 880px;
  margin-bottom: 0;
  font-size: clamp(2.45rem, 7vw, 5.4rem);
}

.legal-subtitle {
  max-width: 820px;
  margin-top: 18px;
  color: var(--text-soft);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.76;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.legal-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.88rem;
  font-weight: 700;
}

.legal-actions {
  margin-top: 28px;
}

.button-ghost {
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.button-ghost:hover,
.button-ghost.is-current {
  color: #04121d;
  border-color: transparent;
  background: var(--gradient-blue);
  box-shadow: 0 0 18px rgba(32, 168, 255, 0.24);
}

.legal-sentinel .button-ghost:hover,
.legal-sentinel .button-ghost.is-current {
  color: #fff;
  background: var(--gradient-sentinel);
  box-shadow: var(--shadow-sentinel);
}

.legal-cygnature .button-ghost:hover,
.legal-cygnature .button-ghost.is-current {
  color: #fff;
  background: var(--gradient-cygnature);
  box-shadow: var(--shadow-cygnature);
}

.legal-hero-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  min-height: 240px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02)),
    rgba(0, 0, 0, 0.22);
}

.legal-hero-card h2 {
  margin: 0;
  font-family: var(--font-swan);
  font-size: clamp(1.35rem, 2vw, 2rem);
  text-transform: uppercase;
}

.legal-hero-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.legal-badge {
  align-self: flex-start;
}

.legal-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 28px;
}

.legal-page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(7, 10, 14, 0.44);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.legal-page-nav a:hover,
.legal-page-nav a:focus-visible {
  color: var(--text-primary);
  border-color: var(--border-bright);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-1px);
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-section,
.legal-notice {
  padding: clamp(22px, 4vw, 34px);
}

.legal-notice {
  border-color: rgba(94, 199, 255, 0.28);
  background:
    radial-gradient(circle at top left, rgba(94, 199, 255, 0.08), transparent 18rem),
    rgba(16, 24, 33, 0.74);
  color: var(--text-soft);
}

.legal-sentinel .legal-notice {
  border-color: rgba(230, 57, 70, 0.3);
  background:
    radial-gradient(circle at top left, rgba(230, 57, 70, 0.1), transparent 18rem),
    rgba(16, 24, 33, 0.74);
}

.legal-cygnature .legal-notice {
  border-color: rgba(155, 93, 229, 0.32);
  background:
    radial-gradient(circle at top left, rgba(155, 93, 229, 0.1), transparent 18rem),
    rgba(16, 24, 33, 0.74);
}

.legal-notice strong {
  color: var(--swan-accent);
}

.legal-sentinel .legal-notice strong { color: var(--sentinel-1); }
.legal-cygnature .legal-notice strong { color: var(--cyg-1); }

.legal-section h2,
.legal-card h2,
.legal-section h3,
.legal-card h3 {
  margin-top: 0;
}

.legal-section h2,
.legal-card h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.18;
}

.legal-section h3,
.legal-card h3 {
  margin-top: 24px;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.35;
}

.legal-section p,
.legal-section li,
.legal-card p,
.legal-card li {
  color: var(--text-soft);
  line-height: 1.78;
}

.legal-section p + p,
.legal-card p + p {
  margin-top: 12px;
}

.legal-section ul,
.legal-card ul {
  margin-top: 12px;
  padding-left: 1.25rem;
}

.legal-section li + li,
.legal-card li + li {
  margin-top: 8px;
}

.legal-section a,
.legal-card a,
.legal-notice a {
  color: var(--text-primary);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(94, 199, 255, 0.42);
  transition: border-color 0.18s ease, color 0.18s ease, text-shadow 0.18s ease;
}

.legal-section a:hover,
.legal-card a:hover,
.legal-notice a:hover,
.legal-section a:focus-visible,
.legal-card a:focus-visible,
.legal-notice a:focus-visible {
  color: var(--swan-accent);
  border-bottom-color: var(--swan-accent);
  text-shadow: 0 0 18px rgba(94, 199, 255, 0.28);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.legal-card {
  padding: 20px;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.mix-title {
  background: linear-gradient(135deg, #ffffff 0%, #b8e7ff 35%, #5ec7ff 55%, #f8fafc 74%, #4b5563 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}




@media (max-width: 920px) {
  .legal-hero {
    grid-template-columns: 1fr;
  }

  .legal-hero-card {
    min-height: 180px;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .legal-main {
    width: min(var(--max-width), calc(100% - 24px));
    padding-top: 32px;
  }

  .legal-hero,
  .legal-section,
  .legal-notice {
    padding: 20px;
  }

  .legal-meta,
  .legal-actions,
  .legal-page-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .legal-actions .button,
  .legal-page-nav a {
    width: 100%;
    justify-content: center;
  }
}
