/* ============================================
   FOOTER CSS — Improved Classic Layout
   Same color theme: #d9deff/#b8c2ff gradient,
   #4b3dff accent, #1f2847 headings, #7b7f9f text
============================================ */

/* ============================================
   15. FOOTER — BASE STYLES
============================================ */

.info {
  background: linear-gradient(180deg, #d9deff 0%, #b8c2ff 100%);
  padding: 0 20px 20px;
}

/* Thin accent bar at the very top of the footer */
.rb-top-accent {
  height: 3px;
  background: linear-gradient(90deg, #4b3dff 0%, #a78bfa 50%, #b8c2ff 100%);
  margin: 0 -20px 0;
}

.rb-footer-grid {
  max-width: 1250px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 55px;
  padding-top: 40px;
  padding-bottom: 32px;
}

/* ── Brand column ── */
.rb-brand-box {
  width: 100%;
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: -10px;
  margin-left: 10px;
}

.rb-logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.logos {
  background-size: contain;
  background-position-y: center;
  background-repeat: no-repeat;
  width: 200px;
  height: 55px;
}

.rb-brand-text {
  color: #7b7f9f;
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 18px;
  text-align: left;
}

.rb-social-row {
  display: flex;
  gap: 10px;
}

.rb-social-row a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(75, 61, 255, 0.2);
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #1e2648;
  font-size: 14px;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

.rb-social-row a:hover {
  color: #4b3dff;
  background: rgba(75, 61, 255, 0.1);
  border-color: #4b3dff;
  transform: translateY(-2px);
}

/* ── Link columns ── */
.rb-link-column {
  display: flex;
  flex-direction: column;
}

.rb-link-column h3 {
  font-size: 11px;
  color: #1f2847;
  margin-bottom: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rb-link-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rb-link-column ul li a {
  text-decoration: none;
  color: #7b7f9f;
  font-size: 13.5px;
  transition:
    color 0.2s,
    padding-left 0.2s;
  display: inline-block;
}

.rb-link-column ul li a:hover {
  color: #4b3dff;
  padding-left: 4px;
}

/* ── Footer bottom ── */
.rb-footer-bottom {
  max-width: 1250px;
  margin: 0 auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(100, 90, 200, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.rb-copy-text {
  color: #7b7f9f;
  font-size: 13px;
  margin: 0 !important;
}

.rb-feature-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.rb-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #37415f;
}

.rb-feature-item i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.rb-feature-item:nth-child(1) i {
  background: #e7fff4;
  color: #14c98b;
}
.rb-feature-item:nth-child(2) i {
  background: #eef1ff;
  color: #4f67ff;
}
.rb-feature-item:nth-child(3) i {
  background: #eefcff;
  color: #34c7e7;
}
.rb-feature-item:nth-child(4) i {
  background: #f1f3ff;
  color: #5f6dff;
}

/* ============================================
   17. DARK MODE — FOOTER
============================================ */
body.dark .info {
  background: linear-gradient(180deg, #070c1a 0%, #020408 100%);
}

body.dark .rb-top-accent {
  background: linear-gradient(90deg, #4b3dff 0%, #6d5fff 50%, #2a2060 100%);
  opacity: 0.8;
}

body.dark .rb-footer-grid {
  border-bottom-color: rgba(165, 180, 252, 0.1);
}

body.dark .rb-logo-area img,
body.dark .logos {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

body.dark .rb-brand-text {
  color: #94a3b8;
}

body.dark .rb-social-row a {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(165, 180, 252, 0.2);
}

body.dark .rb-social-row a:hover {
  color: #a5b4fc;
  background: rgba(75, 61, 255, 0.15);
  border-color: #a5b4fc;
}

body.dark .rb-link-column h3 {
  color: #f1f5f9;
}

body.dark .rb-link-column ul li a {
  color: #94a3b8;
}

body.dark .rb-link-column ul li a:hover {
  color: #a5b4fc;
}

body.dark .rb-copy-text {
  color: #94a3b8;
}

body.dark .rb-feature-item {
  color: #e2e8f0;
}

body.dark .rb-feature-item span {
  color: #e2e8f0;
}

body.dark .rb-feature-item:nth-child(1) i {
  background: rgba(20, 201, 139, 0.15);
  color: #4ade80;
}
body.dark .rb-feature-item:nth-child(2) i {
  background: rgba(79, 103, 255, 0.15);
  color: #818cf8;
}
body.dark .rb-feature-item:nth-child(3) i {
  background: rgba(52, 199, 231, 0.15);
  color: #67e8f9;
}
body.dark .rb-feature-item:nth-child(4) i {
  background: rgba(95, 109, 255, 0.15);
  color: #a5b4fc;
}

/* ============================================
   18. RESPONSIVE — FOOTER MEDIA QUERIES
============================================ */

/* --- ≤ 1100px --- */
@media (max-width: 1100px) {
  .rb-footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .rb-brand-box {
    grid-column: 1 / -1;
    align-items: center;
  }
  .rb-brand-text {
    text-align: center;
  }
  .rb-social-row {
    justify-content: center;
  }
}

/* --- 768px to 1024px (Tablet) --- */
@media (min-width: 769px) and (max-width: 1100px) {
  .rb-footer-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-template-areas:
      "brand brand brand brand"
      "legal tools company resources" !important;
    justify-items: center !important;
    align-items: start !important;
    text-align: center !important;
    gap: 40px 20px !important;
  }
  .rb-brand-box {
    grid-area: brand !important;
    width: 100% !important;
    max-width: 500px !important;
    justify-self: center !important;
    text-align: center !important;
    align-items: center !important;
    margin-bottom: 20px;
  }
  .rb-brand-text {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .rb-logo-area,
  .rb-social-row {
    justify-content: center !important;
  }
  .rb-link-column:nth-child(2) {
    grid-area: legal !important;
  }
  .rb-link-column:nth-child(3) {
    grid-area: tools !important;
  }
  .rb-link-column:nth-child(4) {
    grid-area: company !important;
  }
  .rb-link-column:nth-child(5) {
    grid-area: resources !important;
  }
  .rb-link-column {
    width: 100% !important;
    text-align: center !important;
    align-items: center !important;
  }
  .rb-link-column ul {
    align-items: center !important;
  }
}

/* --- 769px to 900px --- */
@media (min-width: 769px) and (max-width: 900px) {
  .rb-footer-grid {
    gap: 24px 14px !important;
  }
  .rb-link-column ul li a {
    font-size: 12px !important;
  }
  .rb-link-column h3 {
    font-size: 10px !important;
  }
}

/* --- ≤ 768px (mobile) --- */
@media (max-width: 768px) {
  .info {
    padding: 0 14px 18px;
  }
  .rb-footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .rb-feature-row {
    gap: 18px;
    justify-content: center;
  }
  .rb-footer-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 24px;
  }
  .rb-brand-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .rb-brand-text {
    text-align: center !important;
  }
  .rb-link-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .rb-link-column ul li a:hover {
    padding-left: 0;
  }
  .rb-logo-area {
    justify-content: center !important;
  }
  .rb-social-row {
    justify-content: center !important;
  }
  .rb-link-column h3 {
    text-align: center !important;
    width: 100%;
  }
  .rb-link-column ul {
    align-items: center !important;
  }
}

/* --- ≤ 995px — hide 4th feature item --- */
@media (max-width: 995px) {
  .rb-feature-item:nth-child(4) {
    display: none;
  }
}

/* --- ≤ 798px --- */
@media (max-width: 800px) {
  .rb-footer-bottom {
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
  }
  .rb-feature-row {
    margin: auto;
    justify-content: center;
  }
  .rb-feature-item:nth-child(4) {
    display: flex;
  }
  .rb-copy-text {
    text-align: center !important;
    display: block;
    margin: auto !important;
  }
}

/* --- ≤ 690px --- */
@media (max-width: 690px) {
  .rb-feature-item:nth-child(4) {
    display: none;
  }
}

/* --- ≤ 480px --- */
@media (max-width: 480px) {
  .info {
    padding: 0 10px 16px;
  }
  .rb-brand-box,
  .rb-link-column {
    align-items: center !important;
  }
  .rb-brand-text {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* --- ≤ 320px --- */
@media (max-width: 320px) {
  .info {
    padding: 0 8px 12px !important;
  }
  .rb-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    text-align: center;
  }
  .rb-brand-box,
  .rb-link-column {
    align-items: center !important;
    text-align: center !important;
  }
  .logos {
    width: 140px !important;
    height: 40px !important;
  }
  .rb-brand-text {
    font-size: 11px !important;
  }
  .rb-social-row {
    gap: 8px !important;
    justify-content: center !important;
  }
  .rb-social-row a {
    width: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
  }
  .rb-link-column h3 {
    font-size: 10px !important;
    margin-bottom: 10px !important;
  }
  .rb-link-column ul li a {
    font-size: 11px !important;
  }
  .rb-footer-bottom {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 0 !important;
  }
  .rb-copy-text {
    font-size: 10px !important;
  }
  .rb-feature-row {
    gap: 10px !important;
    flex-wrap: wrap !important;
  }
  .rb-feature-item {
    font-size: 10px !important;
    gap: 6px !important;
  }
  .rb-feature-item i {
    width: 22px !important;
    height: 22px !important;
    font-size: 9px !important;
  }
  html,
  body {
    overflow-x: hidden !important;
    width: 100% !important;
  }
}

/* ============================================
   LARGE SCREEN MEDIA QUERIES — FOOTER
============================================ */

@media (min-width: 1360px) {
  .rb-footer-grid,
  .rb-footer-bottom {
    max-width: 1440px;
  }
  .rb-footer-grid {
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 42px;
  }
  .rb-link-column h3 {
    font-size: 11px;
  }
  .rb-link-column ul li a {
    font-size: 14px;
  }
}

@media (min-width: 1600px) {
  .rb-footer-grid,
  .rb-footer-bottom {
    max-width: 1600px;
  }
  .rb-footer-grid {
    gap: 48px;
  }
}

@media (min-width: 1920px) {
  .rb-footer-grid,
  .rb-footer-bottom {
    max-width: 1820px;
  }
  .rb-footer-grid {
    gap: 54px;
  }
}

@media (min-width: 2560px) {
  .rb-footer-grid,
  .rb-footer-bottom {
    max-width: 2200px;
  }
  .rb-footer-grid {
    gap: 60px !important;
    padding-top: 50px !important;
    padding-bottom: 42px !important;
  }
  .rb-brand-text {
    font-size: 20px !important;
    line-height: 1.9 !important;
  }
  .rb-link-column h3 {
    font-size: 14px !important;
    margin-bottom: 22px !important;
  }
  .rb-link-column ul li a {
    font-size: 18px !important;
  }
  .rb-social-row a {
    width: 44px !important;
    height: 44px !important;
    font-size: 20px !important;
  }
  .rb-copy-text {
    font-size: 18px !important;
  }
  .rb-feature-item {
    font-size: 18px !important;
    gap: 14px !important;
  }
  .rb-feature-item i {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
  }
  .logos {
    width: 260px !important;
    height: 72px !important;
  }
}

@media (min-width: 798px) and (max-width: 884px) {
  .rb-feature-row {
    gap: 18px !important;
  }
}
