/* ===== Legal / Policy Page Template ===== */

/* Header */
.lp-header {
  padding: 6rem 1.5rem 2.5rem;
  text-align: center;
  background: var(--bg);
}
.lp-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.375rem;
}
@media (min-width: 640px) { .lp-header h1 { font-size: 1.75rem; } }
.lp-header-date {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

/* Layout */
.lp-layout {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 860px) {
  .lp-layout {
    flex-direction: row;
    gap: 2.5rem;
    align-items: flex-start;
  }
}

/* Sidebar nav */
.lp-sidebar {
  display: none;
}
@media (min-width: 860px) {
  .lp-sidebar {
    display: block;
    width: 14rem;
    flex-shrink: 0;
    position: sticky;
    top: 5rem;
  }
}
.lp-sidebar-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
  margin-bottom: 0.75rem;
}
.lp-nav {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.lp-nav li a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted-fg);
  border-radius: 0.375rem;
  transition: all 0.15s;
  border-left: 2px solid transparent;
}
.lp-nav li a:hover {
  color: var(--fg);
  background: var(--muted);
}
.lp-nav li a.active {
  color: var(--primary);
  background: hsla(174, 55%, 40%, 0.06);
  border-left-color: var(--primary);
  font-weight: 500;
}

/* Content */
.lp-content {
  flex: 1;
  min-width: 0;
  max-width: 42rem;
}

/* Notice box */
.lp-notice {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: hsla(174, 30%, 96%, 1);
  border: 1px solid hsla(174, 55%, 40%, 0.15);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  align-items: flex-start;
}
.lp-notice-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.lp-notice p {
  font-size: 0.8125rem;
  color: var(--fg);
  line-height: 1.6;
}
.lp-notice strong {
  font-weight: 600;
}

/* Sections */
.lp-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 5.5rem;
}
.lp-section h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.lp-section h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.lp-section p {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.lp-section ul,
.lp-section ol {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}
.lp-section ul li,
.lp-section ol li {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  line-height: 1.8;
  margin-bottom: 0.25rem;
}

/* Contact / Grievance */
.lp-grievance {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}
.lp-grievance h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
}
.lp-grievance p {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  line-height: 1.7;
  margin-bottom: 0.25rem;
}
.lp-grievance strong {
  color: var(--fg);
}



/* Body Text Container */
.lp-body-text {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--muted-fg);
}

/* Paragraphs */
.lp-body-text p {
  margin-bottom: 0.875rem;
}

/* Headings */
.lp-body-text h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 5.5rem;
}

.lp-body-text h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.lp-body-text h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Lists */
.lp-body-text ul,
.lp-body-text ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.lp-body-text li {
  margin-bottom: 0.375rem;
}

/* Links */
.lp-body-text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.15s ease;
}

.lp-body-text a:hover {
  opacity: 0.8;
}

/* Strong / Emphasis */
.lp-body-text strong {
  font-weight: 600;
  color: var(--fg);
}

.lp-body-text em {
  font-style: italic;
}

/* Blockquotes */
.lp-body-text blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--fg);
  background: var(--muted);
  border-radius: 0.375rem;
}

/* Tables (optional but useful for legal pages) */
.lp-body-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.8125rem;
}

.lp-body-text th,
.lp-body-text td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.lp-body-text th {
  background: var(--muted);
  font-weight: 600;
  color: var(--fg);
}
