/*
 * data-rights.css — the member's data-rights page.
 *
 * Deliberately plain. Someone reaching this page is usually anxious — they want to correct
 * something, stop something, or leave — and a page that performs reassurance at them reads as
 * evasion. Wide measure, ordinary type, no illustration, nothing that looks like it is selling.
 */

.dr-page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.dr-page h1 {
  font-size: 1.75rem;
  margin: 0 0 1rem;
}

.dr-intro {
  line-height: 1.65;
  margin: 0 0 1rem;
}

.dr-quiet {
  color: #4b5563;
  font-size: 0.95rem;
}

.dr-form {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.dr-field { display: block; margin-bottom: 1rem; }
.dr-field > span { display: block; font-weight: 600; margin-bottom: 0.35rem; }

.dr-field select,
.dr-field textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font: inherit;
  /* 16px minimum: anything smaller makes iOS Safari zoom on focus, which on a phone reads as the
     page jumping about while someone is trying to write a complaint. */
  font-size: 1rem;
}

.dr-field textarea { resize: vertical; }

/* The explanatory line under the chooser. It carries the Article number, so it must not be so faint
   that it reads as decoration. */
.dr-note {
  display: block;
  margin-top: 0.4rem;
  color: #374151;
  line-height: 1.5;
}

.dr-submit {
  background: #0f766e;
  color: #fff;
  border: 0;
  border-radius: 0.375rem;
  padding: 0.65rem 1.25rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;   /* a real touch target */
}
.dr-submit:hover { background: #115e59; }
.dr-submit:disabled { background: #9ca3af; cursor: default; }

.dr-message {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.375rem;
  line-height: 1.55;
}
/* The download status is a live region that is always in the page; empty, it takes no room. */
.dr-message:empty { margin: 0; padding: 0; border: 0; }
.dr-info  { background: #f3f4f6; color: #1f2937; }
.dr-ok    { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.dr-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.dr-list-wrap h2 { font-size: 1.25rem; margin: 0 0 0.75rem; }

.dr-request {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem 1.15rem;
  margin-bottom: 0.85rem;
}
.dr-request h3 { margin: 0 0 0.6rem; font-size: 1.05rem; }

.dr-meta { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1rem; margin: 0; }
.dr-meta dt { color: #4b5563; }
.dr-meta dd { margin: 0; }

.dr-empty { color: #4b5563; }

/* Cancel is a real action a member may need in a hurry, so it is a proper target and legible —
   not a faint text link tucked under the card. It is deliberately not styled as a danger button:
   cancelling is the SAFE direction here, the one that stops a deletion. */
.dr-cancel {
  margin-top: 0.85rem;
  background: #fff;
  color: #0f766e;
  border: 1px solid #0f766e;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
.dr-cancel:hover { background: #f0fdfa; }
.dr-cancel:disabled { color: #9ca3af; border-color: #d1d5db; cursor: default; }

/* One column on a phone: the definition-list grid puts a long deadline against a narrow label and
   the value wraps to two lines under a one-word term, which reads as broken. */
@media (max-width: 32rem) {
  .dr-meta { grid-template-columns: 1fr; gap: 0.1rem; }
  .dr-meta dt { font-size: 0.85rem; }
  .dr-meta dd { margin-bottom: 0.5rem; }
}

@media (prefers-color-scheme: dark) {
  .dr-form, .dr-request { background: #1f2937; border-color: #374151; }
  .dr-quiet, .dr-meta dt, .dr-empty { color: #9ca3af; }
  .dr-note { color: #d1d5db; }
  .dr-field select, .dr-field textarea {
    background: #111827; color: #f3f4f6; border-color: #374151;
  }
  .dr-info { background: #374151; color: #e5e7eb; }
  .dr-cancel { background: #1f2937; color: #5eead4; border-color: #5eead4; }
  .dr-cancel:hover { background: #134e4a; }
}
