/* === LEGAL PAGE STYLES (privacy notice, user agreement, AUP, SLA) === */

/* Hero */
.legal-hero {
  padding: 100px 0 40px;
  text-align: center;
}

.legal-hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.legal-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}

.legal-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.15);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 0.9rem;
}

.legal-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.5rem;
}

.legal-meta a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
}

.legal-lang {
  display: inline-flex;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 999px;
  overflow: hidden;
}

/* Links on pages with a URL per language; tab buttons on single-URL pages */
.legal-lang a,
.legal-lang button {
  display: inline-block;
  padding: 0.45rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: 0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.legal-lang a:hover,
.legal-lang button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.legal-lang a[aria-current="page"],
.legal-lang button.active {
  background: #2563eb;
  color: #fff;
}

/* Language tabs and print button under the badge */
.legal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.legal-hero-actions .legal-btn-outline {
  padding: 0.45rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Layout: sticky TOC + body */
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding-top: 40px;
  padding-bottom: 60px;
}

.legal-toc {
  display: none;
}

.legal-mobile-toc {
  background: rgba(30, 41, 59, 0.4);
  border-radius: 16px;
  padding: 0.9rem 1.25rem;
  margin-bottom: 2rem;
}

.legal-mobile-toc summary {
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

.legal-mobile-toc ol {
  margin: 0.85rem 0 0.25rem;
  padding-left: 1.25rem;
}

.legal-mobile-toc li {
  margin-bottom: 0.45rem;
}

.legal-mobile-toc a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.legal-mobile-toc a:hover {
  color: #93c5fd;
}

@media (min-width: 992px) {
  .legal-layout {
    grid-template-columns: 264px minmax(0, 1fr);
  }

  .legal-toc {
    display: block;
  }

  .legal-mobile-toc {
    display: none;
  }
}

.legal-toc-inner {
  position: sticky;
  top: calc(var(--falix-nav-height, 84px) + 80px);
  max-height: calc(100vh - var(--falix-nav-height, 84px) - 104px);
  overflow-y: auto;
  padding-right: 0.5rem;
}

.legal-toc-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
  padding-left: 1rem;
}

.legal-toc .nav-link {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.4rem 1rem;
  border-radius: 10px;
  line-height: 1.35;
}

.legal-toc .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.legal-toc .nav-link.active {
  color: #fff;
  background: rgba(37, 99, 235, 0.22);
}

.legal-toc-addenda {
  margin-top: 1.1rem;
}

/* Sections */
.legal-body {
  min-width: 0;
}

.legal-section {
  scroll-margin-top: calc(var(--falix-nav-height, 84px) + 48px);
  margin-bottom: 3.25rem;
}

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

.legal-h2 {
  display: flex;
  align-items: center;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.1rem;
  line-height: 1.3;
}

.legal-h2-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  background: rgba(74, 144, 226, 0.12);
  border-radius: 12px;
  margin-right: 0.65rem;
}

.legal-h2-icon i {
  color: #4A90E2;
  font-size: 1rem;
}

.legal-anchor {
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  font-weight: 400;
  margin-left: 0.4rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.legal-h2:hover .legal-anchor,
.legal-anchor:focus {
  opacity: 1;
}

@media (hover: none) {
  .legal-anchor {
    opacity: 0.5;
  }
}

.legal-anchor:hover {
  color: #93c5fd;
}

.legal-h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin: 1.75rem 0 0.75rem;
}

.legal-h2 + .legal-h3 {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  font-size: 0.97rem;
}

.legal-body p {
  margin-bottom: 0.9rem;
}

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

.legal-body li {
  margin-bottom: 0.45rem;
}

.legal-body a {
  color: #2563eb;
  text-decoration: none;
}

.legal-body a:hover {
  color: #93c5fd;
}

.legal-body a.legal-btn,
.legal-body a.legal-btn:hover {
  color: #fff;
}

.legal-body a.legal-btn-outline {
  color: rgba(255, 255, 255, 0.85);
}

.legal-body a.legal-btn-outline:hover {
  color: #fff;
}

.legal-body strong {
  color: #fff;
}

/* "In short" callout */
.legal-inshort {
  background: rgba(37, 99, 235, 0.1);
  border-radius: 14px;
  padding: 0.95rem 1.25rem;
  margin-bottom: 1.4rem;
}

.legal-inshort-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 0.3rem;
}

.legal-inshort-label i {
  margin-right: 0.35rem;
}

.legal-mobile-toc summary i,
.legal-btn i,
.legal-btn-outline i {
  margin-right: 0.45rem;
}

.legal-inshort p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

/* Tables */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

/* Wide tables scroll sideways on phones instead of squashing their columns */
.table-responsive > .legal-table {
  min-width: 640px;
}

.legal-table th {
  text-align: left;
  font-weight: 600;
  color: #fff;
  background: rgba(30, 41, 59, 0.9);
  padding: 0.75rem 0.9rem;
}

.legal-table th:first-child {
  border-radius: 10px 0 0 10px;
}

.legal-table th:last-child {
  border-radius: 0 10px 10px 0;
}

.legal-table td {
  color: rgba(255, 255, 255, 0.75);
  padding: 0.75rem 0.9rem;
  vertical-align: top;
  line-height: 1.55;
}

.legal-table tbody tr:nth-child(even) {
  background: rgba(30, 41, 59, 0.35);
}

/* Partner / processor grid */
.legal-partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}

.legal-partner {
  background: rgba(30, 41, 59, 0.4);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.legal-partner h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
}

.legal-partner h4 i {
  color: #4A90E2;
  font-size: 0.85rem;
  margin-right: 0.4rem;
}

.legal-partner p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.legal-partner a {
  font-size: 0.8rem;
}

/* Addenda */
.legal-addendum {
  background: rgba(30, 41, 59, 0.3);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
}

/* Buttons */
.legal-btn {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.legal-btn:hover {
  background: #1d4ed8;
  color: #fff;
}

.legal-btn-outline {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.65rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.legal-btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Closing CTA */
.legal-cta {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}

.legal-cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.legal-cta p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.4rem;
}

.legal-cta-address {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 1.4rem 0 0;
}

/* Back to top */
.legal-totop {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(30, 41, 59, 0.9);
  color: #fff;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1030;
}

.legal-totop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.legal-totop:hover {
  background: #2563eb;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 767px) {
  .legal-hero {
    padding: 80px 0 30px;
  }

  .legal-hero-title {
    font-size: 1.75rem;
  }

  .legal-cta {
    padding: 1.75rem;
  }
}

/* Print / Save as PDF: plain black-on-white document, page chrome removed */
@media print {
  @page {
    size: A4;
    margin: 16mm 15mm 18mm;
  }

  html,
  body {
    background: #fff !important;
    color: #111827 !important;
    color-scheme: light;
  }

  body {
    padding-top: 0 !important;
  }

  #falix-shell,
  body > footer,
  .legal-hero-subtitle,
  .legal-meta,
  .legal-lang,
  .legal-hero-actions,
  .legal-toc,
  .legal-mobile-toc,
  .legal-h2-icon,
  .legal-anchor,
  .legal-totop,
  .legal-cta i {
    display: none !important;
  }

  #main-content,
  .legal-hero .container,
  .legal-layout {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .legal-layout {
    display: block;
  }

  .legal-hero {
    padding: 0 0 7mm;
    margin-bottom: 8mm;
    border-bottom: 1px solid #d1d5db;
    text-align: left;
  }

  .legal-hero-title {
    margin: 0 0 2mm;
    color: #111827;
    font-size: 23pt;
    line-height: 1.2;
  }

  .legal-badge {
    margin: 0;
    padding: 0;
    background: none;
    color: #4b5563;
    font-size: 9.5pt;
  }

  .legal-section {
    margin-bottom: 7mm;
  }

  .legal-h2 {
    display: block;
    margin: 0 0 2.5mm;
    color: #111827;
    font-size: 13pt;
    break-after: avoid-page;
  }

  .legal-h3,
  .legal-partner h4 {
    margin: 4mm 0 1.5mm;
    color: #111827;
    font-size: 11pt;
    break-after: avoid-page;
  }

  .legal-body p,
  .legal-body li,
  .legal-inshort p,
  .legal-partner p,
  .legal-table td {
    color: #1f2937;
    font-size: 10.5pt;
    line-height: 1.5;
  }

  .legal-body p,
  .legal-body ul,
  .legal-body ol {
    margin-bottom: 3mm;
    orphans: 3;
    widows: 3;
  }

  .legal-body ul,
  .legal-body ol {
    padding-left: 6mm;
  }

  .legal-body li {
    margin-bottom: 1.5mm;
  }

  .legal-body strong,
  .legal-body a,
  .legal-body a:hover {
    color: #111827;
  }

  a,
  a:hover {
    text-decoration: underline;
  }

  .legal-inshort {
    padding: 0 0 0 4mm;
    border-left: 2px solid #d1d5db;
    border-radius: 0;
    background: none;
  }

  .legal-inshort-label {
    color: #4b5563;
  }

  .legal-partner-grid {
    display: block;
  }

  .legal-partner,
  .legal-addendum {
    padding: 0;
    background: none;
  }

  .table-responsive {
    overflow: visible;
  }

  .table-responsive > .legal-table {
    min-width: 0;
  }

  .legal-table th {
    color: #111827;
    background: none;
    border-bottom: 1px solid #d1d5db;
  }

  .legal-table tbody tr:nth-child(even) {
    background: none;
  }

  .legal-cta {
    margin-top: 4mm;
    padding: 6mm 0 0;
    border-top: 1px solid #d1d5db;
    border-radius: 0;
    background: none;
    text-align: left;
    break-inside: avoid-page;
  }

  .legal-cta h2 {
    margin-bottom: 2mm;
    color: #111827;
    font-size: 13pt;
  }

  .legal-cta p {
    margin-bottom: 2.5mm;
    color: #1f2937;
  }

  .legal-cta .d-flex {
    display: block !important;
  }

  .legal-cta a.legal-btn,
  .legal-cta a.legal-btn-outline {
    display: inline;
    margin-right: 4mm;
    padding: 0;
    border-radius: 0;
    background: none;
    color: #111827;
    font-size: 10pt;
  }

  .legal-cta-address {
    margin-top: 3mm;
    font-size: 9pt;
  }
}
