@charset "UTF-8";

.legal-main {
  min-height: 100vh;
  background: #f8fafc;
  color: #0f172a;
}

.legal-hero {
  padding: clamp(40px, 6vw, 72px) 0 30px;
  border-bottom: 1px solid #dbe4f0;
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
}

.legal-hero h1 {
  max-width: 900px;
  margin: 12px 0 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.legal-hero p {
  max-width: 820px;
  margin: 0;
  color: #475569;
  line-height: 1.8;
}

.legal-content {
  padding: 28px 0 64px;
}

.legal-stack {
  display: grid;
  gap: 18px;
}

.legal-section {
  padding: 22px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 1.28rem;
  line-height: 1.4;
  letter-spacing: 0;
}

.legal-section h3 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.legal-section p,
.legal-section li {
  color: #475569;
  line-height: 1.8;
}

.legal-section p {
  margin: 0 0 10px;
}

.legal-section ul,
.legal-section ol {
  margin: 8px 0 0;
  padding-left: 1.35em;
}

.legal-alert {
  border-color: #facc15;
  background: #fffbeb;
}

.legal-alert p,
.legal-alert li {
  color: #713f12;
}

.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
}

.legal-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #ffffff;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #dbe4f0;
  vertical-align: top;
  line-height: 1.7;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  width: 220px;
  background: #f1f5f9;
  color: #0f172a;
  text-align: left;
  font-weight: 800;
}

.legal-table td {
  color: #475569;
}

.legal-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.legal-link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: none;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin: 8px 0 0;
}

.legal-footer-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-footnote {
  margin-top: 14px;
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .legal-section {
    padding: 16px;
  }

  .legal-table {
    min-width: 600px;
  }

  .legal-table th,
  .legal-table td {
    padding: 12px;
  }
}
