* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
}

.legal-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 20px;
}

.legal-header__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-header__logo {
  text-decoration: none;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.site-brand__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(145deg, #0e9499 0%, #0b7a7f 100%);
  box-shadow: 0 4px 12px rgba(14, 148, 153, 0.28);
  position: relative;
}

.site-brand__icon::before,
.site-brand__icon::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 2px;
}

.site-brand__icon::before {
  width: 18px;
  height: 4px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.site-brand__icon::after {
  width: 4px;
  height: 18px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.site-brand__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.site-brand__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a2e35;
}

.site-brand__title em {
  font-style: normal;
  color: #0e9499;
}

.site-brand__subtitle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7c85;
}

.site-brand--compact .site-brand__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.site-brand--compact .site-brand__icon::before {
  width: 14px;
}

.site-brand--compact .site-brand__icon::after {
  height: 14px;
}

.site-brand--compact .site-brand__title {
  font-size: 18px;
}

.legal-header__back {
  color: #c73e32;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.legal-header__back:hover {
  text-decoration: underline;
}

.legal-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  background: #fff;
  min-height: 60vh;
}

.legal-main h1 {
  font-size: 28px;
  margin: 0 0 24px;
  color: #222;
}

.legal-main h2 {
  font-size: 20px;
  margin: 28px 0 12px;
  color: #333;
}

.legal-main h3 {
  font-size: 17px;
  margin: 20px 0 8px;
  color: #444;
}

.legal-main p {
  margin: 0 0 14px;
}

.legal-main ul,
.legal-main ol {
  margin: 0 0 14px;
  padding-left: 24px;
}

.legal-main li {
  margin-bottom: 6px;
}

.legal-main a {
  color: #c73e32;
}

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

.legal-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.legal-form input,
.legal-form textarea,
.legal-form select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
}

.legal-form button {
  background: #c73e32;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.legal-form button:hover {
  background: #a53022;
}

.legal-faq details {
  margin-bottom: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 12px 16px;
}

.legal-faq summary {
  font-weight: 700;
  cursor: pointer;
}

.legal-review {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
}

.legal-review__author {
  font-weight: 700;
  margin-top: 8px;
}

.legal-review__date {
  color: #777;
  font-size: 13px;
}

.legal-footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 28px 20px;
  font-size: 13px;
}

.legal-footer__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.legal-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.legal-footer__nav a {
  color: #ecf0f1;
  text-decoration: none;
}

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

.legal-footer__copy {
  color: #95a5a6;
  font-size: 12px;
}

.legal-contact-info {
  background: #f0f4f8;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 24px;
}

.legal-contact-info p {
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .legal-main h1 {
    font-size: 22px;
  }
}
