
/* Legal center + consent UI */
.legal-missing {
  display: inline;
  color: #9a3412;
  background: #fff7ed;
  border: 1px dashed #fdba74;
  border-radius: .45rem;
  padding: .08rem .35rem;
  font-weight: 700;
}

.legal-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 5%, rgba(34,181,115,.10), transparent 28rem),
    radial-gradient(circle at 90% 15%, rgba(142,124,203,.08), transparent 26rem),
    #f7f9f8;
}

.legal-hero {
  background:
    radial-gradient(circle at 18% 20%, rgba(34,181,115,.18), transparent 26rem),
    radial-gradient(circle at 85% 0%, rgba(142,124,203,.14), transparent 24rem),
    #101923;
}

.legal-copy {
  color: #475569;
  font-size: 1rem;
  line-height: 1.8;
}

.legal-copy h2 {
  margin-top: 2.5rem;
  margin-bottom: .85rem;
  color: #18212b;
  font-size: 1.55rem;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -.025em;
}

.legal-copy h3 {
  margin-top: 1.65rem;
  margin-bottom: .6rem;
  color: #24303d;
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 850;
}

.legal-copy p {
  margin: .75rem 0;
}

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

.legal-copy ul { list-style: disc; }
.legal-copy ol { list-style: decimal; }

.legal-copy li {
  margin: .45rem 0;
  padding-left: .2rem;
}

.legal-copy a {
  color: #137b50;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(19,123,80,.25);
  text-underline-offset: 3px;
}

.legal-copy strong {
  color: #24303d;
}

.legal-note,
.legal-warning,
.legal-info {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  font-size: .92rem;
  line-height: 1.65;
}

.legal-note {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.legal-warning {
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.legal-info {
  border: 1px solid #ddd6fe;
  background: #f5f3ff;
  color: #5b21b6;
}

.legal-card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .legal-card-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

.legal-card {
  display: block;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 12px 35px rgba(15,23,42,.045);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: inherit;
  text-decoration: none;
}

.legal-card:hover {
  transform: translateY(-2px);
  border-color: #bbf7d0;
  box-shadow: 0 18px 42px rgba(15,23,42,.07);
}

.legal-card h3 {
  margin: 0;
  color: #18212b;
  font-size: 1rem;
  font-weight: 900;
}

.legal-card p {
  margin: .5rem 0 0;
  color: #64748b;
  font-size: .88rem;
  line-height: 1.55;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
}

.legal-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: .88rem;
}

.legal-table th,
.legal-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
  text-align: left;
}

.legal-table th {
  background: #f8fafc;
  color: #334155;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.legal-table td {
  color: #64748b;
  line-height: 1.55;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-empty {
  padding: 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: .8rem;
  background: #f8fafc;
  color: #64748b;
}

.legal-empty code {
  color: #6754a7;
  font-weight: 700;
}

.legal-toc a {
  display: block;
  padding: .48rem .7rem;
  border-radius: .65rem;
  color: #64748b;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}

.legal-toc a:hover {
  color: #137b50;
  background: #f0fdf4;
}

.legal-request-form label > span {
  display: block;
  margin-bottom: .45rem;
  color: #334155;
  font-size: .78rem;
  font-weight: 800;
}

.legal-request-form input,
.legal-request-form select,
.legal-request-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: .85rem;
  background: #fff;
  padding: .78rem .9rem;
  color: #18212b;
  outline: none;
  transition: border .15s ease, box-shadow .15s ease;
}

.legal-request-form input:focus,
.legal-request-form select:focus,
.legal-request-form textarea:focus {
  border-color: #22b573;
  box-shadow: 0 0 0 4px rgba(34,181,115,.10);
}

.legal-request-form textarea {
  resize: vertical;
}

.cookie-banner {
  position: fixed;
  z-index: 90;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 1.35rem;
  background: rgba(15,23,42,.97);
  box-shadow: 0 24px 80px rgba(2,6,23,.35);
  color: white;
  backdrop-filter: blur(18px);
}

.cookie-banner-inner {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
}

@media (min-width: 760px) {
  .cookie-banner-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 1.15rem 1.25rem;
  }
}

.cookie-banner p {
  margin: .3rem 0 0;
  color: #cbd5e1;
  font-size: .82rem;
  line-height: 1.55;
}

.cookie-banner a {
  color: #6fe0a9;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.cookie-btn {
  min-height: 2.55rem;
  border-radius: .8rem;
  padding: .65rem .9rem;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  color: white;
  font-size: .78rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}

.cookie-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.095);
}

.cookie-btn-primary {
  border-color: transparent;
  background: #22b573;
}

.cookie-btn-primary:hover {
  background: #1da668;
}

.cookie-overlay {
  position: fixed;
  z-index: 94;
  inset: 0;
  background: rgba(2,6,23,.64);
  backdrop-filter: blur(3px);
}

.cookie-modal {
  position: fixed;
  z-index: 95;
  left: 50%;
  top: 50%;
  width: min(calc(100% - 2rem), 660px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid #e2e8f0;
  border-radius: 1.6rem;
  background: #fff;
  box-shadow: 0 30px 100px rgba(2,6,23,.35);
}

.cookie-modal-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #eef2f7;
  background: rgba(255,255,255,.96);
  padding: 1.15rem 1.25rem;
  backdrop-filter: blur(12px);
}

.cookie-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid #eef2f7;
}

.cookie-category:last-child {
  border-bottom: 0;
}

.cookie-category h4 {
  margin: 0;
  color: #18212b;
  font-size: .9rem;
  font-weight: 900;
}

.cookie-category p {
  margin: .3rem 0 0;
  color: #64748b;
  font-size: .8rem;
  line-height: 1.5;
}

.consent-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.1rem;
  border-radius: 999px;
  background: #f1f5f9;
  padding: .35rem .55rem;
  color: #64748b;
  font-size: .7rem;
  font-weight: 900;
}

.consent-status[data-enabled="true"] {
  background: #e9f8f1;
  color: #137b50;
}

.cookie-switch {
  position: relative;
  width: 2.9rem;
  height: 1.7rem;
  flex: 0 0 auto;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  transition: background .2s ease;
}

.cookie-switch span::after {
  content: "";
  position: absolute;
  top: .2rem;
  left: .2rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  background: white;
  box-shadow: 0 2px 7px rgba(15,23,42,.18);
  transition: transform .2s ease;
}

.cookie-switch input:checked + span {
  background: #22b573;
}

.cookie-switch input:checked + span::after {
  transform: translateX(1.2rem);
}

.cookie-switch input:focus-visible + span {
  outline: 3px solid rgba(34,181,115,.2);
  outline-offset: 2px;
}

.cookie-switch-fixed span {
  background: #22b573;
  cursor: default;
}

.cookie-switch-fixed span::after {
  transform: translateX(1.2rem);
}

@media (prefers-reduced-motion: reduce) {
  .legal-card,
  .cookie-btn,
  .cookie-switch span,
  .cookie-switch span::after {
    transition: none !important;
  }
}
