/* Legal & Access Pages Shared Styles */

:root {
  --brand-gold: #c5a059;
  --bg-dark: #0b1516;
  --text-light: #ffffff;
}

body {
  font-family: "Vend Sans", sans-serif;
  background: linear-gradient(135deg, #041226 0%, #0b1516 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-light);
  line-height: 1.6;
}

/* Allow scrolling for long content pages */
body.scrollable {
  min-height: 100vh;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  overflow-x: hidden;
}

body.scrollable footer {
  margin-top: auto;
}

body.scrollable > .container,
body.scrollable > main .container {
  max-width: 550px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(20px, 5vh, 60px) 20px;
  box-sizing: border-box;
}

body.scrollable > .container.wide,
body.scrollable > main .container.wide {
  max-width: 1200px;
}

/* Ensure footer container remains wide on desktop */
footer .container {
  max-width: 1300px;
  margin: 0 auto;
}

.access-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 0 26px 55px rgba(4, 18, 38, 0.45);
  text-align: center;
}

.access-card.text-left {
  text-align: left;
}

.logo {
  margin-bottom: 32px;
  text-align: center;
}

.logo img {
  max-width: 200px;
  height: auto;
}

/* Typography */
h1 {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--text-light);
  text-align: center;
}

.container.wide h1 {
  font-size: 32px;
}

h2 {
  font-size: 20px;
  color: var(--brand-gold);
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  padding-bottom: 10px;
}

.subscribe-section h2 {
  border-bottom: none;
  color: var(--text-light);
  margin-top: 0;
}

.subtitle {
  font-size: 16px;
  color: rgba(234, 242, 255, 0.7);
  margin-bottom: 32px;
  line-height: 1.6;
  text-align: center;
}

.container.wide .subtitle {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 40px;
}

p {
  margin-bottom: 15px;
}

ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 8px;
}

/* Components */
.lock-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--brand-gold), #e4c68d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #000000;
  box-shadow: 0 8px 24px rgba(197, 160, 89, 0.3);
}

.contact-box {
  background: rgba(197, 160, 89, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid var(--brand-gold);
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.contact-link {
  color: var(--brand-gold);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Forms */
.form-group {
  margin-bottom: 24px;
  text-align: left;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-light);
}

input[type="password"],
input[type="email"],
input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  font-family: "Vend Sans", sans-serif;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-light);
  transition: all 0.3s ease;
}

body.scrollable input:focus {
  outline: none;
  border-color: var(--brand-gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

input::placeholder {
  color: rgba(234, 242, 255, 0.4);
}

/* Buttons */
.btn-submit {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Vend Sans", sans-serif;
  background: linear-gradient(135deg, var(--brand-gold), #e4c68d);
  color: #000000;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  -webkit-tap-highlight-color: transparent;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(197, 160, 89, 0.4);
  -webkit-tap-highlight-color: transparent;
}

.btn-subscribe {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Vend Sans", sans-serif;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  -webkit-tap-highlight-color: transparent;
}

.btn-subscribe:hover {
  background: rgba(197, 160, 89, 0.1);
  border-color: var(--brand-gold);
  transform: translateY(-2px);
  -webkit-tap-highlight-color: transparent;
}

/* Utilities */
.divider {
  margin: 32px 0;
  display: flex;
  align-items: center;
  text-align: center;
  color: rgba(234, 242, 255, 0.3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.container.wide .divider {
  margin: 40px 0 20px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  display: block;
}

.divider:not(:empty)::before,
.divider:not(:empty)::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.divider:not(:empty)::before {
  margin-right: 15px;
}

.divider:not(:empty)::after {
  margin-left: 15px;
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  display: none;
}

.error-message.show {
  display: block;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-10px);
  }

  75% {
    transform: translateX(10px);
  }
}

.info-text {
  margin-top: 24px;
  font-size: 13px;
  color: rgba(234, 242, 255, 0.5);
}

.info-text i {
  color: var(--brand-gold);
  margin-right: 6px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--brand-gold);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.back-link:hover {
  gap: 12px;
  color: white;
}

.text-center {
  text-align: center;
}

@media (max-width: 600px) {
  body {
    padding: 0;
    align-items: stretch;
    /* Prevents top cut-off on scroll */
  }

  .container {
    margin: auto;
    /* Vertically centers if space allows */
  }

  .access-card {
    padding: 24px 20px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 18px;
  }

  .subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .logo img {
    max-width: 160px;
  }

  .lock-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
    margin-bottom: 16px;
  }

  input[type="password"],
  input[type="email"],
  input[type="text"] {
    padding: 12px 16px;
    font-size: 16px;
    /* Prevents iOS zoom */
  }

  .btn-submit,
  .btn-subscribe {
    padding: 14px 20px;
    -webkit-tap-highlight-color: transparent;
  }
}
