/*
 * ============================================================================
 * Styles for Static Legal & Content Pages (Privacy Policy, Terms of Service)
 *
 * These styles are designed to make long-form text content clear,
 * professional, and easy to read, leveraging the existing design system.
 * ============================================================================
 */

/*
 * Main Container
 * ------------------------------------------------------------------------- */
.static-content-page {
  /*
   * Use a narrower max-width than the main app for optimal text readability.
   * A line length of around 75 characters is considered ideal.
   */
  max-width: 800px;
  margin: 0 auto; /* Center the container within the .main-content area */
}

/*
 * Page Header
 * ------------------------------------------------------------------------- */
.static-content-page h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

/* Style the "Last updated" paragraph */
.static-content-page > p:first-of-type {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xxl);
}

/*
 * Section Headings
 * ------------------------------------------------------------------------- */
.static-content-page h2 {
  font-size: 1.75rem;
  margin-top: var(--space-xxl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

/* Remove the top border for the very first h2 (e.g., "SUMMARY") */
.static-content-page h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  font-family: var(--font-serif-text);
}

.static-content-page h3 {
  font-size: 1.25rem;
  font-family: var(
    --font-serif-text
  ); /* Use the text font for h3 to make it more of a sub-point */
  font-style: italic;
  color: var(--color-text-secondary);
}

/*
 * Summary & "In Short" Blocks
 * ------------------------------------------------------------------------- */
/* Style for the summary question/answer blocks at the top */
.summary-point {
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background-color: color-mix(
    in srgb,
    var(--color-background),
    #f5f5f5 50%
  ); /* A very subtle background */
}

.summary-question {
  font-family: var(--font-serif-display);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-sm) 0;
  font-size: 1.1rem;
}

.summary-point p {
  margin: 0;
  color: var(--color-text-secondary);
}

/* Style for the "In Short:" summaries within each section */
.in-short {
  font-weight: 600; /* Lora's 600 weight looks great here */
  padding: var(--space-md);
  margin: var(--space-lg) 0;
  border-left: 3px solid var(--color-accent);
  background-color: color-mix(in srgb, var(--color-accent) 5%, transparent);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/*
 * Table of Contents
 * ------------------------------------------------------------------------- */
.static-content-page #table-of-contents + ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: var(--space-xxl);
}

.static-content-page #table-of-contents + ul li a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  font-weight: 600;
}

.static-content-page #table-of-contents + ul li a:hover {
  color: var(--color-accent-hover);
  background-color: color-mix(in srgb, var(--color-accent) 10%, transparent);
}

/*
 * General Content Typography
 * ------------------------------------------------------------------------- */
.static-content-page p,
.static-content-page li {
  line-height: 1.7; /* Increase line height for better text readability */
  color: var(--color-text-primary);
}

.static-content-page strong {
  color: var(--color-text-primary);
  font-weight: 700;
}

.static-content-page ul {
  padding-left: var(--space-lg);
}

.static-content-page ul ul {
  margin-top: var(--space-sm);
}
