:root {
  --page-bg: #ffffff;
  --surface: #ffffff;
  --page-plane: #f6f6f7;
  --ink-primary: #0d0d0d;
  --ink-secondary: #6b6b70;
  --ink-muted: #9a9aa0;
  --border: rgba(13, 13, 13, 0.09);
  --border-strong: rgba(13, 13, 13, 0.16);
  --blue: #3b5bfd;
  --blue-hover: #2c46d1;
  --blue-tint-1: #eef1ff;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--page-bg);
  color: var(--ink-primary);
  min-height: 100vh;
  padding: 28px;
}

.page {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.lang-switcher-corner {
  position: absolute;
  top: 4px;
  right: 0;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lang-switcher-corner:hover {
  border-color: var(--border-strong);
  background: var(--page-plane);
}

.lang-switcher-corner select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  padding: 6px 24px 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 13px) center, calc(100% - 9px) center;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

@media (max-width: 560px) {
  .lang-switcher-corner {
    position: static;
    display: inline-flex;
    margin: 0 0 12px;
  }
}

/* The input view keeps a comfortable reading width; the output view (the
   generated cloud) gets the full page width to give the canvas more room. */
#view-input .hero,
#view-input .how-it-works,
#view-input .input-box,
#view-input .cta-row,
#view-input .style-toggle-row {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* The shared style panel sits outside both views so it survives the
   input/output toggle. It reads as part of the input flow (narrow,
   collapsed by default) until a cloud exists, then widens to match the
   output view's full-width canvas area. */
#style-panel {
  max-width: 680px;
  margin: 24px auto 0;
}

#view-output:not([hidden]) ~ #style-panel {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

#style-panel[hidden] {
  display: none;
}

/* Header */

.topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 4px 0 8px;
}

.brand-logo {
  height: 76px;
  width: auto;
}

.badge-privacy {
  font-size: 12px;
  white-space: nowrap;
  color: var(--ink-muted);
}

@media (max-width: 560px) {
  .badge-privacy {
    white-space: normal;
    max-width: 320px;
    margin: 0 auto;
  }
}

.article-example {
  margin: 4px 0 32px;
  padding: 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--page-plane);
  text-align: center;
}

.article-example img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.article-example figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* Stage */

.stage {
  padding: 40px 0 8px;
}

/* Hero */

.hero {
  text-align: center;
  padding: 0 12px 32px;
}

.hero h1 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}

.hero p {
  margin: 0 auto;
  max-width: 480px;
  color: var(--ink-secondary);
  font-size: 15px;
}

/* How it works */

.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 4px 0 28px;
}

@media (max-width: 640px) {
  .how-it-works {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.how-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-step div {
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.how-step b {
  display: block;
  font-size: 13px;
  color: var(--ink-primary);
  font-weight: 600;
  margin-bottom: 2px;
}

/* Input box — the single clean rectangle for text or files */

.input-box {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 20px 24px 24px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.input-box.dragover {
  border-color: var(--blue);
  background: var(--blue-tint-1);
}

.input-box-header {
  display: flex;
  align-items: baseline;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.input-box-label {
  font-weight: 600;
  font-size: 14px;
}

.format-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.format-tags-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
}

.format-tag {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.format-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.format-tag-weighted .format-pill {
  background: var(--blue-tint-1);
  color: var(--blue);
}

.format-tag-text .format-pill {
  background: var(--page-plane);
  color: var(--ink-secondary);
  border: 1px solid var(--border);
}

.format-desc {
  color: var(--ink-muted);
}

.input-box-body {
  position: relative;
  min-height: 280px;
}

#text-input {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: none;
  resize: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-primary);
  background: transparent;
}

#text-input::placeholder {
  color: var(--ink-muted);
}

.upload-prompt {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.upload-prompt.visible {
  pointer-events: auto;
}

.upload-prompt[hidden] {
  display: none;
}

.upload-divider {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.upload-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.upload-pill:hover {
  border-color: var(--border-strong);
  background: var(--page-plane);
}

.file-chip[hidden] {
  display: none;
}

.file-chip {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.file-chip-icon {
  font-size: 18px;
}

.file-chip-name {
  font-weight: 600;
  font-size: 14px;
  word-break: break-all;
}

.file-chip-edit {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}

.file-chip-edit:hover {
  border-color: var(--border-strong);
  background: var(--page-plane);
}

.file-chip-remove {
  border: none;
  background: var(--page-plane);
  color: var(--ink-secondary);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
}

/* Column picker (used inside the modal) */

.csv-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .csv-selects {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-secondary);
  font-weight: 500;
  min-width: 0;
}

.field select,
.field input[type='text'] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-family: inherit;
  font-size: 13px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-primary);
}

.field input[type='text']::placeholder {
  color: var(--ink-muted);
}

.exclude-manual {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.exclude-manual-row {
  display: flex;
  gap: 8px;
}

.exclude-manual-row input {
  flex: 1;
  min-width: 0;
}

.exclude-manual-row .btn {
  flex-shrink: 0;
  padding: 9px 18px;
}

/* Font picker */

.font-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-primary);
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.font-picker-trigger:hover {
  border-color: var(--border-strong);
}

.font-picker-chevron {
  color: var(--ink-muted);
  font-size: 11px;
}

.font-search {
  font-family: inherit;
  font-size: 13px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-primary);
  width: 100%;
}

.font-search::placeholder {
  color: var(--ink-muted);
}

.font-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  max-height: 320px;
  margin-top: 4px;
}

.font-list-empty {
  padding: 16px 4px;
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
}

.font-list-section {
  margin: 10px 0 2px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
}

.font-list-section:first-child {
  margin-top: 0;
}

.font-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 10px;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-size: 17px;
  color: var(--ink-primary);
}

.font-list-item:hover {
  background: var(--page-plane);
}

.font-list-item.selected {
  background: var(--blue-tint-1);
}

.font-list-item-category {
  font-size: 11px;
  color: var(--ink-muted);
  font-family: "Inter", system-ui, sans-serif;
  flex-shrink: 0;
}

.font-load-more {
  margin-top: 10px;
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.font-load-more:hover {
  background: var(--page-plane);
}

.font-load-more[hidden] {
  display: none;
}

/* Custom color palette */

.custom-colors[hidden] {
  display: none;
}

.custom-colors {
  margin-top: 14px;
  padding: 14px;
  background: var(--page-plane);
  border-radius: var(--radius-sm);
}

.custom-colors-label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 10px;
}

.custom-colors-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.custom-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-color-role {
  flex-shrink: 0;
  width: 74px;
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.3;
}

.custom-color-row input[type='color'] {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  background: none;
}

.custom-color-row input[type='text'] {
  flex: 1;
  min-width: 0;
}

.custom-color-remove {
  border: none;
  background: var(--page-plane);
  color: var(--ink-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 11px;
  flex-shrink: 0;
}

.custom-color-remove:hover {
  background: var(--border);
  color: var(--ink-secondary);
}

.custom-colors-add {
  border: 1px dashed var(--border);
  background: none;
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.custom-colors-add:hover {
  border-color: var(--border-strong);
  background: var(--page-plane);
}

.custom-colors-add[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.field-hint {
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-muted);
}

.modal-intro {
  margin: 0;
  font-size: 13px;
  color: var(--ink-secondary);
}

.csv-preview-wrap {
  max-height: 210px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

table.csv-preview {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}

table.csv-preview th,
table.csv-preview td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

table.csv-preview th {
  background: var(--page-plane);
  color: var(--ink-secondary);
  position: sticky;
  top: 0;
}

/* Comparison-style tables (prose phrases, not dense data) read better
   wrapped than truncated/scrolling — unlike the CSV data preview, they're
   short enough that wrapping never produces more than 2 lines. */
table.comparison-table th,
table.comparison-table td {
  white-space: normal;
}

.modal-sample-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.modal-sample-label span {
  font-weight: 400;
  color: var(--ink-muted);
}

/* Modal */

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.modal {
  width: 100%;
  max-width: 620px;
  max-height: min(680px, 90vh);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(13, 13, 13, 0.18);
  overflow: hidden;
}

.modal-sm {
  max-width: 400px;
}

.remove-word-preview {
  text-align: center;
  padding: 20px 12px;
  font-size: 30px;
  line-height: 1.2;
  word-break: break-word;
  font-family: "Inter", system-ui, sans-serif;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.modal-close {
  border: none;
  background: var(--page-plane);
  color: var(--ink-secondary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
}

.modal-close:hover {
  background: var(--border);
}

.modal-body {
  padding: 20px 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
}

/* CTA */

.cta-row {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.cta-row-split {
  gap: 12px;
}

.style-toggle-row {
  margin-top: 14px;
}

.style-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.style-toggle:hover {
  border-color: var(--border-strong);
  background: var(--page-plane);
}

.style-toggle-chevron {
  color: var(--ink-muted);
  font-size: 11px;
  transition: transform 0.15s ease;
}

.style-toggle.open .style-toggle-chevron {
  transform: rotate(180deg);
}

.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 14px;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:not(:disabled):hover {
  border-color: var(--border-strong);
  background: var(--page-plane);
}

.btn-primary {
  background: var(--ink-primary);
  color: #ffffff;
}

.btn-primary:not(:disabled):hover {
  background: #000000;
}

.btn-accent {
  background: var(--blue);
  color: #ffffff;
}

.btn-accent:not(:disabled):hover {
  background: var(--blue-hover);
}

/* Output settings — adjust the cloud after it's generated */

.output-settings {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.output-settings-label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 14px;
}

.palette-field {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.palette-field .field {
  max-width: 320px;
}

.settings-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 20px;
}

@media (max-width: 560px) {
  .settings-row {
    grid-template-columns: 1fr;
  }
}

.field-compact {
  min-width: 150px;
  flex: 1;
}

/* Output */

.output-box {
  min-height: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.output-hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
}

.excluded-chips[hidden] {
  display: none;
}

.excluded-chips {
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.excluded-chips-label {
  font-size: 12px;
  color: var(--ink-muted);
}

.excluded-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--page-plane);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 4px 4px 10px;
  font-size: 12px;
  color: var(--ink-secondary);
}

.chip-remove {
  border: none;
  background: none;
  color: var(--ink-muted);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
}

.chip-remove:hover {
  background: var(--border);
  color: var(--ink-secondary);
}

.excluded-chips-reset {
  border: none;
  background: none;
  color: var(--blue);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

#cloud-canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
}

/* SEO / GEO content — below the tool, always visible regardless of view */

.seo-content {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 40px;
}

.seo-block {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.seo-block h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.seo-block p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.seo-block p:last-child {
  margin-bottom: 0;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}

@media (max-width: 560px) {
  .use-case-grid {
    grid-template-columns: 1fr;
  }
}

.use-case h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--ink-primary);
}

.use-case p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item summary {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  color: var(--ink-muted);
  font-size: 16px;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* Legal pages (legal.html, cookies.html) */

.legal-page {
  max-width: 680px;
}

.legal-content {
  padding: 8px 0 48px;
}

.legal-content h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}

.legal-updated {
  margin: 0 0 28px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.legal-content h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 26px 0 8px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin: 0 0 10px;
}

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

.legal-content a:not(.btn) {
  color: var(--blue);
}

.legal-back {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.legal-back a {
  font-weight: 600;
  text-decoration: none;
}

.legal-back a:hover {
  text-decoration: underline;
}

/* Article / guide pages (how-to-make-a-word-cloud.html and similar) —
   share the legal page's typography, add a hero-ish intro and CTAs. */

.article-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue);
}

.article-intro {
  font-size: 16px !important;
  color: var(--ink-secondary);
  margin-bottom: 24px !important;
}

.article-cta {
  margin: 28px 0;
}

.article-cta-bottom {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.article-cta-bottom p {
  margin-bottom: 16px !important;
}

.legal-content .use-case-grid {
  margin-top: 8px;
}

.seo-inline-link {
  font-weight: 600;
  white-space: nowrap;
}

/* Footer */

.page-footer {
  text-align: center;
  padding-top: 32px;
  padding-bottom: 12px;
  font-size: 12px;
  color: var(--ink-muted);
}

.footer-links {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink-secondary);
  text-decoration: underline;
}

.footer-links-sep {
  color: var(--border-strong);
}
