:root {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Sora", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --bg: #f5f5f5;
  --ink: #111;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

.termsPage {
  min-height: auto;
  background: #f5f5f5;
  color: #111;
  padding: 64px 24px 32px;
}

.termsContainer {
  width: min(820px, 92vw);
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

.termsContainer h1 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  font-family: var(--font-heading);
}

.termsContainer h2 {
  margin: 24px 0 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.termsHome {
  display: inline-block;
  margin-bottom: 0;
}

.termsNav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 16px;
  margin-bottom: 16px;
}

.termsLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 0;
  justify-self: center;
}

.termsNavSelect {
  display: none;
}

.termsSelect {
  font: inherit;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid #0AC2CC;
  background: #fff;
  color: #111;
  padding: 8px 12px;
}

.termsNav a {
  color: #111;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.7;
}

.termsNav a:hover {
  text-decoration: underline;
  opacity: 1;
}

.termsNav a.isActive {
  font-weight: 900;
  opacity: 1;
  text-decoration: none;
}

.termsContainer p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.reportForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.reportLabel {
  font-size: 13px;
  font-weight: 700;
  color: #3a3a3a;
}

.authField,
.reportTextarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #c7c7c7;
  width: 100%;
  background: #fff;
  color: #111;
}

.reportTextarea {
  min-height: 120px;
  resize: vertical;
}

.authBtn {
  align-self: flex-start;
  font: inherit;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 10px;
  border: 2px solid #0AC2CC;
  background: #0AC2CC;
  color: #fff;
  cursor: pointer;
}

.authBtn:hover {
  filter: brightness(1.05);
}

.termsContainer ul {
  margin: 0 0 14px 20px;
  padding: 0;
  color: #333;
}

.termsContainer li {
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .termsPage {
    padding: 48px 16px 24px;
  }

  .termsContainer {
    padding: 22px;
  }

  .termsNav {
    grid-template-columns: 1fr;
    justify-items: start;
    row-gap: 12px;
  }

  .termsLinks {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .termsLinks {
    display: none;
  }

  .termsNavSelect {
    display: block;
  }
}
