/* ── LEGAL.CSS — styles for privacy, terms, and contact pages ── */

.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 88px 6% 96px;
}

/* ── LEGAL HEADER ── */
.legal-header {
  text-align: center;
  margin-bottom: 56px;
}

.legal-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin-bottom: 14px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.legal-header .eyebrow {
  animation: fadeUp 0.6s 0.08s ease both;
}

.legal-date {
  font-size: 0.825rem;
  color: var(--text-dim);
  animation: fadeUp 0.6s 0.32s ease both;
}

/* ── LEGAL BODY ── */
.legal-body {
  animation: fadeUp 0.6s 0.4s ease both;
}

.legal-section {
  margin-bottom: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.legal-section h3 {
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 18px;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.legal-section p {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  margin: 10px 0 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-section ul li {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.legal-section a {
  color: var(--indigo-mid);
  text-decoration: none;
  border-bottom: 1px solid rgba(79,70,229,0.25);
  transition: border-color 0.2s, color 0.2s;
}

.legal-section a:hover {
  color: var(--indigo);
  border-color: rgba(79,70,229,0.6);
}

.legal-contact-block {
  margin-top: 14px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.8;
  backdrop-filter: blur(10px);
}

/* ── CONTACT CARDS ── */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.contact-card {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: block;
}

.contact-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-card-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 14px;
}

.contact-card-link {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--indigo-mid);
  text-decoration: none;
  border-bottom: 1px solid rgba(79,70,229,0.25);
  transition: border-color 0.2s, color 0.2s;
  word-break: break-all;
}

.contact-card-link:hover {
  color: var(--indigo);
  border-color: rgba(79,70,229,0.6);
}

/* ── CONTACT FORM ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-optional {
  font-weight: 400;
  color: var(--text-dim);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  color: var(--text);
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(79,70,229,0.4);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888a4' stroke-width='2'%3E%3Cpath d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .contact-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .legal-wrap { padding: 72px 5% 72px; }
}
