/* ============================================================
   assets/css/consent.css
   ─ Styles for the /consent gate page
   ─ Styles for the site-wide legal-link footer
   ─ Styles for the /tietosuoja and /kayttoehdot document pages
   ============================================================ */

/* ─── Consent gate page ───────────────────────────────────── */
.consent-page {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg, var(--surface));
}
.consent-card {
  max-width: 480px;
  width: 100%;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}
.consent-card h1 {
  font-size: 1.4rem;
  margin: 0 0 .5rem;
  font-weight: 800;
  color: var(--text, #18181b);
}
.consent-intro {
  color: var(--text2, #6b7280);
  margin: 0 0 1.5rem;
  font-size: .92rem;
  line-height: 1.5;
}
.consent-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.consent-row {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: .95rem;
  line-height: 1.45;
  color: var(--text, #18181b);
}
.consent-row input[type="checkbox"] {
  margin-top: .2rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--accent, #16a34a);
}
.consent-row a {
  color: var(--accent, #16a34a);
  text-decoration: underline;
  font-weight: 600;
}
.consent-form button[type="submit"] {
  margin-top: 1rem;
  padding: .75rem 1.25rem;
  background: var(--accent, #16a34a);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity .15s ease, transform .12s ease;
}
.consent-form button[type="submit"]:hover:not(:disabled) {
  filter: brightness(1.05);
}
.consent-form button[type="submit"]:active:not(:disabled) {
  transform: translateY(1px);
}
.consent-form button[type="submit"]:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.consent-logout {
  text-align: center;
  font-size: .85rem;
  color: var(--text2, #6b7280);
  text-decoration: none;
  margin-top: .25rem;
  padding: .5rem 0;
}
.consent-logout:hover {
  text-decoration: underline;
  color: var(--text, #18181b);
}

/* ─── Site-wide legal links footer ────────────────────────── */
.site-footer {
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: .82rem;
  color: var(--text2, #6b7280);
  border-top: 1px solid var(--border, #e5e7eb);
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--text2, #6b7280);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--accent, #16a34a);
  text-decoration: underline;
}
.site-footer-sep { opacity: .4; }
.footer-version {
  opacity: .5;
  font-family: 'DM Mono', 'SF Mono', monospace;
  font-size: .76rem;
}

/* ─── Legal document pages (/tietosuoja, /kayttoehdot) ────── */
.legal-doc-page {
  padding: 1.5rem 1rem 2rem;
}
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 2rem 2rem 2.5rem;
  line-height: 1.6;
  color: var(--text, #18181b);
}
.legal-doc-head { margin-bottom: 1.5rem; }
.legal-doc-back {
  display: inline-block;
  font-size: .85rem;
  color: var(--text2, #6b7280);
  text-decoration: none;
  margin-bottom: .75rem;
}
.legal-doc-back:hover {
  color: var(--accent, #16a34a);
  text-decoration: underline;
}
.legal-doc h1 {
  font-size: 1.7rem;
  margin: 0 0 .35rem;
  font-weight: 800;
}
.legal-doc-meta {
  color: var(--text3, #9ca3af);
  font-size: .82rem;
  margin: 0 0 1.5rem;
}
.legal-doc h2 {
  font-size: 1.05rem;
  margin: 1.75rem 0 .5rem;
  color: var(--text, #18181b);
  font-weight: 700;
}
.legal-doc section { margin-bottom: .25rem; }
.legal-doc p,
.legal-doc li {
  font-size: .94rem;
  color: var(--text, #18181b);
}
.legal-doc ul {
  margin: .5rem 0;
  padding-left: 1.25rem;
}
.legal-doc ul li { margin-bottom: .25rem; }
.legal-doc a {
  color: var(--accent, #16a34a);
  text-decoration: underline;
}

/* Placeholder spans used wherever company-specific text isn't filled in yet */
.legal-doc .placeholder {
  display: inline-block;
  padding: .05em .35em;
  background: color-mix(in srgb, var(--warn, #f59e0b) 18%, transparent);
  color: var(--text, #18181b);
  border-radius: 3px;
  font-family: 'DM Mono', 'SF Mono', monospace;
  font-size: .85em;
  font-weight: 600;
}
@supports not (color: color-mix(in srgb, red, blue)) {
  .legal-doc .placeholder { background: #fde68a; }
}

/* Registration-form consent block — twin checkboxes above submit */
.consent-block {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin: 1.25rem 0 .5rem;
  padding: .85rem 1rem;
  background: var(--surface2, #f9fafb);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
}
.consent-block .consent-row { font-size: .88rem; }
