::selection {
  background: rgb(var(--cos-accent-rgb) / 0.15);
  color: var(--cos-bg-base);
}

[data-page="enterprise"],
[data-page="legal"] {
  background: var(--cos-bg-base, #0a0a0c);
  font-family: var(--cos-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  color: var(--cos-text-primary, #f4f4f5);
  padding-bottom: 5rem;

  /* Footer styles. The header styles itself (component/header.css). */
  [data-component="footer"] {
    border-top: 1px solid var(--cos-border, rgba(255, 255, 255, 0.06));
    display: flex;
    flex-direction: row;

    @media (max-width: 65rem) {
      border-bottom: 1px solid var(--cos-border, rgba(255, 255, 255, 0.06));
    }

    [data-slot="cell"] {
      flex: 1;
      text-align: center;

      a {
        text-decoration: none;
        padding: 2rem 0;
        width: 100%;
        display: block;

        span {
          color: var(--cos-text-tertiary, #8b8b93);

          @media (max-width: 40rem) {
            display: none;
          }
        }
      }

      a:hover {
        background: var(--cos-bg-subtle, rgba(255, 255, 255, 0.03));
        text-decoration: underline;
        text-underline-offset: 2px;
        text-decoration-thickness: 1px;
      }
    }

    [data-slot="cell"] + [data-slot="cell"] {
      border-left: 1px solid var(--cos-border, rgba(255, 255, 255, 0.06));

      @media (max-width: 40rem) {
        border-left: none;
      }
    }

    /* Mobile: third column on its own row */
    @media (max-width: 25rem) {
      flex-wrap: wrap;

      [data-slot="cell"] {
        flex: 1 0 100%;
        border-left: none;
        border-top: 1px solid var(--cos-border, rgba(255, 255, 255, 0.06));
      }

      [data-slot="cell"]:nth-child(1) {
        border-top: none;
      }
    }
  }

  [data-component="container"] {
    max-width: 67.5rem;
    margin: 0 auto;
    border: 1px solid var(--cos-border, rgba(255, 255, 255, 0.06));
    border-top: none;
    background: var(--cos-glass-bg, rgba(27, 27, 27, 0.72));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    @media (max-width: 65rem) {
      border: none;
      background: transparent;
      backdrop-filter: none;
    }
  }

  [data-component="content"] {
  }

  [data-component="brand-content"] {
    padding: 4rem 5rem;

    h1 {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--cos-text-primary, #f4f4f5);
      margin-bottom: 1rem;
    }

    h3 {
      font-size: 1.25rem;
      font-weight: 500;
      color: var(--cos-text-primary, #f4f4f5);
      margin: 2rem 0 1rem 0;
    }

    p {
      line-height: 1.6;
      margin-bottom: 2.5rem;
      color: var(--cos-text-primary, #f4f4f5);
    }

    [data-component="download-button"] {
      padding: 8px 12px 8px 20px;
      background: var(--cos-accent-500, #6366f1);
      color: var(--cos-bg-base);
      border: none;
      border-radius: var(--cos-radius-md, 10px);
      font-weight: 500;
      cursor: pointer;
      display: flex;
      width: fit-content;
      align-items: center;
      gap: 12px;
      transition: all 0.2s ease;
      text-decoration: none;

      &:hover:not(:disabled) {
        background: var(--cos-accent-400, #818cf8);
      }

      &:active {
        transform: scale(0.98);
      }

      &:disabled {
        opacity: 0.6;
        cursor: not-allowed;
      }
    }

    [data-component="brand-grid"] {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      margin-top: 4rem;
      margin-bottom: 2rem;
    }

    [data-component="brand-grid"] img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: var(--cos-radius-md, 10px);
      border: 1px solid var(--cos-border, rgba(255, 255, 255, 0.06));
    }

    [data-component="brand-grid"] > div {
      position: relative;
    }

    [data-component="actions"] {
      position: absolute;
      background: rgba(4, 0, 0, 0.08);
      border-radius: var(--cos-radius-md, 10px);
      bottom: 0;
      right: 0;
      top: 0;
      left: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 16px;
      opacity: 0;
      transition: opacity 0.2s ease;

      @media (max-width: 40rem) {
        position: static;
        opacity: 1;
        background: none;
        margin-top: 1rem;
        justify-content: start;
      }
    }

    [data-component="brand-grid"] > div:hover [data-component="actions"] {
      opacity: 1;

      @media (max-width: 40rem) {
        opacity: 1;
      }
    }

    [data-component="actions"] button {
      padding: 6px 12px;
      background: var(--cos-glass-bg, rgba(27, 27, 27, 0.72));
      color: var(--cos-text-primary, #f4f4f5);
      border: none;
      border-radius: var(--cos-radius-md, 10px);
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 12px;
      transition: all 0.2s ease;
      cursor: pointer;
      backdrop-filter: blur(8px);
      box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 6px 8px -4px rgba(0, 0, 0, 0.3),
        0 4px 3px -2px rgba(0, 0, 0, 0.2),
        0 1px 2px -1px rgba(0, 0, 0, 0.2);

      @media (max-width: 40rem) {
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
      }

      &:hover {
        background: var(--cos-bg-subtle-hover, rgba(255, 255, 255, 0.06));
      }

      &:active {
        transform: scale(0.98);
        box-shadow:
          0 0 0 1px rgba(255, 255, 255, 0.06),
          0 6px 8px -8px rgba(0, 0, 0, 0.5);
      }
    }

    @media (max-width: 60rem) {
      padding: 2rem 1.5rem;
    }
  }

  [data-component="faq"] {
    border-top: 1px solid var(--cos-border, rgba(255, 255, 255, 0.06));
    padding: 4rem 5rem;

    @media (max-width: 60rem) {
      padding: 2rem 1.5rem;
    }

    [data-slot="section-title"] {
      margin-bottom: 24px;

      h3 {
        font-size: 16px;
        font-weight: 500;
        color: var(--cos-text-primary, #f4f4f5);
        margin-bottom: 12px;
      }

      p {
        margin-bottom: 12px;
        color: var(--cos-text-primary, #f4f4f5);
      }
    }

    ul {
      padding: 0;

      li {
        list-style: none;
        margin-bottom: 24px;
        line-height: 200%;

        @media (max-width: 60rem) {
          line-height: 180%;
        }
      }
    }

    [data-slot="faq-question"] {
      display: flex;
      gap: 16px;
      margin-bottom: 8px;
      color: var(--cos-text-primary, #f4f4f5);
      font-weight: 500;
      cursor: pointer;
      background: none;
      border: none;
      padding: 0;

      [data-slot="faq-icon-plus"] {
        flex-shrink: 0;
        color: var(--cos-text-tertiary, #8b8b93);
        margin-top: 2px;

        [data-closed] & {
          display: block;
        }
        [data-expanded] & {
          display: none;
        }
      }
      [data-slot="faq-icon-minus"] {
        flex-shrink: 0;
        color: var(--cos-text-tertiary, #8b8b93);
        margin-top: 2px;

        [data-closed] & {
          display: none;
        }
        [data-expanded] & {
          display: block;
        }
      }
      [data-slot="faq-question-text"] {
        flex-grow: 1;
        text-align: left;
      }
    }

    [data-slot="faq-answer"] {
      margin-left: 40px;
      margin-bottom: 32px;
      color: var(--cos-text-primary, #f4f4f5);
    }
  }

  [data-component="legal"] {
    color: var(--cos-text-tertiary, #8b8b93);
    text-align: center;
    padding: 2rem 5rem;
    display: flex;
    gap: 32px;
    justify-content: center;

    @media (max-width: 60rem) {
      padding: 2rem 1.5rem;
    }

    a {
      color: var(--cos-text-tertiary, #8b8b93);
      text-decoration: none;
    }

    a:hover {
      color: var(--cos-text-primary, #f4f4f5);
      text-decoration: underline;
    }
  }

  a {
    color: var(--cos-text-primary, #f4f4f5);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;

    &:hover {
      text-decoration-thickness: 2px;
    }
  }
}
