/*
 * Styles for the four legal pages (Serbian and English privacy + cookie policies).
 *
 * Deliberately standalone rather than built on the WordPress theme stylesheet. These are
 * long-form documents that need readable measure and legible tables; the exported theme CSS
 * carries a lot of course-page layout that would have to be fought rather than reused. The brand
 * colour is taken from the theme (#66042b) so the pages still look like part of the site.
 */

:root {
  --brand: #66042b;
  --brand-soft: #f6eef2;
  --text: #262626;
  --text-muted: #5a5a5a;
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --border: #dfdfdf;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

.legal-header {
  background: var(--brand);
  color: #fff;
  padding: 2.5rem 1.5rem 2rem;
}

.legal-header .wrap,
main.legal,
.legal-footer .wrap {
  max-width: 800px;
  margin: 0 auto;
}

.legal-header a.back {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.9rem;
}

.legal-header a.back:hover {
  text-decoration: underline;
}

.legal-header h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.25;
}

.legal-header .updated {
  margin: 0.6rem 0 0;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.85);
}

.legal-header .lang {
  margin: 0.9rem 0 0;
  font-size: 0.93rem;
}

.legal-header .lang a {
  color: #fff;
}

main.legal {
  padding: 2.25rem 1.5rem 3rem;
}

main.legal section {
  margin-bottom: 2.1rem;
}

main.legal h2 {
  font-size: 1.35rem;
  margin: 0 0 0.6rem;
  color: var(--brand);
}

main.legal h3 {
  font-size: 1.06rem;
  margin: 1.2rem 0 0.4rem;
}

main.legal p,
main.legal li {
  color: var(--text-muted);
}

main.legal p {
  margin: 0 0 0.8rem;
}

main.legal ul,
main.legal ol {
  margin: 0.6rem 0 0.9rem 1.3rem;
  padding: 0;
}

main.legal li {
  margin-bottom: 0.4rem;
}

main.legal a {
  color: var(--brand);
}

.callout {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 0.9rem 1.15rem;
  margin: 0 0 1rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 0.9rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 33rem;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-muted);
}

th {
  background: var(--bg-alt);
  color: var(--text);
}

code {
  background: var(--bg-alt);
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  font-size: 0.92em;
}

.legal-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 1.6rem 1.5rem;
  font-size: 0.92rem;
}

.legal-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.4rem;
  color: var(--text-muted);
}

.legal-footer a {
  color: var(--text-muted);
}

/* Withdrawal must be as easy to reach as granting was, so it is a real button on every page. */
.footer-legal__btn {
  font: inherit;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
}

.footer-legal__btn:hover {
  color: var(--brand);
  border-color: var(--brand);
}

@media (max-width: 600px) {
  .legal-header h1 {
    font-size: 1.55rem;
  }

  main.legal {
    padding: 1.8rem 1.1rem 2.4rem;
  }
}
