html,
body {
  height: 100%;
  margin: 0;
}

main {
  flex: 1;
}

body {
  font-family: "Josefin Sans", Arial, sans-serif;
  font-size: 1.05rem;
  color: #222;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1050px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

header {
  background-color: #eaf5fb;
  width: 100%;
  border-bottom: 1px solid #d0dbe0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo img {
  height: 90px;
  width: auto;
}

header nav {
  display: flex;
  gap: 24px;
  font-size: 1.1rem;
}

header .user-block a,
header nav a {
  text-decoration: none;
  color: #005a7c;
  font-weight: 500;
}

header .user-block a:hover,
header nav a:hover {
  text-decoration: underline;
}

header .user-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .user-block img {
  height: 42px;
  width: 42px;
  border-radius: 50%;
}

.nav-close {
  display: none;
}

.site-footer {
  background: #eaf5fb;
  width: 100%;
  border-top: 1px solid #c7dce7;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
}

.footer-logo img {
  height: 70px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: #005a7c;
}

.footer-links a p {
  margin: 0;
  cursor: pointer;
  color: #005a7c;
  font-weight: 500;
}

.footer-links a:hover p {
  text-decoration: underline;
}

.footer-copy p {
  margin: 0;
  font-weight: 600;
}

.legal-page {
  padding: 40px 0;
  background-color: #fff;
}

.legal-page h1 {
  font-size: 2rem;
  color: #005a7c;
  margin-bottom: 40px;
  text-align: center;
  border-bottom: 3px solid #005a7c;
  padding-bottom: 20px;
}

.legal-section {
  margin-bottom: 36px;
  line-height: 1.8;
}

.legal-section h2 {
  font-size: 1.4rem;
  color: #005a7c;
  margin-bottom: 16px;
  margin-top: 24px;
}

.legal-section p {
  margin: 12px 0;
  color: #333;
}

.legal-section ul {
  margin: 12px 0;
  padding-left: 24px;
}

.legal-section li {
  margin: 8px 0;
  color: #333;
}

.legal-section a {
  color: #005a7c;
  text-decoration: none;
}

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

.legal-footer {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
  .legal-page h1 {
    font-size: 1.6rem;
    margin-bottom: 24px;
  }

  .legal-section h2 {
    font-size: 1.1rem;
  }

  .legal-section {
    margin-bottom: 24px;
  }
}

.legal-page {
  padding: 40px 0;
  background-color: #fff;
}

.legal-page h1 {
  font-size: 2rem;
  color: #005a7c;
  margin-bottom: 40px;
  text-align: center;
  border-bottom: 3px solid #005a7c;
  padding-bottom: 20px;
}

.legal-section {
  margin-bottom: 36px;
  line-height: 1.8;
}

.legal-section h2 {
  font-size: 1.4rem;
  color: #005a7c;
  margin-bottom: 16px;
  margin-top: 24px;
}

.legal-section p {
  margin: 12px 0;
  color: #333;
}

.legal-section ul {
  margin: 12px 0;
  padding-left: 24px;
}

.legal-section li {
  margin: 8px 0;
  color: #333;
}

.legal-section a {
  color: #005a7c;
  text-decoration: none;
}

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

.legal-footer {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.pwa-banner {
  position: sticky;
  top: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  padding: 0.75rem 1rem;

  background: #00293f;
  color: white;

  font-size: 0.9rem;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.pwa-banner__actions {
  display: flex;
  gap: 0.5rem;
}

.pwa-banner button {
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

#pwa-install-btn {
  font-weight: 600;
}

#pwa-close-btn {
  background: transparent;
  color: white;
  font-size: 1rem;
}

.campus-nav {
  position: relative;
  display: inline-flex;
  justify-content: center;
}

.campus-trigger {
  cursor: pointer;
  text-decoration: none;
  color: #005a7c;
  font-weight: 500;
}

.campus-dropdown {
  display: none;
  position: absolute;
  justify-items: center;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(#379cd0, #00293f);
  border-radius: 10px;
  min-width: 200px;
  z-index: 999;
  overflow: hidden;
}

.campus-dropdown a {
  display: block;
  padding: 10px 12px;
  color: white;
  text-decoration: none;
}

.campus-dropdown a:hover {
  background: #00293f;
  text-decoration: none;
}

.campus-nav:hover .campus-dropdown {
  display: block;
}

.campus-nav.active .campus-dropdown {
  display: block;
}

@media (max-width: 768px) {
  .legal-page h1 {
    font-size: 1.6rem;
    margin-bottom: 24px;
  }

  .legal-section h2 {
    font-size: 1.1rem;
  }

  .legal-section {
    margin-bottom: 24px;
  }

  .campus-trigger {
    font-size: 1.4rem;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
    width: 100%;
    text-align: center;
  }

  .campus-dropdown {
    left: 50%;
    transform: translateX(-50%);
  }
}
