/* ==========================================================
   SREMAN 
   Systematic Reviews, Evidence synthesis and Meta ANalysis manager 
   PRISMA-oriented screening workspace
========================================================== */

:root {
  --purple-950: #241329;
  --purple-900: #321a36;
  --purple-800: #4a274f;
  --purple-700: #5b2f63;
  --purple-600: #704078;
  --purple-500: #8b5a92;
  --purple-300: #cbb5cf;
  --purple-200: #dfd0e1;
  --purple-100: #eee6f0;
  --purple-50: #f8f3f9;

  --orange-700: #d97706;
  --orange-600: #ea8500;
  --orange-500: #ff9933;
  --orange-400: #ffad5c;
  --orange-100: #fff0dd;
  --orange-50: #fff8ef;

  --green-700: #15803d;
  --green-600: #16a34a;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;

  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-100: #fee2e2;
  --red-50: #fef2f2;

  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;

  --blue-700: #1d4ed8;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;

  --text: #1f2937;
  --text-dark: #172033;
  --muted: #64748b;
  --light-muted: #94a3b8;

  --border: #e2e8f0;
  --border-dark: #cbd5e1;

  --background: #f5f3f7;
  --white: #ffffff;

  --shadow-sm: 0 2px 8px rgba(74, 39, 79, 0.06);
  --shadow: 0 8px 28px rgba(74, 39, 79, 0.08);
  --shadow-lg: 0 15px 45px rgba(74, 39, 79, 0.13);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --transition: 160ms ease;
}

/* ==========================================================
   BASE
========================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(255, 153, 51, 0.08),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      #fbf9fc 0,
      var(--background) 320px
    );

  color: var(--text);
  min-height: 100vh;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(255, 153, 51, 0.3);
}

/* ==========================================================
   HEADER
========================================================== */

.header {
  min-height: 94px;
  padding: 18px 32px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  color: white;

  background:
    radial-gradient(
      circle at 88% 20%,
      rgba(255, 153, 51, 0.18),
      transparent 25%
    ),
    linear-gradient(
      120deg,
      #241329,
      #4a274f 55%,
      #5b2f63
    );

  position: relative;
  overflow: hidden;

  box-shadow:
    0 4px 18px rgba(36, 19, 41, 0.18);
}

.header::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -100px;
  top: -170px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 35px rgba(255, 255, 255, 0.025),
    0 0 0 70px rgba(255, 255, 255, 0.018);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 2;
}

.brand-mark {
  width: 54px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 9px;

  font-size: 16px;
  font-weight: 900;

  color: var(--orange-500);
  background: var(--purple-800);

  box-shadow:
    0 7px 20px rgba(0, 0, 0, 0.2);

  border: 1px solid rgba(255, 153, 51, 0.25);
}

.header h1 {
  margin: 0 0 4px;

  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.4px;
}

.header p {
  margin: 0;

  color: #ddd1df;
  font-size: 12px;
}

.brand-name {
  position: relative;
  z-index: 2;

  display: inline-flex;
  align-items: center;

  line-height: 1;
  padding: 2px;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  white-space: nowrap;
}

.brand-name strong {
  display: inline-block;
  padding: 5px 7px;
  font-size: clamp(7px, 1.8vw, 10px);
  font-weight: 500;
}

.brand-name strong:last-child {
  color: #ff9933;
  background-color: #4A274F;
}

.brand-name strong:first-child {
  color: #4A274F;
  background-color: #ff9933;
}

/* ==========================================================
   MAIN
========================================================== */

.container {
  width: min(1220px, calc(100% - 32px));
  margin: 28px auto;
}

/* ==========================================================
   CARDS
========================================================== */

.card {
  background: var(--white);

  border:
    1px solid rgba(74, 39, 79, 0.08);

  border-radius: var(--radius);

  padding: 25px;

  margin-bottom: 20px;

  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0;

  font-size: 18px;
  letter-spacing: -0.2px;

  color: var(--text-dark);
}

.card > p {
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================
   SECTION HEADINGS
========================================================== */

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  margin-bottom: 22px;
}

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.section-heading.compact {
  margin-bottom: 3px;
}

.section-number {
  width: 36px;
  height: 36px;

  flex: 0 0 36px;

  display: inline-grid;
  place-items: center;

  border-radius: 10px;

  background:
    linear-gradient(
      135deg,
      var(--purple-50),
      var(--purple-100)
    );

  color: var(--purple-800);

  font-size: 11px;
  font-weight: 900;
}

.section-label {
  padding: 6px 10px;

  border-radius: 20px;

  background: var(--orange-50);
  color: var(--orange-700);

  font-size: 10px;
  font-weight: 900;

  letter-spacing: 1px;
}

/* ==========================================================
   FORMS
========================================================== */

.form-group {
  margin-bottom: 18px;
}

.form-group label,
.reason-area label {
  display: block;

  margin-bottom: 7px;

  color: #334155;

  font-size: 12px;
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;

  border:
    1px solid var(--border-dark);

  border-radius: 9px;

  padding: 11px 12px;

  color: var(--text);
  background: #fff;

  outline: none;

  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

input:hover,
textarea:hover,
select:hover {
  border-color: #aab6c5;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--purple-500);

  box-shadow:
    0 0 0 3px rgba(112, 64, 120, 0.11);
}

textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.5;
}

.large-textarea {
  min-height: 110px;
}

.help {
  margin: 7px 0 0;

  color: var(--muted);

  font-size: 11px;
  line-height: 1.55;
}

/* ==========================================================
   PICO
========================================================== */

.pico-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 15px;
}

.save-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: var(--green-700);

  font-size: 11px;
  font-weight: 600;
}

/* ==========================================================
   BUTTONS
========================================================== */

.button-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

button {
  border: 0;

  border-radius: 9px;

  padding: 10px 15px;

  font-size: 12px;
  font-weight: 750;

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    opacity var(--transition),
    background var(--transition);
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.primary {
  color: white;

  background:
    linear-gradient(
      135deg,
      var(--purple-800),
      var(--purple-600)
    );

  box-shadow:
    0 6px 15px rgba(74, 39, 79, 0.2);
}

.primary:hover {
  box-shadow:
    0 8px 20px rgba(74, 39, 79, 0.28);
}

.secondary {
  color: white;
  background: #475569;
}

.secondary:hover {
  background: #334155;
}

.danger {
  color: white;
  background: var(--red-600);
}

.danger:hover {
  background: var(--red-700);
}

/* ==========================================================
   SEARCH STATUS
========================================================== */

.search-status {
  margin-top: 14px;

  padding: 12px 14px;

  border-radius: 9px;

  background:
    linear-gradient(
      135deg,
      var(--purple-50),
      #fff
    );

  border:
    1px solid var(--purple-200);

  color: var(--purple-800);

  font-size: 12px;
  line-height: 1.5;
}

.search-details,
.database-stats {
  margin-top: 12px;

  padding: 15px;

  border:
    1px solid var(--border);

  border-radius: 10px;

  background: #fafafa;

  font-size: 12px;
  line-height: 1.6;
}

.search-details h3 {
  margin: 0 0 10px;

  color: var(--purple-800);

  font-size: 14px;
}

.search-details pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;

  margin: 8px 0 0;

  padding: 13px;

  border-radius: 8px;

  background: #16121a;
  color: #eee7f0;

  overflow-x: auto;

  font-size: 11px;
}

/* ==========================================================
   SCREENING HEADER
========================================================== */

.screening-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;

  padding-bottom: 16px;

  border-bottom:
    1px solid var(--border);
}

#progressText {
  display: block;

  margin-top: 4px;

  color: var(--muted);

  font-size: 11px;
}

/* ==========================================================
   STAT BADGES
========================================================== */

.stats {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  padding: 7px 10px;

  border-radius: 20px;

  font-size: 10px;
  font-weight: 650;
}

.badge strong {
  font-size: 12px;
}

.badge.total {
  background: #e2e8f0;
  color: #334155;
}

.badge.unscreened {
  background: #f1f5f9;
  color: #475569;
}

.badge.include {
  background: var(--green-100);
  color: #166534;
}

.badge.exclude {
  background: var(--red-100);
  color: #991b1b;
}

.badge.maybe {
  background: var(--amber-100);
  color: #92400e;
}

/* ==========================================================
   PICO REMINDER
========================================================== */

.pico-reminder {
  margin-top: 18px;

  padding: 16px;

  border:
    1px solid var(--purple-200);

  border-radius: 11px;

  background:
    linear-gradient(
      135deg,
      var(--purple-50),
      var(--orange-50)
    );
}

.pico-reminder h3 {
  margin: 0 0 12px;

  color: var(--purple-800);

  font-size: 14px;
}

.pico-summary {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 9px;
}

.pico-item {
  min-height: 68px;

  padding: 10px;

  border:
    1px solid #e4d7e7;

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.8);
}

.pico-item strong {
  display: block;

  margin-bottom: 4px;

  color: var(--purple-700);

  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pico-item span {
  color: #475569;

  font-size: 11px;
  line-height: 1.45;
}

/* ==========================================================
   ARTICLE
========================================================== */

.article-area {
  padding-top: 24px;
}

.article-title {
  margin-bottom: 12px;

  color: var(--text-dark);

  font-size: 22px;
  line-height: 1.38;

  font-weight: 700;
  letter-spacing: -0.25px;
}

.article-meta {
  margin-bottom: 8px;

  color: var(--muted);

  font-size: 12px;
  line-height: 1.55;
}

.pmid {
  color: var(--purple-700);

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;

  font-weight: 700;
}

.abstract {
  max-height: 430px;

  overflow-y: auto;

  margin-top: 10px;

  padding: 17px 18px;

  border-left:
    4px solid var(--orange-500);

  border-radius:
    0 9px 9px 0;

  background:
    linear-gradient(
      90deg,
      #fffaf4,
      #fafafa
    );

  color: #374151;

  font-size: 13px;
  line-height: 1.7;

  white-space: pre-wrap;
}

.article-area h3 {
  margin: 20px 0 8px;

  color: var(--text-dark);

  font-size: 14px;
}

/* ==========================================================
   ARTICLE LINKS
========================================================== */

.article-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;

  margin: 16px 0;
}

.article-link {
  display: inline-flex;
  align-items: center;

  padding: 8px 11px;

  border-radius: 7px;

  text-decoration: none;

  font-size: 11px;
  font-weight: 750;

  transition:
    transform var(--transition),
    filter var(--transition);
}

.article-link:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
}

.pubmed-link {
  background: #dbeafe;
  color: #1e40af;
}

.doi-link {
  background: var(--purple-100);
  color: var(--purple-800);
}

.pmc-link {
  background: var(--green-100);
  color: #166534;
}


/* ==========================================================
   DECISION PANEL
========================================================== */

.decision-area {
  margin-top: 23px;

  padding: 18px;

  border:
    1px solid var(--border);

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      #fff,
      #faf9fb
    );
}

.decision-area h3 {
  margin-top: 0;
}

.decision-buttons {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.decision-buttons button {
  min-width: 120px;

  border:
    1px solid transparent;
}

.include-btn {
  color: white;
  background: var(--green-600);
}

.include-btn:hover {
  background: var(--green-700);
}

.exclude-btn {
  color: white;
  background: var(--red-600);
}

.exclude-btn:hover {
  background: var(--red-700);
}

.maybe-btn {
  color: white;
  background: var(--amber-600);
}

.maybe-btn:hover {
  background: var(--amber-700);
}

.selected {
  outline:
    3px solid rgba(74, 39, 79, 0.22);

  box-shadow:
    inset 0 0 0 2px white,
    0 4px 12px rgba(0, 0, 0, 0.12);
}

.reason-area {
  margin-top: 14px;
}

/* ==========================================================
   NAVIGATION
========================================================== */

.navigation {
  display: flex;
  justify-content: space-between;

  gap: 10px;

  margin-top: 18px;
}

.navigation button {
  min-width: 105px;

  color: white;

  background:
    linear-gradient(
      135deg,
      var(--purple-800),
      var(--purple-700)
    );
}

/* ==========================================================
   EMPTY
========================================================== */

.empty {
  text-align: center;

  padding: 75px 20px;

  color: var(--muted);
}

.empty-icon {
  width: 60px;
  height: 60px;

  display: grid;
  place-items: center;

  margin: 0 auto 16px;

  border-radius: 50%;

  background: var(--purple-50);

  color: var(--purple-600);

  font-size: 27px;
}

.empty h3 {
  margin: 0 0 7px;

  color: var(--text-dark);

  font-size: 16px;
}

.empty p {
  margin: 0;

  font-size: 12px;
}

/* ==========================================================
   HISTORY
========================================================== */

.history-item {
  padding: 13px;

  margin-bottom: 8px;

  border:
    1px solid var(--border);

  border-radius: 9px;

  background:
    linear-gradient(
      135deg,
      #fff,
      #fafafa
    );

  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.history-item:hover {
  border-color: var(--purple-200);

  box-shadow: var(--shadow-sm);
}


/* ==========================================================
   PRISMA / SCREENING NAVIGATION
   These classes are also used by the upgraded JS.
========================================================== */

.screening-tabs {
  display: flex;
  gap: 5px;

  margin-top: 18px;

  padding: 5px;

  overflow-x: auto;

  border:
    1px solid var(--border);

  border-radius: 11px;

  background: #f8fafc;
}

.screening-tab {
  flex: 1 0 auto;

  padding: 9px 13px;

  color: #64748b;
  background: transparent;

  border-radius: 7px;

  font-size: 11px;
  font-weight: 750;
}

.screening-tab:hover {
  color: var(--purple-800);
  background: #fff;
}

.screening-tab.active {
  color: white;

  background:
    linear-gradient(
      135deg,
      var(--purple-800),
      var(--purple-600)
    );

  box-shadow:
    0 3px 8px rgba(74, 39, 79, 0.18);
}

.screening-filter {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  gap: 9px;

  margin-top: 13px;
}

.screening-filter input {
  background: #fafafa;
}

.article-list {
  display: grid;
  gap: 8px;

  margin-top: 14px;
}

.article-list-item {
  width: 100%;

  display: grid;

  grid-template-columns: 6px minmax(0, 1fr) auto;

  gap: 12px;

  padding: 12px;

  text-align: left;

  border:
    1px solid var(--border);

  border-radius: 10px;

  background: white;

  box-shadow: none;

  color: inherit;
}

.article-list-item:hover {
  transform: none;

  border-color: var(--purple-200);

  box-shadow: var(--shadow-sm);
}

.article-list-status {
  width: 6px;

  border-radius: 6px;

  background: #cbd5e1;
}

.article-list-status.include {
  background: var(--green-600);
}

.article-list-status.exclude {
  background: var(--red-600);
}

.article-list-status.maybe {
  background: var(--amber-600);
}

.article-list-content strong {
  display: block;

  margin-bottom: 4px;

  color: var(--text-dark);

  font-size: 12px;
  line-height: 1.4;
}

.article-list-content span {
  color: var(--muted);

  font-size: 10px;
}

.article-list-decision {
  align-self: center;

  padding: 5px 8px;

  border-radius: 20px;

  font-size: 9px;
  font-weight: 800;
}

.article-list-decision.include {
  background: var(--green-100);
  color: var(--green-700);
}

.article-list-decision.exclude {
  background: var(--red-100);
  color: var(--red-700);
}

.article-list-decision.maybe {
  background: var(--amber-100);
  color: var(--amber-700);
}

.article-list-decision.unscreened {
  background: #f1f5f9;
  color: #64748b;
}

/* ==========================================================
   EXCLUSION SUMMARY
========================================================== */

.exclusion-summary {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 9px;

  margin-top: 15px;
}

.exclusion-reason {
  padding: 12px;

  border:
    1px solid var(--border);

  border-radius: 9px;

  background: #fafafa;
}

.exclusion-reason-header {
  display: flex;
  justify-content: space-between;

  gap: 10px;

  font-size: 11px;
}

.exclusion-reason-count {
  color: var(--red-700);

  font-weight: 850;
}

.exclusion-bar {
  height: 5px;

  margin-top: 8px;

  overflow: hidden;

  border-radius: 5px;

  background: #e5e7eb;
}

.exclusion-bar > span {
  display: block;

  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      var(--red-600),
      #ef6b6b
    );
}

/* ==========================================================
   PRISMA SUMMARY
========================================================== */

.prisma-summary {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 10px;

  margin-top: 15px;
}

.prisma-stat {
  padding: 14px;

  border:
    1px solid var(--border);

  border-radius: 10px;

  background: white;
}

.prisma-stat-label {
  color: var(--muted);

  font-size: 10px;
}

.prisma-stat-value {
  display: block;

  margin-top: 5px;

  color: var(--purple-800);

  font-size: 23px;
  font-weight: 850;
}

.prisma-stat-note {
  margin-top: 3px;

  color: var(--light-muted);

  font-size: 9px;
}

/* ==========================================================
   TOAST
========================================================== */

.srma-toast {
  position: fixed;

  right: 20px;
  bottom: 20px;

  z-index: 9999;

  max-width: 350px;

  padding: 12px 15px;

  border-radius: 10px;

  color: white;

  background:
    linear-gradient(
      135deg,
      var(--purple-900),
      var(--purple-700)
    );

  box-shadow: var(--shadow-lg);

  font-size: 12px;
  font-weight: 650;

  animation:
    toastIn 180ms ease-out;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 900px) {
  .pico-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .prisma-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .header {
    padding: 17px;
  }

  .header h1 {
    font-size: 19px;
  }

  .header p {
    font-size: 10px;
  }

  .brand-mark {
    width: 46px;
    height: 40px;
  }

.brand-name,
.brand-name strong {
  font-size: clamp(7px, 2.2vw, 10px);
  font-weight: 300;
}

  .container {
    width: calc(100% - 20px);
    margin-top: 15px;
  }

  .card {
    padding: 17px;
    border-radius: 12px;
  }

  .pico-grid,
  .pico-summary,
  .exclusion-summary {
    grid-template-columns: 1fr;
  }

  .screening-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats {
    justify-content: flex-start;
  }

  .article-title {
    font-size: 18px;
  }

  .decision-buttons {
    flex-direction: column;
  }

  .decision-buttons button {
    width: 100%;
  }

  .button-row {
    flex-direction: column;
  }

  .button-row button {
    width: 100%;
  }

  .navigation button {
    flex: 1;
  }

  .screening-filter {
    grid-template-columns: 1fr;
  }

  .prisma-summary {
    grid-template-columns: 1fr 1fr;
  }

  .footer {
    width: calc(100% - 20px);
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .prisma-summary {
    grid-template-columns: 1fr;
  }

  .article-list-item {
    grid-template-columns: 5px minmax(0, 1fr);
  }

  .article-list-decision {
    display: none;
  }
}


.article-search-footer {
  margin-top: 18px;
  padding: 12px 0;
  border-top: 1px solid #e5e7eb;
}

.article-search-footer summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #475569;
}

.article-search-footer summary::-webkit-details-marker {
  display: none;
}

.search-arrow {
  font-size: 14px;
  transition: transform 0.15s ease;
}

.article-search-footer[open] .search-arrow {
  transform: rotate(90deg);
}

.search-count {
  color: #94a3b8;
  font-size: 0.9em;
}

.search-source-list {
  margin-top: 10px;
  padding-left: 24px;
}

.search-source-item {
  padding: 8px 10px;
  margin-bottom: 6px;
  background: #f8fafc;
  border-left: 3px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.9em;
  line-height: 1.5;
  word-break: break-word;
}



/* SREMAN information pages */

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 28px auto;
}

.legal-card {
  padding: 25px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.legal-eyebrow {
  color: var(--orange-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.legal-card h1 {
  color: var(--purple-900);
  font-size: clamp(25px, 4vw, 34px);
}

.legal-card h2 {
  margin-top: 25px;
  color: var(--purple-800);
  font-size: 18px;
}

.legal-card p,
.legal-card li {
  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.legal-updated {
  color: var(--muted) !important;
  font-size: 11px !important;
}

.legal-intro,
.legal-note {
  padding: 12px 15px;
  border-left: 3px solid var(--orange-500);
  background: var(--purple-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.legal-card a {
  color: var(--purple-700);
}

.legal-card a:hover {
  color: var(--orange-700);
}

/* Shared information-page footer: text only */

.site-footer {
  width: min(1220px, calc(100% - 32px));
  margin: 30px auto 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.site-footer-top {
  display: flex;
  justify-content: space-between;
  gap: 25px;
}

.site-footer-brand {
  color: var(--purple-800);
  font-weight: 800;
  text-decoration: none;
}

.site-footer-description {
  max-width: 400px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.site-footer-nav-title {
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 800;
}

.site-footer-links {
  display: grid;
  gap: 8px;
}

.site-footer-links a,
.site-footer-home {
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}

.site-footer-links a:hover,
.site-footer-home:hover {
  color: var(--purple-700);
  text-decoration: underline;
}

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.site-footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .legal-page {
    width: calc(100% - 20px);
    margin: 16px auto;
  }

  .legal-card {
    padding: 18px;
  }

  .site-footer {
    width: calc(100% - 20px);
  }

  .site-footer-top,
  .site-footer-bottom {
    flex-direction: column;
  }
}
