:root {
  --green: #2F7D32;
  --deep: #1B4332;
  --mint: #E8F5E9;
  --coral: #F08A24;
  --border: #C8E6C9;
  --muted: #4A6B4E;
  --surface: #F5FAF5;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Manrope, sans-serif; background: var(--surface); color: #1A2E1C; }
a { color: var(--green); text-decoration: none; }
.nav { background: #fff; border-bottom: 1px solid var(--border); display: flex; gap: 16px; align-items: center; padding: 12px 20px; flex-wrap: wrap; }
.nav .brand { font-weight: 800; color: var(--deep); font-size: 20px; }
.nav a { color: var(--deep); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 20px; }
.btn { background: var(--coral); color: #fff; border: 0; padding: 10px 16px; border-radius: 12px; cursor: pointer; font-weight: 700; }
.btn.secondary { background: var(--green); }
.card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px; }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.listing-grid img:not(.site-logo), .hero, .listing-image { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; background: #ddd; }
.site-logo { object-fit: contain !important; background: transparent !important; }
input, select, textarea { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 10px; margin: 6px 0 12px; }
label { font-size: 13px; color: var(--muted); }
.flash { background: #dcfce7; padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; }
.err { color: #e11d48; font-size: 14px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border-bottom: 1px solid var(--border); padding: 8px; text-align: left; font-size: 14px; }
.admin-nav { background: var(--deep); color: #fff; padding: 12px 20px; display: flex; gap: 14px; flex-wrap: wrap; }
.admin-nav a { color: #fff; }
.price { color: var(--coral); font-weight: 800; }

.terms-page { max-width: 820px; margin: 0 auto; }
.terms-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.terms-title { margin: 0 0 4px; font-size: 28px; color: var(--deep); }
.terms-brand { margin: 0; font-weight: 800; color: var(--green); letter-spacing: 0.04em; }
.terms-lang { display: flex; gap: 6px; flex-shrink: 0; }
.terms-lang-btn { background: #fff; border: 1px solid var(--border); color: var(--deep); padding: 6px 14px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 13px; }
.terms-lang-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
.terms-body { line-height: 1.7; font-size: 15px; }
.terms-body h2 { margin: 28px 0 10px; font-size: 18px; color: var(--deep); border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.terms-body h3 { margin: 18px 0 8px; font-size: 16px; color: var(--deep); }
.terms-body h2:first-of-type { margin-top: 0; }
.terms-body p { margin: 0 0 12px; }
.terms-body ul, .terms-body ol { margin: 0 0 14px; padding-left: 22px; }
.terms-body li { margin-bottom: 6px; }
.terms-tagline { font-size: 17px; font-weight: 700; color: var(--green); }
.terms-updated { font-size: 13px; color: var(--muted); margin-bottom: 20px !important; }
.terms-meta { font-size: 14px; color: var(--muted); margin: 0 0 8px; line-height: 1.6; }
.terms-acceptance { background: var(--mint); padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.terms-acceptance-note { font-size: 13px; color: var(--muted); font-style: italic; }
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.site-header__brand { font-weight: 800; color: var(--deep); font-size: 20px; flex-shrink: 0; }
.site-header__nav { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.site-header__nav a { color: var(--deep); font-size: 14px; font-weight: 600; }
.site-header__logout { display: inline; margin: 0; }
.site-header__logout .btn { padding: 8px 14px; font-size: 13px; }
.site-header__locale { margin-left: 4px; }
.site-header__lang-select { padding: 6px 28px 6px 10px; font-size: 13px; font-weight: 700; color: var(--deep); border: 1px solid var(--border); border-radius: 8px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a3a2a' d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 8px center; appearance: none; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-footer { margin-top: 40px; padding: 28px 0 20px; border-top: 1px solid var(--border); text-align: center; font-size: 14px; color: var(--muted); }
.site-footer__contact { margin-bottom: 20px; }
.site-footer__heading { margin: 0 0 12px; font-size: 18px; color: var(--deep); }
.site-footer__row { margin: 0 0 8px; line-height: 1.6; }
.site-footer__label { font-weight: 600; color: var(--deep); margin-right: 6px; }
.site-footer__legal { margin-bottom: 16px; }
.site-footer__legal a { margin: 0 8px; }
.site-footer__powered { margin: 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.site-footer__powered a { font-weight: 600; }
@media (max-width: 768px) {
  .site-header__nav { gap: 10px; }
  .site-header__nav a { font-size: 13px; }
}
@media (max-width: 600px) {
  .terms-header { flex-direction: column; }
  .terms-lang { align-self: flex-end; }
}
