/* ========================================
   Legal Pages — DronesTrading
   Styles for Privacy Policy, Terms of Service, Cookie Policy
   ======================================== */

/* --- Legal Hero --- */
.legal-hero {
  background: linear-gradient(135deg, #0B1D32 0%, #1A2D45 100%);
  padding: 80px 0 60px;
  color: #fff;
  text-align: center;
}

.legal-breadcrumb {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}

.legal-breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-breadcrumb a:hover {
  color: #0096FF;
}

.legal-breadcrumb span {
  margin: 0 8px;
}

.legal-title {
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.legal-meta {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* --- Legal Content --- */
.legal-content {
  padding: 60px 0 80px;
  background: #f8f9fc;
}

.legal-content .container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  max-width: 1100px;
}

/* --- Table of Contents --- */
.legal-toc {
  position: sticky;
  top: 100px;
  height: fit-content;
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.legal-toc h3 {
  font-size: 13px;
  font-weight: 700;
  color: #0B1D32;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px;
}

.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-toc li {
  margin-bottom: 8px;
}

.legal-toc a {
  font-size: 14px;
  color: #4A4A5A;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: all 0.2s;
}

.legal-toc a:hover {
  color: #0096FF;
  border-left-color: #0096FF;
}

/* --- Legal Body --- */
.legal-body {
  background: #fff;
  border-radius: 12px;
  padding: 48px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.legal-intro {
  font-size: 16px;
  line-height: 1.7;
  color: #4A4A5A;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid #E8E8ED;
}

.legal-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0B1D32;
  margin: 40px 0 16px;
  padding-top: 8px;
  border-top: 1px solid #E8E8ED;
}

.legal-body h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2D2D44;
  margin: 24px 0 10px;
}

.legal-body p {
  font-size: 15px;
  line-height: 1.75;
  color: #4A4A5A;
  margin: 0 0 14px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.legal-body li {
  font-size: 15px;
  line-height: 1.7;
  color: #4A4A5A;
  margin-bottom: 6px;
}

.legal-body a {
  color: #0096FF;
  text-decoration: none;
  transition: color 0.2s;
}

.legal-body a:hover {
  color: #0077B6;
  text-decoration: underline;
}

.legal-body strong {
  color: #2D2D44;
}

/* --- Legal Notice Box --- */
.legal-notice {
  background: #F0F7FF;
  border-left: 4px solid #0096FF;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: #2D2D44;
  line-height: 1.6;
}

.legal-notice strong {
  color: #0B1D32;
}

/* --- Contact Box --- */
.contact-box {
  background: #F4F4F7;
  border-radius: 10px;
  padding: 24px 28px;
  margin-top: 20px;
}

.contact-box p {
  margin: 0 0 8px;
  font-size: 15px;
  color: #4A4A5A;
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.contact-box a {
  color: #0096FF;
}

/* --- Legal Table --- */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.legal-table th {
  background: #0B1D32;
  color: #fff;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legal-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #E8E8ED;
  color: #4A4A5A;
  vertical-align: top;
}

.legal-table tr:nth-child(even) td {
  background: #F8F9FC;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table code {
  background: #F0F0F5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: #0096FF;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .legal-content .container {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .legal-body {
    padding: 32px 24px;
  }

  .legal-title {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  .legal-hero {
    padding: 60px 0 40px;
  }

  .legal-title {
    font-size: 26px;
  }

  .legal-body {
    padding: 24px 16px;
  }

  .legal-table {
    font-size: 12px;
  }

  .legal-table th,
  .legal-table td {
    padding: 8px 10px;
  }
}
