/* ===== RestAIge — Legal Pages Styles ===== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0b0d11;
  color: #cdd4e0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #62e1a6;
  color: #0b0d11;
}

a {
  color: #62e1a6;
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: #8affc4;
  text-decoration: underline;
}

/* --- Layout --- */

.legal-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 28px 80px;
}

/* --- Back link --- */

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 36px;
  color: #62e1a6;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  opacity: .85;
  transition: opacity .2s;
}

.legal-back:hover {
  opacity: 1;
  text-decoration: none;
}

/* --- Headings --- */

h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 3px solid #62e1a6;
}

/* --- Meta --- */

.legal-subtitle {
  font-size: 1.1rem;
  color: #8a92a4;
  margin-bottom: 4px;
}

.legal-date {
  font-size: 0.9rem;
  color: #555c6e;
  margin-bottom: 0;
}

/* --- Divider --- */

.divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 36px 0;
}

/* --- Text --- */

p {
  margin-bottom: 12px;
}

strong, b {
  color: #fff;
  font-weight: 600;
}

ul, ol {
  margin: 8px 0 16px 28px;
}

li {
  margin-bottom: 6px;
}

/* --- Tables --- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.92rem;
}

th {
  text-align: left;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
}

tr:hover td {
  background: rgba(98,225,166,0.03);
}

/* --- Footer --- */

.legal-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
  color: #555c6e;
  line-height: 1.8;
}

.legal-footer strong {
  color: #8a92a4;
}

/* --- Mobile --- */

@media (max-width: 600px) {
  .legal-wrap {
    padding: 28px 16px 60px;
  }
  h1 {
    font-size: 1.45rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  table {
    font-size: 0.82rem;
  }
  th, td {
    padding: 8px 8px;
  }
}
