/*
 * Shared styling for the static legal pages (privacy.html, terms.html).
 *
 * These pages are deliberately plain static HTML served straight out of
 * public/. They must render with no JavaScript and no sign-in, because
 * Google's OAuth verification crawler reads them that way.
 */

:root {
  --coe-navy: #05163d;
  --coe-teal: #197a7b;
  --coe-ink: #1a2125;
  --coe-border: #ccd5dc;
  --coe-surface: #ffffff;
  --coe-surface-muted: #f4f7f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 1.25rem 4rem;
  background: #eef2f4;
  color: var(--coe-ink);
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
}

.policy-page {
  max-width: 46rem;
  margin: 0 auto;
  background: var(--coe-surface);
  border: 1px solid var(--coe-border);
  border-radius: 8px;
  padding: 2.5rem;
  margin-top: 2.5rem;
}

header.policy-header {
  border-bottom: 3px solid var(--coe-teal);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

h1 {
  font-family: "Barlow Semi Condensed", system-ui, sans-serif;
  font-size: 2.25rem;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: var(--coe-navy);
}

h2 {
  font-family: "Barlow Semi Condensed", system-ui, sans-serif;
  font-size: 1.4rem;
  margin: 2.25rem 0 0.6rem;
  color: var(--coe-navy);
}

h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.4rem;
}

p,
li {
  margin: 0 0 0.9rem;
}

ul {
  padding-left: 1.25rem;
}

a {
  color: var(--coe-teal);
}

a:hover {
  text-decoration: underline;
}

.subtitle {
  margin: 0;
  font-size: 1.05rem;
}

.meta {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #55636b;
}

/* The Limited Use statement is the sentence a Google reviewer looks for.
   Keep it visually set apart. */
.limited-use {
  border-left: 4px solid var(--coe-teal);
  background: var(--coe-surface-muted);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-weight: 700;
}

.callout {
  border: 1px solid var(--coe-border);
  background: var(--coe-surface-muted);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

th,
td {
  border: 1px solid var(--coe-border);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--coe-surface-muted);
}

.table-scroll {
  overflow-x: auto;
}

footer.policy-footer {
  border-top: 1px solid var(--coe-border);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: 0.9rem;
  color: #55636b;
}

@media (max-width: 34rem) {
  .policy-page {
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.75rem;
  }
}
