/* Cookie banner, preferences dialog, legal page extras and the contact consent checkbox. Uses the site tokens. */
.consent {
  position: fixed;
  left: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 300;
  width: min(30rem, calc(100vw - 2rem));
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(8, 9, 12, 0.55);
  color: var(--ink);
}
.consent[hidden] { display: none; }
.consent h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 0.5rem; }
.consent p { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.55; margin-bottom: 1.1rem; }
.consent a, .prefs a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.consent__acts, .prefs__acts { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.prefs {
  width: min(34rem, calc(100vw - 2rem));
  margin: auto;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
}
.prefs::backdrop { background: rgba(8, 9, 12, 0.72); backdrop-filter: blur(6px); }
.prefs__card { padding: clamp(1.4rem, 3vw, 2rem); }
.prefs h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin-bottom: 0.7rem; }
.prefs p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; margin-bottom: 1rem; }
.prefs__row {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.85rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.prefs__row input { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; accent-color: var(--accent); }
.prefs__row b { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.prefs__row small { display: block; color: var(--ink-soft); font-size: 0.86rem; line-height: 1.5; }
.prefs__status:empty { display: none; }
.prefs__status { color: var(--accent-soft); }
.prefs__acts { justify-content: flex-end; margin-top: 0.4rem; }
.prefs__more { margin: 1.2rem 0 0; font-size: 0.85rem; }

@media (max-width: 560px) {
  .consent { left: 1rem; right: 1rem; width: auto; }
  .consent__acts .btn, .prefs__acts .btn { flex: 1 1 auto; justify-content: center; }
}

/* Legal pages */
.legal .prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; margin: 1.6rem 0 0.6rem; }
.legal .prose ul { list-style: disc; padding-left: 1.2rem; margin-bottom: 1rem; color: var(--ink-soft); }
.legal .prose li { margin-bottom: 0.45rem; padding-left: 0.2rem; }
.legal .prose address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.75;
  padding-left: 1rem;
  border-left: 2px solid var(--line-strong);
  margin-bottom: 1rem;
}
.legal .prose h2 { scroll-margin-top: 6rem; }
.legal-toc { margin-bottom: 1rem; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: 14px; }
.legal-toc .mono { margin-bottom: 0.8rem; }
.legal .legal-toc ul { list-style: none; padding: 0; columns: 2 14rem; margin: 0; }
.legal-table { overflow-x: auto; margin-bottom: 1rem; }
.legal-table table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.88rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 0.75rem 0.6rem; border-bottom: 1px solid var(--line); }
.legal-table th { color: var(--ink); font-weight: 600; }
.legal-table td { color: var(--ink-soft); }
.legal-table td:first-child { color: var(--ink); white-space: nowrap; }

/* Contact form: KVKK consent checkbox */
.field--check .check {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.85rem;
  font-family: var(--font-text);
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}
.field--check input[type="checkbox"] { width: 1.1rem; height: 1.1rem; padding: 0; margin-top: 0.2rem; accent-color: var(--accent); }
.field--check a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.field--check.is-invalid input[type="checkbox"] { outline: 2px solid #ff6b5e; outline-offset: 2px; }
