:root {
  color-scheme: light;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #eef3f8;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

button,
textarea {
  font: inherit;
}

.page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at 15% 10%, rgb(47 198 246 / 18%), transparent 28rem),
    radial-gradient(circle at 90% 90%, rgb(81 99 255 / 12%), transparent 30rem);
}

.card {
  width: min(100%, 720px);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgb(23 32 51 / 8%);
  border-radius: 24px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 24px 70px rgb(38 62 93 / 14%);
}

.eyebrow {
  margin-bottom: 12px;
  color: #1594c5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.description {
  max-width: 580px;
  margin: 16px 0 32px;
  color: #637086;
  font-size: 17px;
  line-height: 1.55;
}

label {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 700;
}

textarea {
  display: block;
  width: 100%;
  min-height: 160px;
  resize: vertical;
  padding: 16px;
  border: 1px solid #cbd6e2;
  border-radius: 12px;
  outline: none;
  color: #172033;
  background: #fff;
  line-height: 1.5;
  transition: border-color 150ms, box-shadow 150ms;
}

textarea:focus {
  border-color: #16a8df;
  box-shadow: 0 0 0 4px rgb(22 168 223 / 13%);
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

button {
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #16a8df;
  cursor: pointer;
  font-weight: 700;
  transition: background 150ms, transform 150ms;
}

button:hover {
  background: #078ec2;
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button-secondary {
  color: #526076;
  background: #edf2f6;
}

.button-secondary:hover {
  background: #e1e8ee;
}

.result {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e5ebf1;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

h2 {
  margin: 0;
  font-size: 18px;
}

.counter {
  padding: 5px 9px;
  border-radius: 999px;
  color: #087da9;
  background: #e5f7fd;
  font-size: 12px;
  font-weight: 700;
}

.email-list {
  display: grid;
  gap: 8px;
}

.email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #e2e9ef;
  border-radius: 10px;
  background: #f8fafc;
  overflow-wrap: anywhere;
}

.copy-button {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #087da9;
  background: transparent;
  font-size: 12px;
}

.copy-button:hover {
  background: #e5f7fd;
}

.empty-result,
.error {
  margin: 12px 0 0;
  color: #637086;
}

.error {
  color: #b42318;
}

.footer {
  margin-top: 28px;
  color: #637086;
  font-size: 13px;
}

a {
  color: #087da9;
}

.legal-page {
  min-height: 100vh;
  padding: 36px 70px 60px;
  background: #fff;
}

.legal-document {
  width: 100%;
  margin: 0;
  color: #172033;
}

.legal-document h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: normal;
}

.legal-document h2 {
  margin: 30px 0 14px;
  color: inherit;
  font-size: 25px;
  line-height: 1.3;
}

.legal-document h1 + h2 {
  margin-top: 0;
  font-style: italic;
  font-weight: 600;
}

.legal-document h3 {
  margin: 32px 0 12px;
  font-size: 20px;
}

.legal-document p,
.legal-document li {
  margin: 0 0 18px;
  font-size: 19px;
  line-height: 1.5;
}

.legal-document ul {
  padding-left: 24px;
}

.legal-back {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #dfe5eb;
}

@media (max-width: 520px) {
  .actions {
    flex-direction: column;
  }

  .email-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-page {
    padding: 24px 20px 40px;
  }
}
