﻿:root {
  --primary: #70ad47;
  --primary-soft: #e8f3df;
  --accent: #5a8a39;
  --text: #373534;
  --text-soft: #686663;
  --surface: #ffffff;
  --surface-alt: #f7faf5;
  --border: #dbe6d3;
  --shadow: 0 16px 42px rgba(40, 56, 32, 0.1);
}

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

body {
  margin: 0;
  font-family: "Source Serif 4", serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% -6%, rgba(112, 173, 71, 0.2), transparent 45%),
    linear-gradient(180deg, #f4f7f0 0%, #f9fbf8 48%, #f5f8f3 100%);
  line-height: 1.72;
}

.site-shell {
  width: min(960px, 92vw);
  margin: 32px auto 48px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.brand-block {
  font-family: "Manrope", sans-serif;
}

.brand-name {
  display: block;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--text);
}

.brand-name .brand-baher {
  color: var(--accent);
}

.brand-name sup {
  font-size: 0.55em;
  line-height: 0;
  vertical-align: super;
  margin-left: 1px;
}

.page-tag {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.05rem, 2.1vw, 1.32rem);
  font-weight: 700;
  line-height: 1.25;
}

.tab-nav {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  padding: 4px;
}

.tab-nav a {
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: 8px 14px;
  border-radius: 999px;
}

.tab-nav a[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--accent);
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.legal-head {
  padding: 22px clamp(16px, 4vw, 32px) 18px;
  background: linear-gradient(180deg, #fcfefb, var(--surface-alt));
  border-bottom: 1px solid var(--border);
}

h1,
h2,
.meta-label {
  font-family: "Manrope", sans-serif;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.6vw, 2.3rem);
  line-height: 1.16;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.meta-row div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 170px;
}

.meta-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.meta-value {
  display: block;
  margin-top: 2px;
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

.legal-body {
  padding: clamp(20px, 4vw, 34px);
}

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

h2 {
  margin: 28px 0 8px;
  font-size: clamp(1.08rem, 2.4vw, 1.26rem);
}

ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.36rem;
}

a {
  color: var(--accent);
}

@media (max-width: 720px) {
  .site-shell {
    width: min(980px, 94vw);
    margin-top: 22px;
  }

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .tab-nav {
    width: 100%;
  }

  .tab-nav a {
    flex: 1 1 50%;
    text-align: center;
  }

  .meta-row div {
    flex: 1 1 100%;
    min-width: 0;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-shell {
    width: auto;
    margin: 0;
  }

  .top-bar {
    display: none;
  }

  .legal-card {
    border: 0;
    box-shadow: none;
  }

  .legal-head {
    background: #fff;
  }
}
