@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Inter:wght@300;400;500;600&display=swap');


/* === BASE LAYOUT === */
.legal-page {
  background-color: #f9f9f9;
  font-family: 'Inter', sans-serif;
  color: #192231;
  padding: 40px 20px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* === GLASS CONTENT CONTAINER === */
.legal-container {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  padding: 30px 28px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* === HEADINGS === */
.legal-container h1 {
  font-family: 'Georgia', serif;
  font-size: 1.9rem;
  margin-bottom: 14px;
  color: #192231;
  border-bottom: 2px solid rgba(25,34,49,0.25);
  padding-bottom: 6px;
}

.legal-container h2 {
  margin-top: 26px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #192231;
  font-family: 'Georgia', serif;
}

/* === BODY TEXT === */
.legal-container p,
.legal-container li {
  font-size: 0.96rem;
  color: rgba(25,34,49,0.85);
  margin-bottom: 10px;
}

.legal-container ul {
  margin-left: 20px;
  margin-top: 8px;
}

.legal-container em {
  color: rgba(25,34,49,0.65);
  font-style: italic;
}

/* === LINKS: neutral, subtle underline === */
.legal-container a {
  color: #192231;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(25,34,49,0.25);
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.legal-container a:hover,
.legal-container a:focus {
  opacity: 0.7;
  border-bottom-color: rgba(25,34,49,0.5);
  outline: none;
}

/* === FOOTER / BACK BUTTON === */
.legal-footer {
  margin-top: 40px;
  text-align: center;
}
/* =========================================
   BACK BUTTON — COMPACT EXPORT STYLE
========================================= */

.back-btn {
  background: #3a4a6b !important;        /* lighter navy base */
  color: #ffffff !important;

  border-radius: 12px !important;
  border: 2px solid #2f3e5a !important;
  border-bottom: 4px solid #1f2d45 !important;

  transition: transform 0.1s ease, border-bottom-width 0.1s ease;
  font-weight: 700;
  font-size: 14px;

  display: inline-flex;      /* prevents full width */
  align-items: center;
  justify-content: center;

  padding: 6px 10px;         /* much less wide */
  min-height: 32px;          /* smaller than export-btn */

  cursor: pointer;
  text-align: left;
}

/* Icon inside back button */
.back-btn i {
  color: #ffffff !important;
  margin-right: 6px;
}

/* Remove any hover colour change */
.back-btn:hover {
  background: #3a4a6b !important;
  color: #ffffff !important;
  border-color: #2f3e5a !important;
  border-bottom-color: #1f2d45 !important;
}

/* Pressed state */
.back-btn:active {
  transform: translateY(2px);
  border-bottom-width: 2px !important;
}


/* MOBILE QUERY */
@media (max-width: 768px) {
  .back-btn {
    padding: 5px 8px;
    min-height: 30px;
    border-bottom-width: 3px !important;
  }
}

/* === RESPONSIVE === */
@media only screen and (max-width: 480px) {

  .legal-container {
    padding: 24px 18px;
    border-radius: 12px;
  }

  .legal-container h1 {
    font-size: 1.45rem;
  }

  .legal-container h2 {
    font-size: 1rem;
  }

  .legal-container p,
  .legal-container li {
    font-size: 0.87rem;
  }

  .back-btn {
    font-size: 0.82rem;
    padding: 8px 16px;
  }
}
