/* =============================================
   legal.css
   Hypotenuse EDU — Legal Pages & Contact
   Complete Styling for All Pages
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=DM+Sans:wght@400;500;600;700&display=swap');

/* =============================================
   CSS VARIABLES
   ============================================= */

:root {
  --brand-dark: #253439;
  --brand-dark-deep: #1a272b;
  --brand-sand: #a49177;
  --brand-sand-light: #c8b89a;
  --brand-white: #ffffff;
  --bg-canvas: #f8f9fa;
  --text-primary: #1a272b;
  --text-secondary: #5a6a6e;
  --text-muted: #9aabb0;
  --border-subtle: #eaecee;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
}

/* =============================================
   GLOBAL RESET
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--bg-canvas);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* =============================================
   HEADER NAVIGATION
   ============================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: box-shadow 0.3s;
}

.header--scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  color: var(--brand-sand);
}

.logo-text {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-dark);
}

.logo-text span {
  color: var(--brand-sand);
}

.nav-right {
  display: flex;
  gap: 12px;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  border: none;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand-sand);
  color: white;
}

.btn-primary:hover {
  background: #8b7355;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(164,145,119,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--brand-dark);
  border: 2px solid var(--brand-dark);
}

.btn-outline:hover {
  background: var(--brand-dark);
  color: white;
}

.btn-block {
  width: 100%;
  display: flex;
}

/* =============================================
   LEGAL PAGE LAYOUT
   ============================================= */

.legal-page {
  min-height: 100vh;
  padding: 120px 24px 80px;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
}

/* =============================================
   PAGE HEADER
   ============================================= */

.legal-header {
  text-align: center;
  margin-bottom: 48px;
}

.legal-header__icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--brand-sand), #8b7355);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: white;
}

.legal-header__icon svg {
  width: 40px;
  height: 40px;
}

.legal-header__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 12px;
  line-height: 1.2;
}

.legal-header__subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .legal-header__title {
    font-size: 32px;
  }
}

/* =============================================
   LEGAL CONTENT
   ============================================= */

.legal-content {
  background: white;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .legal-content {
    padding: 32px 24px;
  }
}

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

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 16px;
  padding-top: 16px;
}

.legal-section h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 24px 0 12px;
}

.legal-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.legal-section ul {
  list-style: none;
  padding-left: 0;
  margin: 16px 0;
}

.legal-section li {
  padding: 12px 0 12px 32px;
  position: relative;
  line-height: 1.7;
  color: var(--text-primary);
}

.legal-section li::before {
  content: '•';
  position: absolute;
  left: 12px;
  color: var(--brand-sand);
  font-weight: 700;
  font-size: 20px;
}

.legal-section strong {
  color: var(--brand-dark);
  font-weight: 600;
}

.legal-contact {
  background: var(--bg-canvas);
  padding: 20px;
  border-radius: 12px;
  margin: 16px 0;
}

.legal-link {
  color: var(--brand-sand);
  font-weight: 600;
  transition: color 0.2s;
}

.legal-link:hover {
  color: #8b7355;
  text-decoration: underline;
}

.legal-footer-note {
  margin-top: 40px;
  padding: 24px;
  background: rgba(164, 145, 119, 0.08);
  border-left: 4px solid var(--brand-sand);
  border-radius: 12px;
}

.legal-footer-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

/* =============================================
   FAQ PAGE
   ============================================= */

.faq-categories {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.faq-category-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--border-subtle);
  background: white;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.faq-category-btn:hover {
  border-color: var(--brand-sand);
  color: var(--brand-sand);
}

.faq-category-btn--active {
  background: var(--brand-sand);
  border-color: var(--brand-sand);
  color: white;
}

.faq-list {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item__question {
  width: 100%;
  padding: 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s;
}

.faq-item__question:hover {
  background: var(--bg-canvas);
}

.faq-item__icon {
  width: 20px;
  height: 20px;
  color: var(--brand-sand);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item--active .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.faq-item__answer p {
  padding: 0 24px 24px;
  margin: 0;
  line-height: 1.8;
  color: var(--text-secondary);
}

.faq-contact-box {
  margin-top: 48px;
  padding: 40px;
  background: linear-gradient(135deg, var(--brand-dark), #1a272b);
  border-radius: 20px;
  text-align: center;
  color: white;
}

.faq-contact-box h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.faq-contact-box p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 24px;
}

/* =============================================
   CONTACT PAGE
   ============================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Info Sidebar */
.contact-info {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.contact-info__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 12px;
}

.contact-info__description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-info__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.contact-info__item {
  display: flex;
  gap: 16px;
}

.contact-info__item-icon {
  width: 48px;
  height: 48px;
  background: rgba(164, 145, 119, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-sand);
  flex-shrink: 0;
}

.contact-info__item-icon svg {
  width: 24px;
  height: 24px;
}

.contact-info__item-content {
  flex: 1;
}

.contact-info__item-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info__item-value {
  font-size: 16px;
  color: var(--brand-dark);
  font-weight: 600;
}

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

.contact-info__item-value--link:hover {
  color: #8b7355;
  text-decoration: underline;
}

/* Social Media */
.contact-social {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.contact-social__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 16px;
}

.contact-social__list {
  display: flex;
  gap: 12px;
}

.contact-social__item {
  width: 44px;
  height: 44px;
  background: rgba(164, 145, 119, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-sand);
  transition: all 0.2s;
  text-decoration: none;
}

.contact-social__item:hover {
  background: var(--brand-sand);
  color: white;
  transform: translateY(-2px);
}

.contact-social__item svg {
  width: 20px;
  height: 20px;
}

/* Quick Links */
.contact-quick-links {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.contact-quick-links__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 16px;
}

.contact-quick-links__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-quick-links__list li {
  margin-bottom: 12px;
  padding: 0;
}

.contact-quick-links__list li::before {
  display: none;
}

.contact-quick-links__list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

.contact-quick-links__list a:hover {
  color: var(--brand-sand);
}

/* Contact Form */
.contact-form-wrapper {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.contact-form__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.contact-form__description {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.form-required {
  color: var(--danger);
}

.form-input,
.form-textarea {
  padding: 14px 16px;
  border: 2px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-sand);
}

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

.contact-form__info {
  text-align: center;
  margin-top: 16px;
  color: var(--text-muted);
}

.contact-form__info a {
  color: var(--brand-sand);
  text-decoration: none;
}

.contact-form__info a:hover {
  text-decoration: underline;
}

/* Office Section */
.office-section {
  margin: 48px 0;
  padding: 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.office-section h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 32px;
}

.office-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px;
  background: var(--bg-canvas);
  border-radius: 16px;
}

.office-card h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 20px;
}

.office-card p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Response Info */
.contact-response-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .contact-response-info {
    grid-template-columns: 1fr;
  }
}

.contact-response-info__item {
  background: white;
  padding: 24px;
  border-radius: 16px;
  display: flex;
  gap: 16px;
  align-items: start;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.contact-response-info__icon {
  font-size: 32px;
}

.contact-response-info__item h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.contact-response-info__item p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background: var(--brand-dark);
  color: white;
  padding: 60px 24px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-section h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 12px;
  padding: 0;
}

.footer-section li::before {
  display: none;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
  display: inline-block;
}

.footer-section a:hover {
  color: var(--brand-sand);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */

@media (max-width: 768px) {
  .legal-page {
    padding: 100px 16px 60px;
  }

  .legal-header__icon {
    width: 64px;
    height: 64px;
  }

  .legal-header__icon svg {
    width: 32px;
    height: 32px;
  }

  .nav {
    padding: 16px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: 18px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* =============================================
   UTILITY CLASSES
   ============================================= */

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

.mb-4 {
  margin-bottom: 40px;
}

.mt-4 {
  margin-top: 40px;
}