/* Cookie banner, footer, report sheet and the legal pages
   (/privatesia/, /kushtet/). Shared by /, /q/*, /lajme/ and the legal pages,
   so it doesn't rely on app.css variables. */

/* ---------- Cookie banner ---------- */
.consent {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 30;
  width: min(94vw, 560px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: #ffffff;
  color: #101424;
  border: 1px solid rgba(19, 25, 39, 0.14);
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(25, 33, 48, 0.18);
  font-family: 'Avenir Next', 'Avenir', 'Futura', 'Segoe UI', 'Inter', Arial, sans-serif;
}

.consent[hidden] {
  display: none;
}

.consent-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.consent-text a {
  color: inherit;
  font-weight: 600;
}

.consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Both buttons look the same on purpose: refusing must be as easy as accepting. */
.consent-btn {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(19, 25, 39, 0.18);
  background: #f3f5fb;
  color: #101424;
  cursor: pointer;
}

.consent-btn:hover {
  background: #e8ecf7;
}

.consent-btn:focus-visible,
.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline: 2px solid #7aa2ff;
  outline-offset: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  font-size: 0.85rem;
  color: #5b667b;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
}

.site-footer a,
.site-footer button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer button:hover {
  color: #101424;
  text-decoration: underline;
}

.site-footer nav > *:not([hidden]) ~ *:not([hidden])::before {
  content: '·';
  display: inline-block;
  padding: 0 8px;
  color: #9aa3b5;
  text-decoration: none;
}

.site-footer [hidden] {
  display: none;
}

.site-footer-lajme {
  margin-top: 28px;
}

/* ---------- Report sheet (/q/* pages) ---------- */
.report-card {
  width: min(460px, 90vw);
}

.report-card h2 {
  margin: 6px 0 4px;
  padding-right: 32px;
}

.report-intro {
  margin: 0 0 14px;
  color: #5b667b;
  font-size: 0.95rem;
}

.report-reasons {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.report-legend {
  padding: 0;
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.report-reason {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(19, 25, 39, 0.1);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.95rem;
}

.report-reason:has(input:checked) {
  border-color: #7aa2ff;
  box-shadow: 0 0 0 1px #7aa2ff;
}

.report-reason input {
  margin: 0;
  accent-color: #7aa2ff;
}

.report-note {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  font-size: 0.9rem;
  color: #5b667b;
}

.report-note textarea {
  font: inherit;
  font-size: 0.95rem;
  color: #101424;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(19, 25, 39, 0.14);
  resize: vertical;
  min-height: 64px;
}

.report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.report-status {
  margin: 12px 0 0;
  font-size: 0.92rem;
  color: #5b667b;
}

.report-status:empty {
  display: none;
}

.report-status a {
  color: inherit;
  font-weight: 600;
}

.report-done {
  text-align: center;
  padding: 8px 0 4px;
}

.report-done p {
  color: #5b667b;
}

.report-done[hidden],
.report-form[hidden] {
  display: none;
}

.create-terms {
  margin: 0;
  font-size: 0.82rem;
  color: #5b667b;
}

.create-terms a {
  color: inherit;
  font-weight: 600;
}

.link-missing {
  margin: 0;
  font-size: 0.95rem;
  color: #5b667b;
  text-align: center;
}

.link-missing[hidden] {
  display: none;
}

/* ---------- Legal pages ---------- */
.legal-page {
  margin: 0;
  background: #f7f8ff;
  color: #101424;
  font-family: 'Avenir Next', 'Avenir', 'Futura', 'Segoe UI', 'Inter', Arial, sans-serif;
  line-height: 1.6;
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 140px;
}

.legal .legal-home {
  display: inline-block;
  border-radius: 10px;
  line-height: 0;
}

.legal .legal-home img {
  display: block;
  width: auto;
  height: 26px;
}

.legal .legal-home:focus-visible {
  outline: 3px solid #7aa2ff;
  outline-offset: 4px;
}

.legal h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 24px 0 6px;
}

.legal-meta {
  color: #5b667b;
  font-size: 0.9rem;
  margin: 0 0 20px;
}

.legal-lang {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
}

.legal-lang a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #101424;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(19, 25, 39, 0.14);
  background: #ffffff;
}

.legal-summary {
  background: #ffffff;
  border: 1px solid rgba(19, 25, 39, 0.08);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 10px 20px rgba(25, 33, 48, 0.06);
}

.legal-summary ul {
  margin: 0;
  padding-left: 20px;
}

.legal h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 32px 0 8px;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 20px 0 6px;
}

.legal p,
.legal li {
  font-size: 1rem;
}

.legal ul,
.legal ol {
  padding-left: 22px;
}

.legal li {
  margin: 4px 0;
}

.legal a {
  color: #2a5bd7;
}

.legal code {
  font-size: 0.88em;
  background: rgba(19, 25, 39, 0.06);
  border-radius: 6px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 8px 0 16px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(19, 25, 39, 0.1);
}

.legal-table th {
  font-weight: 600;
  color: #5b667b;
}

.legal-scroll {
  overflow-x: auto;
}

.legal-en {
  margin-top: 56px;
  padding-top: 8px;
  border-top: 2px solid rgba(19, 25, 39, 0.1);
}

.legal .site-footer {
  margin-top: 48px;
}

@media (max-width: 560px) {
  .legal h1 {
    font-size: 1.6rem;
  }

  .legal-table {
    font-size: 0.88rem;
  }
}

.legal-inline-btn {
  font: inherit;
  color: #2a5bd7;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}
