@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=DM+Sans:wght@400;500;600&display=swap");

/* Юридические страницы (оферта, политика, возврат, реквизиты).
   Палитра повторяет main_page.css, чтобы страницы выглядели частью сайта. */
:root {
  --cream: #faf7f2;
  --ink: #1a1209;
  --ink-light: #4a3f32;
  --ink-muted: #9a8e82;
  --accent: #c84b2f;
  --border: #e8e0d5;
  --radius-md: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
}

.legal-header {
  background: var(--ink);
  color: var(--cream);
  padding: 20px 16px;
  text-align: center;
}
.legal-header a {
  color: var(--cream);
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 700;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.legal-nav a {
  color: var(--ink-light);
  text-decoration: none;
}
.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  color: var(--accent);
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 6px;
}
.legal-meta {
  color: var(--ink-muted);
  font-size: 13px;
  margin: 0 0 24px;
}
h2 {
  font-size: 17px;
  margin: 28px 0 8px;
}
p,
ul,
ol {
  margin: 0 0 12px;
}
ul,
ol {
  padding-left: 22px;
}
li {
  margin-bottom: 4px;
}
a {
  color: var(--accent);
}

.req-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.req-table th,
.req-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.req-table tr:last-child th,
.req-table tr:last-child td {
  border-bottom: none;
}
.req-table th {
  width: 38%;
  font-weight: 500;
  color: var(--ink-light);
}

.legal-footer {
  border-top: 1px solid var(--border);
  padding: 20px 16px 32px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 12.5px;
}

@media (max-width: 480px) {
  .req-table th,
  .req-table td {
    display: block;
    width: 100%;
  }
  .req-table th {
    padding-bottom: 0;
    border-bottom: none;
  }
}
